xfs: inject errors at various parts of the deferred op completion

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>
This commit is contained in:
Darrick J. Wong
2016-06-17 09:39:52 -07:00
committed by Eryu Guan
parent 219d4cdcb6
commit 872ccc54ca
34 changed files with 1878 additions and 0 deletions
+28
View File
@@ -228,6 +228,34 @@ _scratch_f2fs_logstate()
echo $?
}
_scratch_dump_log()
{
case "$FSTYP" in
xfs)
_scratch_xfs_logprint
;;
f2fs)
$DUMP_F2FS_PROG $SCRATCH_DEV
;;
*)
;;
esac
}
_test_dump_log()
{
case "$FSTYP" in
xfs)
_test_xfs_logprint
;;
f2fs)
$DUMP_F2FS_PROG $TEST_DEV
;;
*)
;;
esac
}
_print_logstate()
{
case "$FSTYP" in