btrfs: regression test for nocsum buffered read's repair
authorLiu Bo <bo.li.liu@oracle.com>
Wed, 17 May 2017 22:36:10 +0000 (16:36 -0600)
committerEryu Guan <eguan@redhat.com>
Fri, 19 May 2017 07:06:30 +0000 (15:06 +0800)
commitaaf96798d84a5554a92031fae386e7d8d5decce8
tree9579b1c3b2b66cebab2dd9e6e98ec667c4cf4e47
parent495d11cd2da03f1d20cdbe9927547efcc3f8f319
btrfs: regression test for nocsum buffered read's repair

This is to test whether buffered read retry-repair code is able to
work in raid1 case as expected.

Please note that without checksum, btrfs doesn't know if the data
used to repair is correct, so repair is more of resync which makes
sure that both of the copy has the same content.

Commit 20a7db8ab3f2 ("btrfs: add dummy callback for
readpage_io_failed and drop checks") introduced the regression.

The upstream fix is commit 9d0d1c8b1c9d ("Btrfs: bring back repair
during read")

Signed-off-by: Liu Bo <bo.li.liu@oracle.com>
Reviewed-by: Eryu Guan <eguan@redhat.com>
Reviewed-by: Filipe Manana <fdmanana@gmail.com>
Signed-off-by: Eryu Guan <eguan@redhat.com>
tests/btrfs/143 [new file with mode: 0755]
tests/btrfs/143.out [new file with mode: 0644]
tests/btrfs/group