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

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

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