diff options
author | Theodore Ts'o <tytso@mit.edu> | 2012-03-03 18:04:40 -0500 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2012-03-03 18:04:40 -0500 |
commit | 72578c33c4977941a5094f1d7011c8e1f5c43552 (patch) | |
tree | bbf3e248b01e0a38599958c4ade5b85ffef240d3 /fs/ext4 | |
parent | 39ef17f1b0613b46c6973596525c2bc816d90b5b (diff) |
ext4: unify handling of mount options which have been removed
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Diffstat (limited to 'fs/ext4')
-rw-r--r-- | fs/ext4/super.c | 28 |
1 files changed, 8 insertions, 20 deletions
diff --git a/fs/ext4/super.c b/fs/ext4/super.c index 93cca1fa3903..b5f2e6816ec3 100644 --- a/fs/ext4/super.c +++ b/fs/ext4/super.c | |||
@@ -1332,9 +1332,9 @@ static const struct export_operations ext4_export_ops = { | |||
1332 | enum { | 1332 | enum { |
1333 | Opt_bsd_df, Opt_minix_df, Opt_grpid, Opt_nogrpid, | 1333 | Opt_bsd_df, Opt_minix_df, Opt_grpid, Opt_nogrpid, |
1334 | Opt_resgid, Opt_resuid, Opt_sb, Opt_err_cont, Opt_err_panic, Opt_err_ro, | 1334 | Opt_resgid, Opt_resuid, Opt_sb, Opt_err_cont, Opt_err_panic, Opt_err_ro, |
1335 | Opt_nouid32, Opt_debug, Opt_oldalloc, Opt_orlov, | 1335 | Opt_nouid32, Opt_debug, Opt_removed, |
1336 | Opt_user_xattr, Opt_nouser_xattr, Opt_acl, Opt_noacl, | 1336 | Opt_user_xattr, Opt_nouser_xattr, Opt_acl, Opt_noacl, |
1337 | Opt_auto_da_alloc, Opt_noauto_da_alloc, Opt_noload, Opt_nobh, Opt_bh, | 1337 | Opt_auto_da_alloc, Opt_noauto_da_alloc, Opt_noload, |
1338 | Opt_commit, Opt_min_batch_time, Opt_max_batch_time, | 1338 | Opt_commit, Opt_min_batch_time, Opt_max_batch_time, |
1339 | Opt_journal_dev, Opt_journal_checksum, Opt_journal_async_commit, | 1339 | Opt_journal_dev, Opt_journal_checksum, Opt_journal_async_commit, |
1340 | Opt_abort, Opt_data_journal, Opt_data_ordered, Opt_data_writeback, | 1340 | Opt_abort, Opt_data_journal, Opt_data_ordered, Opt_data_writeback, |
@@ -1365,16 +1365,16 @@ static const match_table_t tokens = { | |||
1365 | {Opt_err_ro, "errors=remount-ro"}, | 1365 | {Opt_err_ro, "errors=remount-ro"}, |
1366 | {Opt_nouid32, "nouid32"}, | 1366 | {Opt_nouid32, "nouid32"}, |
1367 | {Opt_debug, "debug"}, | 1367 | {Opt_debug, "debug"}, |
1368 | {Opt_oldalloc, "oldalloc"}, | 1368 | {Opt_removed, "oldalloc"}, |
1369 | {Opt_orlov, "orlov"}, | 1369 | {Opt_removed, "orlov"}, |
1370 | {Opt_user_xattr, "user_xattr"}, | 1370 | {Opt_user_xattr, "user_xattr"}, |
1371 | {Opt_nouser_xattr, "nouser_xattr"}, | 1371 | {Opt_nouser_xattr, "nouser_xattr"}, |
1372 | {Opt_acl, "acl"}, | 1372 | {Opt_acl, "acl"}, |
1373 | {Opt_noacl, "noacl"}, | 1373 | {Opt_noacl, "noacl"}, |
1374 | {Opt_noload, "noload"}, | 1374 | {Opt_noload, "noload"}, |
1375 | {Opt_noload, "norecovery"}, | 1375 | {Opt_noload, "norecovery"}, |
1376 | {Opt_nobh, "nobh"}, | 1376 | {Opt_removed, "nobh"}, |
1377 | {Opt_bh, "bh"}, | 1377 | {Opt_removed, "bh"}, |
1378 | {Opt_commit, "commit=%u"}, | 1378 | {Opt_commit, "commit=%u"}, |
1379 | {Opt_min_batch_time, "min_batch_time=%u"}, | 1379 | {Opt_min_batch_time, "min_batch_time=%u"}, |
1380 | {Opt_max_batch_time, "max_batch_time=%u"}, | 1380 | {Opt_max_batch_time, "max_batch_time=%u"}, |
@@ -1582,13 +1582,9 @@ static int parse_options(char *options, struct super_block *sb, | |||
1582 | case Opt_debug: | 1582 | case Opt_debug: |
1583 | set_opt(sb, DEBUG); | 1583 | set_opt(sb, DEBUG); |
1584 | break; | 1584 | break; |
1585 | case Opt_oldalloc: | 1585 | case Opt_removed: |
1586 | ext4_msg(sb, KERN_WARNING, | 1586 | ext4_msg(sb, KERN_WARNING, |
1587 | "Ignoring deprecated oldalloc option"); | 1587 | "Ignoring deprecated %s option", p); |
1588 | break; | ||
1589 | case Opt_orlov: | ||
1590 | ext4_msg(sb, KERN_WARNING, | ||
1591 | "Ignoring deprecated orlov option"); | ||
1592 | break; | 1588 | break; |
1593 | #ifdef CONFIG_EXT4_FS_XATTR | 1589 | #ifdef CONFIG_EXT4_FS_XATTR |
1594 | case Opt_user_xattr: | 1590 | case Opt_user_xattr: |
@@ -1781,14 +1777,6 @@ set_qf_format: | |||
1781 | else | 1777 | else |
1782 | clear_opt(sb, BARRIER); | 1778 | clear_opt(sb, BARRIER); |
1783 | break; | 1779 | break; |
1784 | case Opt_nobh: | ||
1785 | ext4_msg(sb, KERN_WARNING, | ||
1786 | "Ignoring deprecated nobh option"); | ||
1787 | break; | ||
1788 | case Opt_bh: | ||
1789 | ext4_msg(sb, KERN_WARNING, | ||
1790 | "Ignoring deprecated bh option"); | ||
1791 | break; | ||
1792 | case Opt_i_version: | 1780 | case Opt_i_version: |
1793 | sb->s_flags |= MS_I_VERSION; | 1781 | sb->s_flags |= MS_I_VERSION; |
1794 | break; | 1782 | break; |