• Kent Overstreet's avatar
    bcachefs: Repair pass for scanning for btree nodes · 4409b808
    Kent Overstreet authored
    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>
    4409b808
Makefile 1.67 KB