Skip to content

Commit e5a3b8c

Browse files
author
Kent Overstreet
committed
bcachefs: More informative error message when shutting down due to error
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
1 parent 652dd65 commit e5a3b8c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

fs/bcachefs/error.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -478,7 +478,9 @@ int __bch2_fsck_err(struct bch_fs *c,
478478
} else if (!test_bit(BCH_FS_fsck_running, &c->flags)) {
479479
if (c->opts.errors != BCH_ON_ERROR_continue ||
480480
!(flags & (FSCK_CAN_FIX|FSCK_CAN_IGNORE))) {
481-
prt_str(out, ", shutting down");
481+
prt_str_indented(out, ", shutting down\n"
482+
"error not marked as autofix and not in fsck\n"
483+
"run fsck, and forward to devs so error can be marked for self-healing");
482484
inconsistent = true;
483485
print = true;
484486
ret = -BCH_ERR_fsck_errors_not_fixed;

0 commit comments

Comments
 (0)