bcachefs: Rename nofsck opt to fsck

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
This commit is contained in:
Kent Overstreet 2018-11-03 21:52:52 -04:00 committed by Kent Overstreet
parent 6bdbfa87a8
commit 02f1a96c13
3 changed files with 4 additions and 4 deletions

View file

@ -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 &&

View file

@ -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) \

View file

@ -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;