]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
bcachefs: mark more errors autofix
authorKent Overstreet <kent.overstreet@linux.dev>
Sat, 7 Jun 2025 22:56:28 +0000 (18:56 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Thu, 12 Jun 2025 03:21:30 +0000 (23:21 -0400)
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
fs/bcachefs/sb-errors_format.h

index 90c878f289b2d72cdef3cee2503b779d3fb9fffe..d06e73884871420c1b19c63413463d4fdb16d01d 100644 (file)
@@ -165,7 +165,7 @@ enum bch_fsck_flags {
        x(ptr_to_missing_replicas_entry,                        149,    FSCK_AUTOFIX)   \
        x(ptr_to_missing_stripe,                                150,    0)              \
        x(ptr_to_incorrect_stripe,                              151,    0)              \
-       x(ptr_gen_newer_than_bucket_gen,                        152,    0)              \
+       x(ptr_gen_newer_than_bucket_gen,                        152,    FSCK_AUTOFIX)           \
        x(ptr_too_stale,                                        153,    0)              \
        x(stale_dirty_ptr,                                      154,    FSCK_AUTOFIX)   \
        x(ptr_bucket_data_type_mismatch,                        155,    0)              \
@@ -236,7 +236,7 @@ enum bch_fsck_flags {
        x(inode_multiple_links_but_nlink_0,                     207,    FSCK_AUTOFIX)   \
        x(inode_wrong_backpointer,                              208,    FSCK_AUTOFIX)   \
        x(inode_wrong_nlink,                                    209,    FSCK_AUTOFIX)   \
-       x(inode_has_child_snapshots_wrong,                      287,    0)              \
+       x(inode_has_child_snapshots_wrong,                      287,    FSCK_AUTOFIX)   \
        x(inode_unreachable,                                    210,    FSCK_AUTOFIX)   \
        x(inode_journal_seq_in_future,                          299,    FSCK_AUTOFIX)   \
        x(inode_i_sectors_underflow,                            312,    FSCK_AUTOFIX)   \
@@ -279,8 +279,8 @@ enum bch_fsck_flags {
        x(root_dir_missing,                                     239,    0)              \
        x(root_inode_not_dir,                                   240,    0)              \
        x(dir_loop,                                             241,    0)              \
-       x(hash_table_key_duplicate,                             242,    0)              \
-       x(hash_table_key_wrong_offset,                          243,    0)              \
+       x(hash_table_key_duplicate,                             242,    FSCK_AUTOFIX)   \
+       x(hash_table_key_wrong_offset,                          243,    FSCK_AUTOFIX)   \
        x(unlinked_inode_not_on_deleted_list,                   244,    FSCK_AUTOFIX)   \
        x(reflink_p_front_pad_bad,                              245,    0)              \
        x(journal_entry_dup_same_device,                        246,    0)              \