We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8cfdc6c commit 8b1f46bCopy full SHA for 8b1f46b
fs/bcachefs/super-io.c
@@ -1084,9 +1084,16 @@ int bch2_write_super(struct bch_fs *c)
1084
": Superblock write was silently dropped! (seq %llu expected %llu)",
1085
le64_to_cpu(ca->sb_read_scratch->seq),
1086
ca->disk_sb.seq);
1087
- bch2_fs_fatal_error(c, "%s", buf.buf);
+
1088
+ if (c->opts.errors != BCH_ON_ERROR_continue &&
1089
+ c->opts.errors != BCH_ON_ERROR_fix_safe) {
1090
+ ret = -BCH_ERR_erofs_sb_err;
1091
+ bch2_fs_fatal_error(c, "%s", buf.buf);
1092
+ } else {
1093
+ bch_err(c, "%s", buf.buf);
1094
+ }
1095
1096
printbuf_exit(&buf);
- ret = -BCH_ERR_erofs_sb_err;
1097
}
1098
1099
if (le64_to_cpu(ca->sb_read_scratch->seq) > ca->disk_sb.seq) {
0 commit comments