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
+8
View File
@@ -1096,6 +1096,14 @@ _scratch_xfs_logprint()
$XFS_LOGPRINT_PROG $SCRATCH_OPTIONS $* $SCRATCH_DEV
}
_test_xfs_logprint()
{
TEST_OPTIONS=""
[ "$USE_EXTERNAL" = yes -a ! -z "$TEST_LOGDEV" ] && \
TEST_OPTIONS="-l$TEST_LOGDEV"
$XFS_LOGPRINT_PROG $TEST_OPTIONS $* $TEST_DEV
}
_scratch_xfs_check()
{
SCRATCH_OPTIONS=""