]> git.baikalelectronics.ru Git - kernel.git/commit
Btrfs, scrub: repair the common data on RAID5/6 if it is corrupted
authorMiao Xie <miaox@cn.fujitsu.com>
Thu, 23 Oct 2014 06:42:50 +0000 (14:42 +0800)
committerMiao Xie <miaox@cn.fujitsu.com>
Wed, 3 Dec 2014 02:18:45 +0000 (10:18 +0800)
commitc6f4106e15b5ccc1e4fae4d9edd502eeec04d933
tree0abf72105056f1c5fe7038c37f4c5d63ea29c875
parent61a99b5c62ec0f698ebf0af947aab62f9c4a95b3
Btrfs, scrub: repair the common data on RAID5/6 if it is corrupted

This patch implement the RAID5/6 common data repair function, the
implementation is similar to the scrub on the other RAID such as
RAID1, the differentia is that we don't read the data from the
mirror, we use the data repair function of RAID5/6.

Signed-off-by: Miao Xie <miaox@cn.fujitsu.com>
fs/btrfs/raid56.c
fs/btrfs/raid56.h
fs/btrfs/scrub.c
fs/btrfs/volumes.c
fs/btrfs/volumes.h