btrfs: regression test for btrfs dio read repair
authorLiu Bo <bo.li.liu@oracle.com>
Wed, 17 May 2017 22:36:07 +0000 (16:36 -0600)
committerEryu Guan <eguan@redhat.com>
Fri, 19 May 2017 07:06:30 +0000 (15:06 +0800)
commit4f2ea4abc1d633a0bcfadb7e5176a7b1faf1ac02
tree4aa333b348d82c225dd21411cce7285fdbfea50e
parent7453987aaa652c802c8265117d6ef1057ba94718
btrfs: regression test for btrfs dio read repair

This case tests whether dio read can repair the bad copy if we have
a good copy.

Commit 2dabb3248453 ("Btrfs: Direct I/O read: Work on sectorsized
blocks") introduced the regression.

The upstream fix is commit 2e949b0a5592 ("Btrfs: fix invalid
dereference in btrfs_retry_endio")

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/140 [new file with mode: 0755]
tests/btrfs/140.out [new file with mode: 0644]
tests/btrfs/group