Skip to content
Commit 43f5ea46 authored by Kent Overstreet's avatar Kent Overstreet
Browse files

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: default avatarKent Overstreet <kent.overstreet@linux.dev>
parent 4409b808
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment