提交 fed8f166 编写于 作者: Q Qu Wenruo 提交者: David Sterba

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: NQu Wenruo <quwenruo@cn.fujitsu.com>
Signed-off-by: NDavid Sterba <dsterba@suse.com>
上级 96da0919
...@@ -304,7 +304,7 @@ enum { ...@@ -304,7 +304,7 @@ enum {
Opt_commit_interval, Opt_barrier, Opt_nodefrag, Opt_nodiscard, Opt_commit_interval, Opt_barrier, Opt_nodefrag, Opt_nodiscard,
Opt_noenospc_debug, Opt_noflushoncommit, Opt_acl, Opt_datacow, Opt_noenospc_debug, Opt_noflushoncommit, Opt_acl, Opt_datacow,
Opt_datasum, Opt_treelog, Opt_noinode_cache, Opt_usebackuproot, Opt_datasum, Opt_treelog, Opt_noinode_cache, Opt_usebackuproot,
Opt_nologreplay, Opt_nologreplay, Opt_norecovery,
#ifdef CONFIG_BTRFS_DEBUG #ifdef CONFIG_BTRFS_DEBUG
Opt_fragment_data, Opt_fragment_metadata, Opt_fragment_all, Opt_fragment_data, Opt_fragment_metadata, Opt_fragment_all,
#endif #endif
...@@ -337,6 +337,7 @@ static const match_table_t tokens = { ...@@ -337,6 +337,7 @@ static const match_table_t tokens = {
{Opt_notreelog, "notreelog"}, {Opt_notreelog, "notreelog"},
{Opt_treelog, "treelog"}, {Opt_treelog, "treelog"},
{Opt_nologreplay, "nologreplay"}, {Opt_nologreplay, "nologreplay"},
{Opt_norecovery, "norecovery"},
{Opt_flushoncommit, "flushoncommit"}, {Opt_flushoncommit, "flushoncommit"},
{Opt_noflushoncommit, "noflushoncommit"}, {Opt_noflushoncommit, "noflushoncommit"},
{Opt_ratio, "metadata_ratio=%d"}, {Opt_ratio, "metadata_ratio=%d"},
...@@ -614,6 +615,7 @@ int btrfs_parse_options(struct btrfs_root *root, char *options, ...@@ -614,6 +615,7 @@ int btrfs_parse_options(struct btrfs_root *root, char *options,
btrfs_clear_and_info(root, NOTREELOG, btrfs_clear_and_info(root, NOTREELOG,
"enabling tree log"); "enabling tree log");
break; break;
case Opt_norecovery:
case Opt_nologreplay: case Opt_nologreplay:
btrfs_set_and_info(root, NOLOGREPLAY, btrfs_set_and_info(root, NOLOGREPLAY,
"disabling log replay at mount time"); "disabling log replay at mount time");
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册