]> www.infradead.org Git - users/willy/xarray.git/commitdiff
bcachefs: Mark more errors as autofix
authorKent Overstreet <kent.overstreet@linux.dev>
Thu, 22 Aug 2024 15:47:32 +0000 (11:47 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Sat, 31 Aug 2024 23:27:01 +0000 (19:27 -0400)
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>
fs/bcachefs/sb-errors_format.h

index d3a498617303e680ea30dda3400bdc672ea205ca..f0c14702f9e62c5331af891ec78b7f16864de261 100644 (file)
@@ -23,7 +23,7 @@ enum bch_fsck_flags {
        x(jset_past_bucket_end,                                   9,    0)              \
        x(jset_seq_blacklisted,                                  10,    0)              \
        x(journal_entries_missing,                               11,    0)              \
-       x(journal_entry_replicas_not_marked,                     12,    0)              \
+       x(journal_entry_replicas_not_marked,                     12,    FSCK_AUTOFIX)   \
        x(journal_entry_past_jset_end,                           13,    0)              \
        x(journal_entry_replicas_data_mismatch,                  14,    0)              \
        x(journal_entry_bkey_u64s_0,                             15,    0)              \
@@ -288,10 +288,10 @@ enum bch_fsck_flags {
        x(invalid_btree_id,                                     274,    0)              \
        x(alloc_key_io_time_bad,                                275,    0)              \
        x(alloc_key_fragmentation_lru_wrong,                    276,    FSCK_AUTOFIX)   \
-       x(accounting_key_junk_at_end,                           277,    0)              \
-       x(accounting_key_replicas_nr_devs_0,                    278,    0)              \
-       x(accounting_key_replicas_nr_required_bad,              279,    0)              \
-       x(accounting_key_replicas_devs_unsorted,                280,    0)              \
+       x(accounting_key_junk_at_end,                           277,    FSCK_AUTOFIX)   \
+       x(accounting_key_replicas_nr_devs_0,                    278,    FSCK_AUTOFIX)   \
+       x(accounting_key_replicas_nr_required_bad,              279,    FSCK_AUTOFIX)   \
+       x(accounting_key_replicas_devs_unsorted,                280,    FSCK_AUTOFIX)   \
 
 enum bch_sb_error_id {
 #define x(t, n, ...) BCH_FSCK_ERR_##t = n,