summaryrefslogtreecommitdiff
path: root/fs/bcachefs/sb-errors_types.h
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@linux.dev>2024-03-16 22:45:30 -0400
committerKent Overstreet <kent.overstreet@linux.dev>2024-04-03 14:45:30 -0400
commit43f5ea4646b2271a9a5af3729dfdf644d69b3282 (patch)
treee1bdfa2f6a07de2514345fa52f2b0c03302fe0c3 /fs/bcachefs/sb-errors_types.h
parent4409b8081d1624af814a9cda781ad9cdda3973cb (diff)
bcachefs: Topology repair now uses nodes found by scanning to fill holes
With the new btree node scan code, we can now recover from corrupt btree roots - simply create a new fake root at depth 1, and then insert all the leaves we found. If the root wasn't corrupt but there's corruption elsewhere in the btree, we can fill in holes as needed with the newest version of a given node(s) from the scan; we also check if a given btree node is older than what we found from the scan. Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/sb-errors_types.h')
-rw-r--r--fs/bcachefs/sb-errors_types.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/bcachefs/sb-errors_types.h b/fs/bcachefs/sb-errors_types.h
index 73e9634df8ff..2fec03a24c95 100644
--- a/fs/bcachefs/sb-errors_types.h
+++ b/fs/bcachefs/sb-errors_types.h
@@ -267,7 +267,8 @@
x(subvol_unreachable, 259) \
x(btree_node_bkey_bad_u64s, 260) \
x(btree_node_topology_empty_interior_node, 261) \
- x(btree_ptr_v2_min_key_bad, 262)
+ x(btree_ptr_v2_min_key_bad, 262) \
+ x(btree_root_unreadable_and_scan_found_nothing, 263)
enum bch_sb_error_id {
#define x(t, n) BCH_FSCK_ERR_##t = n,