xfs: test XFS torn log write detection

XFS torn log write detection includes a mechanism to inject CRC errors
into log records at runtime and shutdown the fs accordingly. This
ensures that the CRC verification pass on the subsequent mount discovers
an invalid record near the head of the log and considers it a torn
write.

This test runs a workload with error injection enabled and verifies that
the subsequent mount is successful. The test repeats for several
iterations using a random frequency factor for the error event each
time.

Signed-off-by: Brian Foster <bfoster@redhat.com>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
This commit is contained in:
Brian Foster
2016-01-11 15:11:20 +11:00
committed by Dave Chinner
parent 37de4bfa17
commit 05754e673f
3 changed files with 88 additions and 0 deletions
+2
View File
@@ -0,0 +1,2 @@
QA output created by 141
Silence is golden.