summaryrefslogtreecommitdiff
path: root/ctree.h
diff options
context:
space:
mode:
authorQu Wenruo <quwenruo@cn.fujitsu.com>2014-12-09 16:27:31 +0800
committerDavid Sterba <dsterba@suse.cz>2014-12-10 13:50:28 +0100
commit1581d7e5db9278a3aef5ff88301a9866b57cd5ad (patch)
tree0c1efe876c9516be3f27a02bfef38e4d3756c1e4 /ctree.h
parent887cfa14adf2357465e24e52d49ffb34aad9fe43 (diff)
btrfs-progs: Recover btree by dropping corrupted leaf/node.
Current btrfsck can skip corrupted leaf and even repair some corrupted one if their bytenr or key order is wrong. However when it comes to csum error leaf, btrfsck can only skip them, which is OK for read-only iteration, but is bad for write. This patch introduce the new repair_btree() function to recover the btree, deleting all the corrupted leaf/node including corresponding extent, allowing later write into the btree. This patch provides the basis for later recovery with corrupted leaves. Signed-off-by: Qu Wenruo <quwenruo@cn.fujitsu.com> Signed-off-by: David Sterba <dsterba@suse.cz>
Diffstat (limited to 'ctree.h')
0 files changed, 0 insertions, 0 deletions