#! /bin/sh
# XFS QA Test No. 049
-# $Id: 1.1 $
#
# XFS on loop test
#
_require_scratch
_require_loop
+[ "$USE_EXTERNAL" = yes ] && _notrun "Test doesn't cope with external devices"
+
rm -f $seq.full
echo "(dev=$SCRATCH_DEV, mount=$SCRATCH_MNT)" >> $seq.full
|| _fail "!!! failed to mount"
_log "Create xfs fs in file on scratch"
-/sbin/mkfs.xfs -f $MKFS_OPTIONS -dfile,name=$SCRATCH_MNT/test.xfs,size=20m \
+/sbin/mkfs.xfs -f $MKFS_OPTIONS -dfile,name=$SCRATCH_MNT/test.xfs,size=40m \
>> $seq.full 2>&1 \
|| _fail "!!! failed to mkfs xfs"
|| _fail "!!! failed to loop mount xfs"
_log "stress"
-src/fsstress -d $SCRATCH_MNT/test -n 1000 $FSSTRESS_AVOID >> $seq.full 2>&1 \
+ltp/fsstress -d $SCRATCH_MNT/test -n 1000 $FSSTRESS_AVOID >> $seq.full 2>&1 \
|| _fail "!!! stress failed"
_log "clean"
|| _fail "!!! failed to loop mount xfs"
_log "stress ext2 on xfs via loop"
-src/fsstress -d $SCRATCH_MNT/test2 -n 1000 $FSSTRESS_AVOID >> $seq.full 2>&1 \
+ltp/fsstress -d $SCRATCH_MNT/test2 -n 1000 $FSSTRESS_AVOID >> $seq.full 2>&1 \
|| _fail "!!! stress ext2 failed"
_log "clean"