Skip to content

Commit 3d3020c

Browse files
author
Kent Overstreet
committed
bcachefs: Mark more errors as autofix
errors that are known to always be safe to fix should be autofix: this should be most errors even at this point, but that will need some thorough review. note that errors are still logged in the superblock, so we'll still know that they happened. Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
1 parent e3e6940 commit 3d3020c

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

fs/bcachefs/sb-errors_format.h

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ enum bch_fsck_flags {
2323
x(jset_past_bucket_end, 9, 0) \
2424
x(jset_seq_blacklisted, 10, 0) \
2525
x(journal_entries_missing, 11, 0) \
26-
x(journal_entry_replicas_not_marked, 12, 0) \
26+
x(journal_entry_replicas_not_marked, 12, FSCK_AUTOFIX) \
2727
x(journal_entry_past_jset_end, 13, 0) \
2828
x(journal_entry_replicas_data_mismatch, 14, 0) \
2929
x(journal_entry_bkey_u64s_0, 15, 0) \
@@ -288,10 +288,10 @@ enum bch_fsck_flags {
288288
x(invalid_btree_id, 274, 0) \
289289
x(alloc_key_io_time_bad, 275, 0) \
290290
x(alloc_key_fragmentation_lru_wrong, 276, FSCK_AUTOFIX) \
291-
x(accounting_key_junk_at_end, 277, 0) \
292-
x(accounting_key_replicas_nr_devs_0, 278, 0) \
293-
x(accounting_key_replicas_nr_required_bad, 279, 0) \
294-
x(accounting_key_replicas_devs_unsorted, 280, 0) \
291+
x(accounting_key_junk_at_end, 277, FSCK_AUTOFIX) \
292+
x(accounting_key_replicas_nr_devs_0, 278, FSCK_AUTOFIX) \
293+
x(accounting_key_replicas_nr_required_bad, 279, FSCK_AUTOFIX) \
294+
x(accounting_key_replicas_devs_unsorted, 280, FSCK_AUTOFIX) \
295295

296296
enum bch_sb_error_id {
297297
#define x(t, n, ...) BCH_FSCK_ERR_##t = n,

0 commit comments

Comments
 (0)