diff options
author | Eric Sandeen <sandeen@redhat.com> | 2015-02-23 18:17:04 -0500 |
---|---|---|
committer | Dave Chinner <david@fromorbit.com> | 2015-02-23 18:17:04 -0500 |
commit | 444a702231412e82fb1c09679adc159301e9242c (patch) | |
tree | 08fdc46d55818d63d7bd4f871e3f3efc676a9b77 | |
parent | 3790a8cd8a145f14f773c7f42cd11fcfb62a6975 (diff) |
xfs: remove deprecated mount options
We recently removed deprecated sysctls; may as well
remove deprecated mount options as well, we've stated
that they'd be gone by now in the docs.
Signed-off-by: Eric Sandeen <sandeen@redhat.com>
Reviewed-by: Carlos Maiolino <cmaiolino@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
-rw-r--r-- | Documentation/filesystems/xfs.txt | 29 | ||||
-rw-r--r-- | fs/xfs/xfs_super.c | 20 |
2 files changed, 9 insertions, 40 deletions
diff --git a/Documentation/filesystems/xfs.txt b/Documentation/filesystems/xfs.txt index 0bfafe108357..5a5a05582b58 100644 --- a/Documentation/filesystems/xfs.txt +++ b/Documentation/filesystems/xfs.txt | |||
@@ -228,30 +228,19 @@ default behaviour. | |||
228 | Deprecated Mount Options | 228 | Deprecated Mount Options |
229 | ======================== | 229 | ======================== |
230 | 230 | ||
231 | delaylog/nodelaylog | 231 | None at present. |
232 | Delayed logging is the only logging method that XFS supports | ||
233 | now, so these mount options are now ignored. | ||
234 | |||
235 | Due for removal in 3.12. | ||
236 | |||
237 | ihashsize=value | ||
238 | In memory inode hashes have been removed, so this option has | ||
239 | no function as of August 2007. Option is deprecated. | ||
240 | |||
241 | Due for removal in 3.12. | ||
242 | 232 | ||
243 | irixsgid | ||
244 | This behaviour is now controlled by a sysctl, so the mount | ||
245 | option is ignored. | ||
246 | 233 | ||
247 | Due for removal in 3.12. | 234 | Removed Mount Options |
235 | ===================== | ||
248 | 236 | ||
249 | osyncisdsync | 237 | Name Removed |
250 | osyncisosync | 238 | ---- ------- |
251 | O_SYNC and O_DSYNC are fully supported, so there is no need | 239 | delaylog/nodelaylog v3.20 |
252 | for these options any more. | 240 | ihashsize v3.20 |
241 | irixsgid v3.20 | ||
242 | osyncisdsync/osyncisosync v3.20 | ||
253 | 243 | ||
254 | Due for removal in 3.12. | ||
255 | 244 | ||
256 | sysctls | 245 | sysctls |
257 | ======= | 246 | ======= |
diff --git a/fs/xfs/xfs_super.c b/fs/xfs/xfs_super.c index dd40d255536a..58453e3255f8 100644 --- a/fs/xfs/xfs_super.c +++ b/fs/xfs/xfs_super.c | |||
@@ -109,8 +109,6 @@ static struct xfs_kobj xfs_dbg_kobj; /* global debug sysfs attrs */ | |||
109 | #define MNTOPT_GQUOTANOENF "gqnoenforce"/* group quota limit enforcement */ | 109 | #define MNTOPT_GQUOTANOENF "gqnoenforce"/* group quota limit enforcement */ |
110 | #define MNTOPT_PQUOTANOENF "pqnoenforce"/* project quota limit enforcement */ | 110 | #define MNTOPT_PQUOTANOENF "pqnoenforce"/* project quota limit enforcement */ |
111 | #define MNTOPT_QUOTANOENF "qnoenforce" /* same as uqnoenforce */ | 111 | #define MNTOPT_QUOTANOENF "qnoenforce" /* same as uqnoenforce */ |
112 | #define MNTOPT_DELAYLOG "delaylog" /* Delayed logging enabled */ | ||
113 | #define MNTOPT_NODELAYLOG "nodelaylog" /* Delayed logging disabled */ | ||
114 | #define MNTOPT_DISCARD "discard" /* Discard unused blocks */ | 112 | #define MNTOPT_DISCARD "discard" /* Discard unused blocks */ |
115 | #define MNTOPT_NODISCARD "nodiscard" /* Do not discard unused blocks */ | 113 | #define MNTOPT_NODISCARD "nodiscard" /* Do not discard unused blocks */ |
116 | 114 | ||
@@ -361,28 +359,10 @@ xfs_parseargs( | |||
361 | } else if (!strcmp(this_char, MNTOPT_GQUOTANOENF)) { | 359 | } else if (!strcmp(this_char, MNTOPT_GQUOTANOENF)) { |
362 | mp->m_qflags |= (XFS_GQUOTA_ACCT | XFS_GQUOTA_ACTIVE); | 360 | mp->m_qflags |= (XFS_GQUOTA_ACCT | XFS_GQUOTA_ACTIVE); |
363 | mp->m_qflags &= ~XFS_GQUOTA_ENFD; | 361 | mp->m_qflags &= ~XFS_GQUOTA_ENFD; |
364 | } else if (!strcmp(this_char, MNTOPT_DELAYLOG)) { | ||
365 | xfs_warn(mp, | ||
366 | "delaylog is the default now, option is deprecated."); | ||
367 | } else if (!strcmp(this_char, MNTOPT_NODELAYLOG)) { | ||
368 | xfs_warn(mp, | ||
369 | "nodelaylog support has been removed, option is deprecated."); | ||
370 | } else if (!strcmp(this_char, MNTOPT_DISCARD)) { | 362 | } else if (!strcmp(this_char, MNTOPT_DISCARD)) { |
371 | mp->m_flags |= XFS_MOUNT_DISCARD; | 363 | mp->m_flags |= XFS_MOUNT_DISCARD; |
372 | } else if (!strcmp(this_char, MNTOPT_NODISCARD)) { | 364 | } else if (!strcmp(this_char, MNTOPT_NODISCARD)) { |
373 | mp->m_flags &= ~XFS_MOUNT_DISCARD; | 365 | mp->m_flags &= ~XFS_MOUNT_DISCARD; |
374 | } else if (!strcmp(this_char, "ihashsize")) { | ||
375 | xfs_warn(mp, | ||
376 | "ihashsize no longer used, option is deprecated."); | ||
377 | } else if (!strcmp(this_char, "osyncisdsync")) { | ||
378 | xfs_warn(mp, | ||
379 | "osyncisdsync has no effect, option is deprecated."); | ||
380 | } else if (!strcmp(this_char, "osyncisosync")) { | ||
381 | xfs_warn(mp, | ||
382 | "osyncisosync has no effect, option is deprecated."); | ||
383 | } else if (!strcmp(this_char, "irixsgid")) { | ||
384 | xfs_warn(mp, | ||
385 | "irixsgid is now a sysctl(2) variable, option is deprecated."); | ||
386 | } else { | 366 | } else { |
387 | xfs_warn(mp, "unknown mount option [%s].", this_char); | 367 | xfs_warn(mp, "unknown mount option [%s].", this_char); |
388 | return -EINVAL; | 368 | return -EINVAL; |