Btrfs-progs: Add chunk rebuild function for RAID1/SINGLE/DUP
authorMiao Xie <miaox@cn.fujitsu.com>
Wed, 3 Jul 2013 13:25:19 +0000 (21:25 +0800)
committerChris Mason <chris.mason@fusionio.com>
Wed, 3 Jul 2013 18:06:55 +0000 (14:06 -0400)
commit3b9e6dd4379ed8f2fb50bee8dce4245038498211
tree62d67b301d3e8981a74703f4c0fd7591b179aaf4
parent68acb1075e0da2d9f170cb52f561c5225787dbdf
Btrfs-progs: Add chunk rebuild function for RAID1/SINGLE/DUP

Add chunk rebuild for RAID1/SINGLE/DUP to chunk-recover command.

Before this patch chunk-recover can only scan and reuse the old chunk
data to recover. With this patch, chunk-recover can use the reference
between chunk/block group/dev extent to rebuild the whole chunk tree
even when old chunks are not available.

Signed-off-by: Qu Wenruo <quwenruo@cn.fujitsu.com>
Signed-off-by: Miao Xie <miaox@cn.fujitsu.com>
Signed-off-by: Chris Mason <chris.mason@fusionio.com>
btrfsck.h
cmds-check.c
cmds-chunk.c
volumes.c
volumes.h