mirror of
https://github.com/linux-apfs/apfstests.git
synced 2026-05-01 15:01:44 -07:00
Numerous changes to QA scripts allowing tests to run with external log/rt devices; also allow multiple mkfs/mount options at once now.
This commit is contained in:
@@ -53,15 +53,6 @@ _cleanup()
|
||||
}
|
||||
trap "_cleanup; rm -f $tmp.*; exit \$status" 0 1 2 3 15
|
||||
|
||||
_clean_log()
|
||||
{
|
||||
echo "" >>$seq.full
|
||||
echo "*** xfs_logprint ***" >>$seq.full
|
||||
echo "" >>$seq.full
|
||||
xfs_logprint -tb $1 | tee -a $seq.full \
|
||||
| head | grep -q "<CLEAN>" || _fail "DIRTY LOG"
|
||||
}
|
||||
|
||||
# get standard environment, filters and checks
|
||||
. ./common.rc
|
||||
. ./common.filter
|
||||
@@ -76,9 +67,9 @@ rm -f $seq.full
|
||||
umount $SCRATCH_DEV >/dev/null 2>&1
|
||||
echo "*** MKFS ***" >>$seq.full
|
||||
echo "" >>$seq.full
|
||||
mkfs_xfs $SCRATCH_DEV >>$seq.full 2>&1 \
|
||||
_scratch_mkfs_xfs >>$seq.full 2>&1 \
|
||||
|| _fail "mkfs failed"
|
||||
mount -t xfs $SCRATCH_DEV $SCRATCH_MNT >>$seq.full 2>&1 \
|
||||
_scratch_mount >>$seq.full 2>&1 \
|
||||
|| _fail "mount failed"
|
||||
|
||||
echo "*** test"
|
||||
@@ -88,17 +79,21 @@ do
|
||||
echo " *** test $l"
|
||||
src/fsstress -d $SCRATCH_MNT -n 1000 $FSSTRESS_AVOID >>$seq.full
|
||||
|
||||
mount -o remount,ro $SCRATCH_DEV \
|
||||
_scratch_mount -o remount,ro \
|
||||
|| _fail "remount ro failed"
|
||||
|
||||
_clean_log $SCRATCH_DEV
|
||||
|
||||
echo "" >>$seq.full
|
||||
echo "*** xfs_logprint ***" >>$seq.full
|
||||
echo "" >>$seq.full
|
||||
_scratch_xfs_logprint -tb | tee -a $seq.full \
|
||||
| head | grep -q "<CLEAN>" || _fail "DIRTY LOG"
|
||||
|
||||
echo "" >>$seq.full
|
||||
echo "*** XFS_CHECK ***" >>$seq.full
|
||||
echo "" >>$seq.full
|
||||
xfs_check $SCRATCH_DEV >>$seq.full 2>&1 \
|
||||
|| _fail "xfs_check failed"
|
||||
mount -o remount,rw $SCRATCH_DEV \
|
||||
_scratch_mount -o remount,rw \
|
||||
|| _fail "remount rw failed"
|
||||
done
|
||||
|
||||
|
||||
Reference in New Issue
Block a user