bcachefs: btree_root_unreadable_and_scan_found_nothing now AUTOFIX
authorKent Overstreet <kent.overstreet@linux.dev>
Sun, 13 Apr 2025 20:28:41 +0000 (16:28 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Mon, 14 Apr 2025 01:17:55 +0000 (21:17 -0400)
This will likely mean that the btree had only one node - there was
nothing or almost nothing in it, and we should reconstruct and continue.

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
fs/bcachefs/sb-errors_format.h

index 5d43e3504386ad29c87fc68d49dbecbb48ba43b2..512c56ee5d94364874dc88094d479489ff7e5454 100644 (file)
@@ -290,7 +290,7 @@ enum bch_fsck_flags {
        x(btree_node_bkey_bad_u64s,                             260,    0)              \
        x(btree_node_topology_empty_interior_node,              261,    0)              \
        x(btree_ptr_v2_min_key_bad,                             262,    0)              \
-       x(btree_root_unreadable_and_scan_found_nothing,         263,    0)              \
+       x(btree_root_unreadable_and_scan_found_nothing,         263,    FSCK_AUTOFIX)   \
        x(snapshot_node_missing,                                264,    0)              \
        x(dup_backpointer_to_bad_csum_extent,                   265,    0)              \
        x(btree_bitmap_not_marked,                              266,    FSCK_AUTOFIX)   \