Re: [PATCH v4 2/2] Btrfs: scrub raid56 stripes in the right way

2014-04-10 Thread Chris Mason
On 04/08/2014 07:18 AM, Wang Shilong wrote: Steps to reproduce: # mkfs.btrfs -f /dev/sda[8-11] -m raid5 -d raid5 # mount /dev/sda8 /mnt # btrfs scrub start -BR /mnt # echo $? <--unverified errors make return value be 3 This is because we don't setup right mapping between physical and l

[PATCH v4 2/2] Btrfs: scrub raid56 stripes in the right way

2014-04-08 Thread Wang Shilong
Steps to reproduce: # mkfs.btrfs -f /dev/sda[8-11] -m raid5 -d raid5 # mount /dev/sda8 /mnt # btrfs scrub start -BR /mnt # echo $? <--unverified errors make return value be 3 This is because we don't setup right mapping between physical and logical address for raid56, which makes checksum mism