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
+28
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user