If the test fails for any reason, it fails to tear down the loop
device that was set up and hence the test device cannot be
unmounted, causing failures of subsequent tests.
Signed-off-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
cd /
rm -f $tmp.*
umount $LOOP_MNT 2>/dev/null
+ [ -n "$LOOP_DEV" ] && losetup -d $LOOP_DEV
rmdir $LOOP_MNT
}
# real QA test starts here
+rm -f $seqres.full
+
echo "*** create loop mount point"
rmdir $LOOP_MNT 2>/dev/null
mkdir -p $LOOP_MNT || _fail "cannot create loopback mount point"
echo
echo "*** mkfs loop file (size=$original)"
- $MKFS_XFS_PROG -b size=$bsize -d $dparam \
+ $MKFS_XFS_PROG -m crc=0 -b size=$bsize -d $dparam \
| _filter_mkfs 2>/dev/null
echo "*** extend loop file"
losetup $LOOP_DEV $LOOP_IMG
_check_xfs_filesystem $LOOP_DEV none none
losetup -d $LOOP_DEV
+ LOOP_DEV=
fi
rm -f $LOOP_IMG