Commit a64a3733 authored by Kent Overstreet's avatar Kent Overstreet

bcachefs: Don't autofix errors we can't fix

Signed-off-by: default avatarKent Overstreet <kent.overstreet@linux.dev>
parent e9bc59f9
......@@ -179,7 +179,8 @@ int bch2_fsck_err(struct bch_fs *c,
struct printbuf buf = PRINTBUF, *out = &buf;
int ret = -BCH_ERR_fsck_ignore;
if (test_bit(err, c->sb.errors_silent))
if ((flags & FSCK_CAN_FIX) &&
test_bit(err, c->sb.errors_silent))
return -BCH_ERR_fsck_fix;
bch2_sb_error_count(c, 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