aboutsummaryrefslogtreecommitdiffstats
path: root/fs/xfs/xfs_vfsops.c
diff options
context:
space:
mode:
authorNathan Scott <nathans@sgi.com>2005-11-01 23:09:22 -0500
committerNathan Scott <nathans@sgi.com>2005-11-01 23:09:22 -0500
commite718eeb4fe397f8add9f789e1fc3b47da4e7275f (patch)
treeac7732a22588c5dd42ba30449dd36ca0e07e7180 /fs/xfs/xfs_vfsops.c
parent6b3f6b5b87f03d1649340d6b3a572206653a2a2b (diff)
[XFS] Rework the final mount options flag bit to make room for more.
SGI-PV: 943866 SGI-Modid: xfs-linux:xfs-kern:24030a Signed-off-by: Nathan Scott <nathans@sgi.com>
Diffstat (limited to 'fs/xfs/xfs_vfsops.c')
-rw-r--r--fs/xfs/xfs_vfsops.c13
1 files changed, 8 insertions, 5 deletions
diff --git a/fs/xfs/xfs_vfsops.c b/fs/xfs/xfs_vfsops.c
index 96f7cdebe1b1..f4f8805e25ba 100644
--- a/fs/xfs/xfs_vfsops.c
+++ b/fs/xfs/xfs_vfsops.c
@@ -291,11 +291,12 @@ xfs_start_flags(
291 mp->m_flags |= XFS_MOUNT_IDELETE; 291 mp->m_flags |= XFS_MOUNT_IDELETE;
292 if (ap->flags & XFSMNT_DIRSYNC) 292 if (ap->flags & XFSMNT_DIRSYNC)
293 mp->m_flags |= XFS_MOUNT_DIRSYNC; 293 mp->m_flags |= XFS_MOUNT_DIRSYNC;
294 if (ap->flags & XFSMNT_COMPAT_IOSIZE)
295 mp->m_flags |= XFS_MOUNT_COMPAT_IOSIZE;
296 if (ap->flags & XFSMNT_COMPAT_ATTR) 294 if (ap->flags & XFSMNT_COMPAT_ATTR)
297 mp->m_flags |= XFS_MOUNT_COMPAT_ATTR; 295 mp->m_flags |= XFS_MOUNT_COMPAT_ATTR;
298 296
297 if (ap->flags2 & XFSMNT2_COMPAT_IOSIZE)
298 mp->m_flags |= XFS_MOUNT_COMPAT_IOSIZE;
299
299 /* 300 /*
300 * no recovery flag requires a read-only mount 301 * no recovery flag requires a read-only mount
301 */ 302 */
@@ -1679,7 +1680,7 @@ xfs_parseargs(
1679 int dsunit, dswidth, vol_dsunit, vol_dswidth; 1680 int dsunit, dswidth, vol_dsunit, vol_dswidth;
1680 int iosize; 1681 int iosize;
1681 1682
1682 args->flags |= XFSMNT_COMPAT_IOSIZE; 1683 args->flags2 |= XFSMNT2_COMPAT_IOSIZE;
1683 args->flags |= XFSMNT_COMPAT_ATTR; 1684 args->flags |= XFSMNT_COMPAT_ATTR;
1684 1685
1685#if 0 /* XXX: off by default, until some remaining issues ironed out */ 1686#if 0 /* XXX: off by default, until some remaining issues ironed out */
@@ -1811,9 +1812,9 @@ xfs_parseargs(
1811 } else if (!strcmp(this_char, MNTOPT_NOIKEEP)) { 1812 } else if (!strcmp(this_char, MNTOPT_NOIKEEP)) {
1812 args->flags |= XFSMNT_IDELETE; 1813 args->flags |= XFSMNT_IDELETE;
1813 } else if (!strcmp(this_char, MNTOPT_LARGEIO)) { 1814 } else if (!strcmp(this_char, MNTOPT_LARGEIO)) {
1814 args->flags &= ~XFSMNT_COMPAT_IOSIZE; 1815 args->flags2 &= ~XFSMNT2_COMPAT_IOSIZE;
1815 } else if (!strcmp(this_char, MNTOPT_NOLARGEIO)) { 1816 } else if (!strcmp(this_char, MNTOPT_NOLARGEIO)) {
1816 args->flags |= XFSMNT_COMPAT_IOSIZE; 1817 args->flags2 |= XFSMNT2_COMPAT_IOSIZE;
1817 } else if (!strcmp(this_char, MNTOPT_ATTR2)) { 1818 } else if (!strcmp(this_char, MNTOPT_ATTR2)) {
1818 args->flags &= ~XFSMNT_COMPAT_ATTR; 1819 args->flags &= ~XFSMNT_COMPAT_ATTR;
1819 } else if (!strcmp(this_char, MNTOPT_NOATTR2)) { 1820 } else if (!strcmp(this_char, MNTOPT_NOATTR2)) {
@@ -1867,6 +1868,8 @@ printk("XFS: irixsgid is now a sysctl(2) variable, option is deprecated.\n");
1867 args->sunit = args->swidth = 0; 1868 args->sunit = args->swidth = 0;
1868 } 1869 }
1869 1870
1871 if (args->flags2)
1872 args->flags |= XFSMNT_FLAGS2;
1870 return 0; 1873 return 0;
1871} 1874}
1872 1875