Skip to content
Commit 4409b808 authored by Kent Overstreet's avatar Kent Overstreet
Browse files

bcachefs: Repair pass for scanning for btree nodes



If a btree root or interior btree node goes bad, we're going to lose a
lot of data, unless we can recover the nodes that it pointed to by
scanning.

Fortunately btree node headers are fully self describing, and
additionally the magic number is xored with the filesytem UUID, so we
can do so safely.

This implements the scanning - next patch will rework topology repair to
make use of the found nodes.

Signed-off-by: default avatarKent Overstreet <kent.overstreet@linux.dev>
parent b268aa4e
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