Files
apfstests/tests/btrfs/148.out
T
Filipe Manana c3893c2dc6 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>
2017-07-16 19:15:15 +08:00

24 lines
709 B
Plaintext

QA output created by 148
Testing RAID5...
wrote 1048576/1048576 bytes at offset 0
XXX Bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
File data after direct IO write:
0000000 ab ab ab ab ab ab ab ab ab ab ab ab ab ab ab ab
*
4000000
File data after umounting and mounting again the filesystem:
0000000 ab ab ab ab ab ab ab ab ab ab ab ab ab ab ab ab
*
4000000
Testing RAID6...
wrote 1048576/1048576 bytes at offset 0
XXX Bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
File data after direct IO write:
0000000 ab ab ab ab ab ab ab ab ab ab ab ab ab ab ab ab
*
4000000
File data after umounting and mounting again the filesystem:
0000000 ab ab ab ab ab ab ab ab ab ab ab ab ab ab ab ab
*
4000000