diff options
Diffstat (limited to 'fs/xfs')
-rw-r--r-- | fs/xfs/xfs_vfsops.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/fs/xfs/xfs_vfsops.c b/fs/xfs/xfs_vfsops.c index d3c99ac64afc..96f7cdebe1b1 100644 --- a/fs/xfs/xfs_vfsops.c +++ b/fs/xfs/xfs_vfsops.c | |||
@@ -382,6 +382,10 @@ xfs_finish_flags( | |||
382 | return XFS_ERROR(EINVAL); | 382 | return XFS_ERROR(EINVAL); |
383 | } | 383 | } |
384 | 384 | ||
385 | if (XFS_SB_VERSION_HASATTR2(&mp->m_sb)) { | ||
386 | mp->m_flags &= ~XFS_MOUNT_COMPAT_ATTR; | ||
387 | } | ||
388 | |||
385 | return 0; | 389 | return 0; |
386 | } | 390 | } |
387 | 391 | ||
@@ -1676,6 +1680,8 @@ xfs_parseargs( | |||
1676 | int iosize; | 1680 | int iosize; |
1677 | 1681 | ||
1678 | args->flags |= XFSMNT_COMPAT_IOSIZE; | 1682 | args->flags |= XFSMNT_COMPAT_IOSIZE; |
1683 | args->flags |= XFSMNT_COMPAT_ATTR; | ||
1684 | |||
1679 | #if 0 /* XXX: off by default, until some remaining issues ironed out */ | 1685 | #if 0 /* XXX: off by default, until some remaining issues ironed out */ |
1680 | args->flags |= XFSMNT_IDELETE; /* default to on */ | 1686 | args->flags |= XFSMNT_IDELETE; /* default to on */ |
1681 | #endif | 1687 | #endif |
@@ -1883,7 +1889,6 @@ xfs_showargs( | |||
1883 | { XFS_MOUNT_OSYNCISOSYNC, "," MNTOPT_OSYNCISOSYNC }, | 1889 | { XFS_MOUNT_OSYNCISOSYNC, "," MNTOPT_OSYNCISOSYNC }, |
1884 | { XFS_MOUNT_BARRIER, "," MNTOPT_BARRIER }, | 1890 | { XFS_MOUNT_BARRIER, "," MNTOPT_BARRIER }, |
1885 | { XFS_MOUNT_IDELETE, "," MNTOPT_NOIKEEP }, | 1891 | { XFS_MOUNT_IDELETE, "," MNTOPT_NOIKEEP }, |
1886 | { XFS_MOUNT_COMPAT_ATTR, "," MNTOPT_NOATTR2 }, | ||
1887 | { 0, NULL } | 1892 | { 0, NULL } |
1888 | }; | 1893 | }; |
1889 | struct proc_xfs_info *xfs_infop; | 1894 | struct proc_xfs_info *xfs_infop; |
@@ -1924,6 +1929,9 @@ xfs_showargs( | |||
1924 | if (!(mp->m_flags & XFS_MOUNT_32BITINOOPT)) | 1929 | if (!(mp->m_flags & XFS_MOUNT_32BITINOOPT)) |
1925 | seq_printf(m, "," MNTOPT_64BITINODE); | 1930 | seq_printf(m, "," MNTOPT_64BITINODE); |
1926 | 1931 | ||
1932 | if (!(mp->m_flags & XFS_MOUNT_COMPAT_ATTR)) | ||
1933 | seq_printf(m, "," MNTOPT_ATTR2); | ||
1934 | |||
1927 | if (!(mp->m_flags & XFS_MOUNT_COMPAT_IOSIZE)) | 1935 | if (!(mp->m_flags & XFS_MOUNT_COMPAT_IOSIZE)) |
1928 | seq_printf(m, "," MNTOPT_LARGEIO); | 1936 | seq_printf(m, "," MNTOPT_LARGEIO); |
1929 | 1937 | ||