btrfs/142: enhance regression test for nocsum dio read's repair
authorLu Fengqi <lufq.fnst@cn.fujitsu.com>
Mon, 14 Aug 2017 07:03:13 +0000 (15:03 +0800)
committerEryu Guan <eguan@redhat.com>
Fri, 18 Aug 2017 05:39:34 +0000 (13:39 +0800)
commit4dbba416d98a11194d5c7af23d74f4d601cf7d3b
tree97e03ef92a943578a1c860a969d622f57a30f5c5
parent80bd724d020a9efd52d3b9f148f9e03ab6578644
btrfs/142: enhance regression test for nocsum dio read's repair

I catch this following error from dmesg when this testcase fails.

[17446.661127] Buffer I/O error on dev sdb1, logical block 64, async page read

We expect to inject disk IO errors on the device when xfs_io reads
the specific file, but other processes may trigger IO error earlier.
So, we can use task-filter to solve this problem.

Signed-off-by: Lu Fengqi <lufq.fnst@cn.fujitsu.com>
Reviewed-by: Eryu Guan <eguan@redhat.com>
Signed-off-by: Eryu Guan <eguan@redhat.com>
tests/btrfs/142