mirror of
https://github.com/linux-apfs/apfstests.git
synced 2026-05-01 15:01:44 -07:00
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:
committed by
Eryu Guan
parent
219d4cdcb6
commit
872ccc54ca
@@ -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=""
|
||||
|
||||
Reference in New Issue
Block a user