bcachefs: More informative error message when shutting down due to error
authorKent Overstreet <kent.overstreet@linux.dev>
Tue, 29 Apr 2025 00:25:15 +0000 (20:25 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Tue, 29 Apr 2025 02:42:17 +0000 (22:42 -0400)
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
fs/bcachefs/error.c

index 925b0b5..6b8695b 100644 (file)
@@ -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;