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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 





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 logical address for raid56, which makes checksum mismatch.
But we will find everthing is fine later when rechecking using
btrfs_map_block().

This patch fixed the problem by settuping right mappings and
we only verify data stripes' checksums.

Signed-off-by: Wang Shilong <wangsl.fnst@xxxxxxxxxxxxxx>
---
v3->v4: fix compile warnings on avr32 platform.(reported by 0-day LKP)

Can you please send this as an incremental? I'd rather not rebase the integration branch right now.

Thanks!

-chris
--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Filesystem Development]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux