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>
17 lines
493 B
Plaintext
17 lines
493 B
Plaintext
QA output created by 315
|
|
Format filesystem
|
|
Create files
|
|
Check files
|
|
cf41e243bf211225660f3fabe6db9eb6 SCRATCH_MNT/file1
|
|
cf41e243bf211225660f3fabe6db9eb6 SCRATCH_MNT/file2
|
|
Inject error
|
|
CoW a few blocks
|
|
FS should be shut down, touch will fail
|
|
touch: cannot touch 'SCRATCH_MNT/badfs': Input/output error
|
|
Remount to replay log
|
|
FS should be online, touch should succeed
|
|
Check files again
|
|
fe9070b9c9deb97ed53811efda5c4ad5 SCRATCH_MNT/file1
|
|
cf41e243bf211225660f3fabe6db9eb6 SCRATCH_MNT/file2
|
|
Done
|