bcachefs: More informative error message when shutting down due to error
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
This commit is contained in:
+3
-1
@@ -478,7 +478,9 @@ int __bch2_fsck_err(struct bch_fs *c,
|
||||
} else if (!test_bit(BCH_FS_fsck_running, &c->flags)) {
|
||||
if (c->opts.errors != BCH_ON_ERROR_continue ||
|
||||
!(flags & (FSCK_CAN_FIX|FSCK_CAN_IGNORE))) {
|
||||
prt_str(out, ", shutting down");
|
||||
prt_str_indented(out, ", shutting down\n"
|
||||
"error not marked as autofix and not in fsck\n"
|
||||
"run fsck, and forward to devs so error can be marked for self-healing");
|
||||
inconsistent = true;
|
||||
print = true;
|
||||
ret = -BCH_ERR_fsck_errors_not_fixed;
|
||||
|
||||
Reference in New Issue
Block a user