btrfs-progs: fix missing parity stripe for raid6 in chunk-recover
authorGui Hecheng <guihc.fnst@cn.fujitsu.com>
Thu, 12 Jun 2014 02:24:59 +0000 (10:24 +0800)
committerDavid Sterba <dsterba@suse.cz>
Fri, 22 Aug 2014 12:39:35 +0000 (14:39 +0200)
commit41b617ed73e0f12bfe13ca641861f133ab8d310f
tree556d2728ef5ea30ed1225d29eb2214d46707684c
parent2100836188672d64adf0def8975dceea710ce51c
btrfs-progs: fix missing parity stripe for raid6 in chunk-recover

When deal with the p & q stripes for data profile raid6, chunk-recover
forgets to insert them into the chunk record. Just insert them back
freely.
Also wrap the insert procedure into a new function, fill_chunk_up.

Signed-off-by: Gui Hecheng <guihc.fnst@cn.fujitsu.com>
Signed-off-by: David Sterba <dsterba@suse.cz>
chunk-recover.c