Commit 02f1a96c authored by Kent Overstreet's avatar Kent Overstreet Committed by Kent Overstreet

bcachefs: Rename nofsck opt to fsck

Signed-off-by: default avatarKent Overstreet <kent.overstreet@linux.dev>
parent 6bdbfa87
...@@ -1465,7 +1465,7 @@ static int bch2_fsck_walk_inodes_only(struct bch_fs *c) ...@@ -1465,7 +1465,7 @@ static int bch2_fsck_walk_inodes_only(struct bch_fs *c)
int bch2_fsck(struct bch_fs *c) int bch2_fsck(struct bch_fs *c)
{ {
if (!c->opts.nofsck) if (c->opts.fsck)
return bch2_fsck_full(c); return bch2_fsck_full(c);
if (!c->sb.clean && if (!c->sb.clean &&
......
...@@ -153,9 +153,9 @@ enum opt_type { ...@@ -153,9 +153,9 @@ enum opt_type {
BCH_OPT(journal_flush_disabled, u8, OPT_RUNTIME, \ BCH_OPT(journal_flush_disabled, u8, OPT_RUNTIME, \
OPT_BOOL(), \ OPT_BOOL(), \
NO_SB_OPT, false) \ NO_SB_OPT, false) \
BCH_OPT(nofsck, u8, OPT_MOUNT, \ BCH_OPT(fsck, u8, OPT_MOUNT, \
OPT_BOOL(), \ OPT_BOOL(), \
NO_SB_OPT, false) \ NO_SB_OPT, true) \
BCH_OPT(fix_errors, u8, OPT_MOUNT, \ BCH_OPT(fix_errors, u8, OPT_MOUNT, \
OPT_BOOL(), \ OPT_BOOL(), \
NO_SB_OPT, false) \ NO_SB_OPT, false) \
......
...@@ -152,7 +152,7 @@ int bch2_fs_recovery(struct bch_fs *c) ...@@ -152,7 +152,7 @@ int bch2_fs_recovery(struct bch_fs *c)
bch_info(c, "recovering from clean shutdown, journal seq %llu", bch_info(c, "recovering from clean shutdown, journal seq %llu",
le64_to_cpu(clean->journal_seq)); le64_to_cpu(clean->journal_seq));
if (!clean || !c->opts.nofsck) { if (!clean || c->opts.fsck) {
ret = bch2_journal_read(c, &journal); ret = bch2_journal_read(c, &journal);
if (ret) if (ret)
goto err; goto err;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment