mirror of
https://github.com/linux-apfs/apfstests.git
synced 2026-05-01 15:01:44 -07:00
872ccc54ca
Use the error injection mechanism to test log recovery of deferred work. Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com> Reviewed-by: Eryu Guan <eguan@redhat.com> Signed-off-by: Eryu Guan <eguan@redhat.com>
19 lines
622 B
Plaintext
19 lines
622 B
Plaintext
QA output created by 320
|
|
Format filesystem
|
|
Create files
|
|
Check files
|
|
a98e7df2a7a456009a493e47411c58d1 SCRATCH_MNT/file1
|
|
a98e7df2a7a456009a493e47411c58d1 SCRATCH_MNT/file2
|
|
Inject error
|
|
Try to reflink
|
|
cp: failed to clone 'SCRATCH_MNT/file3' from 'SCRATCH_MNT/file1': Input/output error
|
|
FS should be shut down, touch will fail
|
|
touch: cannot touch 'SCRATCH_MNT/badfs': Input/output error
|
|
Remount to replay log
|
|
Check files
|
|
a98e7df2a7a456009a493e47411c58d1 SCRATCH_MNT/file1
|
|
a98e7df2a7a456009a493e47411c58d1 SCRATCH_MNT/file2
|
|
a98e7df2a7a456009a493e47411c58d1 SCRATCH_MNT/file3
|
|
FS should be online, touch should succeed
|
|
Done
|