aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs
diff options
context:
space:
mode:
authorQu Wenruo <quwenruo@cn.fujitsu.com>2016-01-18 21:23:04 -0500
committerDavid Sterba <dsterba@suse.com>2016-02-12 09:14:49 -0500
commitfed8f166ebf3afb8b91a1fd73d706788e07a91ef (patch)
treeadd261cb0e7a3e9419031b0786912612a82cf2a4 /fs/btrfs
parent96da09192cda57a356467bd7c91a3641a2e78490 (diff)
btrfs: Introduce new mount option alias for nologreplay
Introduce new mount option alias "norecovery" for nologreplay, to keep "norecovery" behavior the same with other filesystems. Signed-off-by: Qu Wenruo <quwenruo@cn.fujitsu.com> Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs')
-rw-r--r--fs/btrfs/super.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/fs/btrfs/super.c b/fs/btrfs/super.c
index e8a7a9f88195..bf75200c6f86 100644
--- a/fs/btrfs/super.c
+++ b/fs/btrfs/super.c
@@ -304,7 +304,7 @@ enum {
304 Opt_commit_interval, Opt_barrier, Opt_nodefrag, Opt_nodiscard, 304 Opt_commit_interval, Opt_barrier, Opt_nodefrag, Opt_nodiscard,
305 Opt_noenospc_debug, Opt_noflushoncommit, Opt_acl, Opt_datacow, 305 Opt_noenospc_debug, Opt_noflushoncommit, Opt_acl, Opt_datacow,
306 Opt_datasum, Opt_treelog, Opt_noinode_cache, Opt_usebackuproot, 306 Opt_datasum, Opt_treelog, Opt_noinode_cache, Opt_usebackuproot,
307 Opt_nologreplay, 307 Opt_nologreplay, Opt_norecovery,
308#ifdef CONFIG_BTRFS_DEBUG 308#ifdef CONFIG_BTRFS_DEBUG
309 Opt_fragment_data, Opt_fragment_metadata, Opt_fragment_all, 309 Opt_fragment_data, Opt_fragment_metadata, Opt_fragment_all,
310#endif 310#endif
@@ -337,6 +337,7 @@ static const match_table_t tokens = {
337 {Opt_notreelog, "notreelog"}, 337 {Opt_notreelog, "notreelog"},
338 {Opt_treelog, "treelog"}, 338 {Opt_treelog, "treelog"},
339 {Opt_nologreplay, "nologreplay"}, 339 {Opt_nologreplay, "nologreplay"},
340 {Opt_norecovery, "norecovery"},
340 {Opt_flushoncommit, "flushoncommit"}, 341 {Opt_flushoncommit, "flushoncommit"},
341 {Opt_noflushoncommit, "noflushoncommit"}, 342 {Opt_noflushoncommit, "noflushoncommit"},
342 {Opt_ratio, "metadata_ratio=%d"}, 343 {Opt_ratio, "metadata_ratio=%d"},
@@ -614,6 +615,7 @@ int btrfs_parse_options(struct btrfs_root *root, char *options,
614 btrfs_clear_and_info(root, NOTREELOG, 615 btrfs_clear_and_info(root, NOTREELOG,
615 "enabling tree log"); 616 "enabling tree log");
616 break; 617 break;
618 case Opt_norecovery:
617 case Opt_nologreplay: 619 case Opt_nologreplay:
618 btrfs_set_and_info(root, NOLOGREPLAY, 620 btrfs_set_and_info(root, NOLOGREPLAY,
619 "disabling log replay at mount time"); 621 "disabling log replay at mount time");