btrfs: test direct IO write against raid5/6 filesystems
authorFilipe Manana <fdmanana@suse.com>
Thu, 13 Jul 2017 14:10:40 +0000 (15:10 +0100)
committerEryu Guan <eguan@redhat.com>
Sun, 16 Jul 2017 11:15:15 +0000 (19:15 +0800)
commitc3893c2dc623a07b1ace8e72ee4beb29f8bfae15
treeb62f9e2013122f072b510a2cd4bb0b8beb46c964
parent6813824fd2afda668d7517c00d428289046346a1
btrfs: test direct IO write against raid5/6 filesystems

Test that a direct IO write works against raid5/6 filesystems and that
after the write operation we are able to read back the correct data
and scrub operations don't find any errors.

This test is motivated by a regression introduced in the merge window
for the 4.13 linux kernel, which was undetected by the current set of
test cases. The issue is fixed by the following patch:

  "Btrfs: fix write corruption due to bio cloning on raid5/6"

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