Commit e5a3b8cf authored by Kent Overstreet's avatar Kent Overstreet
Browse files

bcachefs: More informative error message when shutting down due to error

parent 652dd655
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -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;