mirror of
https://github.com/linux-apfs/apfstests.git
synced 2026-05-01 15:01:44 -07:00
QA test updates - fixes for pquota, extsize, fsstress, and ensure mount options passed through to test_dev.
Merge of master-melb:xfs-cmds:24763a by kenmcd.
This commit is contained in:
@@ -19,7 +19,7 @@ _cleanup()
|
||||
umount $SCRATCH_MNT/test2 > /dev/null 2>&1
|
||||
umount $SCRATCH_MNT/test > /dev/null 2>&1
|
||||
rm -f $tmp.*
|
||||
|
||||
|
||||
if [ -w $seq.full ]
|
||||
then
|
||||
echo "--- mounts at end (after cleanup)" >> $seq.full
|
||||
@@ -81,9 +81,9 @@ mount -t xfs -o loop $SCRATCH_MNT/test.xfs $SCRATCH_MNT/test >> $seq.full 2>&1 \
|
||||
|| _fail "!!! failed to loop mount xfs"
|
||||
|
||||
_log "stress"
|
||||
ltp/fsstress -d $SCRATCH_MNT/test -n 1000 $FSSTRESS_AVOID >> $seq.full 2>&1 \
|
||||
$FSSTRESS_PROG -d $SCRATCH_MNT/test -n 1000 $FSSTRESS_AVOID >> $seq.full 2>&1 \
|
||||
|| _fail "!!! stress failed"
|
||||
|
||||
|
||||
_log "clean"
|
||||
rm -rf $SCRATCH_MNT/test/* >> $seq.full 2>&1 \
|
||||
|| _fail "!!! clean failed"
|
||||
@@ -91,7 +91,7 @@ rm -rf $SCRATCH_MNT/test/* >> $seq.full 2>&1 \
|
||||
_log "create file for ext2 fs"
|
||||
dd if=/dev/zero of=$SCRATCH_MNT/test/test.ext2 bs=1024 count=10240 >> $seq.full 2>&1 \
|
||||
|| _fail "!!! create file failed"
|
||||
|
||||
|
||||
_log "Create ext2 fs in file on looped xfs"
|
||||
echo y | mkfs -t ext2 $SCRATCH_MNT/test/test.ext2 >> $seq.full 2>&1 \
|
||||
|| _fail "!!! failed to mkfs ext2 on xfs"
|
||||
@@ -101,21 +101,21 @@ mount -t ext2 -o loop $SCRATCH_MNT/test/test.ext2 $SCRATCH_MNT/test2 >> $seq.ful
|
||||
|| _fail "!!! failed to loop mount xfs"
|
||||
|
||||
_log "stress ext2 on xfs via loop"
|
||||
ltp/fsstress -d $SCRATCH_MNT/test2 -n 1000 $FSSTRESS_AVOID >> $seq.full 2>&1 \
|
||||
|| _fail "!!! stress ext2 failed"
|
||||
$FSSTRESS_PROG -d $SCRATCH_MNT/test2 -n 1000 $FSSTRESS_AVOID >> $seq.full 2>&1 \
|
||||
|| _fail "!!! stress ext2 failed"
|
||||
|
||||
_log "clean"
|
||||
rm -rf $SCRATCH_MNT/test/* >> $seq.full 2>&1 \
|
||||
|| _fail "!!! clean failed"
|
||||
|
||||
|
||||
_log "umount ext2 on xfs"
|
||||
umount $SCRATCH_MNT/test2 >> $seq.full 2>&1 \
|
||||
|| _fail "!!! umount ext2 failed"
|
||||
|
||||
|
||||
_log "umount xfs"
|
||||
umount $SCRATCH_MNT/test >> $seq.full 2>&1 \
|
||||
|| _fail "!!! umount xfs failed"
|
||||
|
||||
|
||||
echo "--- mounts at end (before cleanup)" >> $seq.full
|
||||
mount >> $seq.full
|
||||
|
||||
|
||||
Reference in New Issue
Block a user