dio: unwritten conversion bug tests

Check that we don't expose old disk contents when a directio write to
an unwritten extent fails due to IO errors.  This primarily affects
XFS and ext4.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
This commit is contained in:
Darrick J. Wong
2016-02-01 17:50:31 -08:00
parent 1fdd67b7bc
commit be32a7f154
7 changed files with 715 additions and 0 deletions
+10
View File
@@ -0,0 +1,10 @@
QA output created by 252
Format and mount
Create the original files
Compare files
ec8bb3b24d5b0f1b5bdf8c8f0f541ee6 SCRATCH_MNT/test-252/file2
CoW and unmount
write missed bytes expect 8388608 got 0
Compare files
3ed86318f4ff8da26c1c2a6e3041f9be SCRATCH_MNT/test-252/file2
Check for damage