reflink: test xfs cow behavior when the filesystem crashes

Use the extent size hint to force leftover CoW reservations then
crash the filesystem to see how recovery works.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
This commit is contained in:
Darrick J. Wong
2016-01-22 16:55:30 -08:00
parent 2fcbba4ceb
commit e750a21128
3 changed files with 113 additions and 0 deletions
+13
View File
@@ -0,0 +1,13 @@
QA output created by 212
Format and mount
Create the original files
Compare files
7202826a7791073fe2787f0c94603278 SCRATCH_MNT/test-212/file1
7202826a7791073fe2787f0c94603278 SCRATCH_MNT/test-212/file2
7202826a7791073fe2787f0c94603278 SCRATCH_MNT/test-212/file2.chk
CoW and leave leftovers
Crash and recover
Compare files
7202826a7791073fe2787f0c94603278 SCRATCH_MNT/test-212/file1
83feff041c88d5c746837552399dc27d SCRATCH_MNT/test-212/file2
83feff041c88d5c746837552399dc27d SCRATCH_MNT/test-212/file2.chk