Btrfs-progs: recover raid0/raid10/raid5/raid6 metadata chunk
authorMiao Xie <miaox@cn.fujitsu.com>
Wed, 3 Jul 2013 13:25:20 +0000 (21:25 +0800)
committerChris Mason <chris.mason@fusionio.com>
Wed, 3 Jul 2013 18:06:55 +0000 (14:06 -0400)
commitf5ddbddf181cdf3085db60a30744b13932b9beea
treefc85c97d956469a1ec71969ce901d16d5ced1173
parent3b9e6dd4379ed8f2fb50bee8dce4245038498211
Btrfs-progs: recover raid0/raid10/raid5/raid6 metadata chunk

According to the bytenr of the extent buffer record, we can calculate the index
of the stripes, and we also know which device and where we read out the extent
buffer record, that means we can know the relationship between the device extent
and the stripes in the chunk, by this relationship, we can recover the raid0/radi10/
raid5/raid6 metadata chunk.

Signed-off-by: Miao Xie <miaox@cn.fujitsu.com>
Signed-off-by: Chris Mason <chris.mason@fusionio.com>
cmds-chunk.c