mirror of
https://github.com/linux-apfs/apfstests.git
synced 2026-05-01 15:01:44 -07:00
reflink: test CoW behavior with IO errors
Test various scenarios (with dm-flakey) where we simulate write failures during CoW, to see if the FS can get through it without blowing up or corrupting data. Plumb in a FS-generic method to sort out repairing filesystems after they get hit by IO errors. Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
QA output created by 271
|
||||
Format and mount
|
||||
Create the original files
|
||||
Compare files
|
||||
1886e67cf8783e89ce6ddc5bb09a3944 SCRATCH_MNT/test-271/file1
|
||||
1886e67cf8783e89ce6ddc5bb09a3944 SCRATCH_MNT/test-271/file2
|
||||
CoW and unmount
|
||||
pwrite64: Input/output error
|
||||
Compare files
|
||||
1886e67cf8783e89ce6ddc5bb09a3944 SCRATCH_MNT/test-271/file1
|
||||
Check for damage
|
||||
Reference in New Issue
Block a user