}
# Unmount and remount the scratch device, dumping the log
-_scratch_inject_logprint()
+_scratch_remount_dump_log()
{
local opts="$1"
touch $SCRATCH_MNT/badfs 2>&1 | _filter_scratch
echo "Remount to replay log"
-_scratch_inject_logprint >> $seqres.full
+_scratch_remount_dump_log >> $seqres.full
echo "FS should be online, touch should succeed"
touch $SCRATCH_MNT/goodfs
touch $SCRATCH_MNT/badfs 2>&1 | _filter_scratch
echo "Remount to replay log"
-_scratch_inject_logprint >> $seqres.full
+_scratch_remount_dump_log >> $seqres.full
echo "FS should be online, touch should succeed"
touch $SCRATCH_MNT/goodfs
touch $SCRATCH_MNT/badfs 2>&1 | _filter_scratch
echo "Remount to replay log"
-_scratch_inject_logprint >> $seqres.full
+_scratch_remount_dump_log >> $seqres.full
echo "FS should be online, touch should succeed"
touch $SCRATCH_MNT/goodfs
touch $SCRATCH_MNT/badfs 2>&1 | _filter_scratch
echo "Remount to replay log"
-_scratch_inject_logprint >> $seqres.full
+_scratch_remount_dump_log >> $seqres.full
echo "FS should be online, touch should succeed"
touch $SCRATCH_MNT/goodfs
$XFS_IO_PROG -c "pwrite -W -S 0x67 -b $sz 0 $((blks * blksz))" $SCRATCH_MNT/file2 >> $seqres.full
echo "Remount to replay log"
-_scratch_inject_logprint >> $seqres.full
+_scratch_remount_dump_log >> $seqres.full
echo "FS should be online, touch should succeed"
touch $SCRATCH_MNT/goodfs
touch $SCRATCH_MNT/badfs 2>&1 | _filter_scratch
echo "Remount to replay log"
-_scratch_inject_logprint >> $seqres.full
+_scratch_remount_dump_log >> $seqres.full
echo "Check files"
md5sum $SCRATCH_MNT/file0 | _filter_scratch
touch $SCRATCH_MNT/badfs 2>&1 | _filter_scratch
echo "Remount to replay log"
-_scratch_inject_logprint >> $seqres.full
+_scratch_remount_dump_log >> $seqres.full
echo "Check files"
md5sum $SCRATCH_MNT/file1 2>&1 | _filter_scratch
touch $SCRATCH_MNT/badfs 2>&1 | _filter_scratch
echo "Remount to replay log"
-_scratch_inject_logprint >> $seqres.full
+_scratch_remount_dump_log >> $seqres.full
echo "FS should be online, touch should succeed"
touch $SCRATCH_MNT/goodfs
touch $SCRATCH_MNT/badfs 2>&1 | _filter_scratch
echo "Remount to replay log"
-_scratch_inject_logprint >> $seqres.full
+_scratch_remount_dump_log >> $seqres.full
echo "Check files"
md5sum $SCRATCH_MNT/file1 | _filter_scratch
touch $SCRATCH_MNT/badfs 2>&1 | _filter_scratch
echo "Remount to replay log"
-_scratch_inject_logprint >> $seqres.full
+_scratch_remount_dump_log >> $seqres.full
echo "Check files"
md5sum $SCRATCH_MNT/file1 | _filter_scratch
touch $SCRATCH_MNT/badfs 2>&1 | _filter_scratch
echo "Remount to replay log"
-_scratch_inject_logprint >> $seqres.full
+_scratch_remount_dump_log >> $seqres.full
echo "Check files"
md5sum $SCRATCH_MNT/file1 | _filter_scratch
touch $SCRATCH_MNT/badfs 2>&1 | _filter_scratch
echo "Remount to replay log"
-_scratch_inject_logprint >> $seqres.full
+_scratch_remount_dump_log >> $seqres.full
echo "FS should be online, touch should succeed"
touch $SCRATCH_MNT/goodfs
_cp_reflink $SCRATCH_MNT/file1 $SCRATCH_MNT/file4
echo "Remount to replay log"
-_scratch_inject_logprint >> $seqres.full
+_scratch_remount_dump_log >> $seqres.full
echo "FS should be online, touch should succeed"
touch $SCRATCH_MNT/goodfs
touch $SCRATCH_MNT/badfs 2>&1 | _filter_scratch
echo "Remount to replay log"
-_scratch_inject_logprint >> $seqres.full
+_scratch_remount_dump_log >> $seqres.full
echo "FS should be online, touch should succeed"
touch $SCRATCH_MNT/goodfs
touch $SCRATCH_MNT/badfs 2>&1 | _filter_scratch
echo "Remount to replay log"
-_scratch_inject_logprint >> $seqres.full
+_scratch_remount_dump_log >> $seqres.full
echo "FS should be online, touch should succeed"
touch $SCRATCH_MNT/goodfs
touch $SCRATCH_MNT/badfs 2>&1 | _filter_scratch
echo "Remount to replay log" | tee /dev/ttyprintk
-_scratch_inject_logprint >> $seqres.full
+_scratch_remount_dump_log >> $seqres.full
new_nextents=$(_count_extents $testdir/file1)
echo "Check extent count" | tee /dev/ttyprintk