@@ -32,7 +32,6 @@ _cleanup()
_supported_fs generic
_supported_os Linux
_require_test
-_require_scratch
_acl_setup_ids
_require_acls
_require_acl_get_max
@@ -52,9 +52,6 @@ _populate_fs -n $NDIRS -f $NFILES -d $DEPTH -r $POPULATED_DIR -s $SIZE >>$seqres
# Then tar up the directory structure
tar -cvf $TEMP_DIR/$TAR_FILE $POPULATED_DIR >>$seqres.full 2>&1
-# create f/s
-_require_scratch
-
# untar on f/s
cd $TEST_DIR
tar -xvf $TEMP_DIR/$TAR_FILE >>$seqres.full 2>&1
@@ -46,12 +46,12 @@ _supported_os Linux
_require_command "$LSATTR_PROG" lsattr
_require_command "$CHATTR_PROG" chattr
-_require_prjquota $SCRATCH_DEV
_require_scratch
_require_scratch_shutdown
_scratch_mkfs >/dev/null 2>&1
_require_metadata_journaling $SCRATCH_DEV
+_require_prjquota $SCRATCH_DEV
testfile=$SCRATCH_MNT/testfile
@@ -55,7 +55,7 @@ _supported_os Linux
# too much hassle to get output matching with quotas turned on
# so don't run it
#
-_scratch_unmount 2>/dev/null
+_scratch_mkfs_xfs >> $seqres.full
_scratch_mount
$here/src/feature -U $SCRATCH_DEV && \
_notrun "UQuota enabled, test needs controlled xfsdump output"
@@ -61,6 +61,7 @@ test_accounting()
}
export MOUNT_OPTIONS="-opquota"
+_scratch_mkfs_xfs >> $seqres.full
_qmount
_require_prjquota $SCRATCH_DEV
@@ -75,7 +75,7 @@ allocate()
}
# real QA test starts here
-_scratch_unmount 2>/dev/null
+_scratch_mkfs_xfs >> $seqres.full
_scratch_mount
rm -f $seqres.full
@@ -32,6 +32,9 @@ _supported_os Linux
# real QA test starts here
rm -f $seqres.full
+_require_scratch
+_scratch_mkfs_xfs >/dev/null 2>&1
+
# For this test we use block size = 1/8 page size
pgsize=`$here/src/feature -s`
blksize=`expr $pgsize / 8`
@@ -70,7 +73,6 @@ _filter_od()
sed -e "s/^[0-9A-Fa-f ]\{7,8\}//"
}
-_require_scratch
unset MKFS_OPTIONS
unset XFS_MKFS_OPTIONS
@@ -47,6 +47,8 @@ _supported_os Linux
_require_quota
_require_scratch
+_scratch_mkfs >> $seqres.full 2>&1
+
# Just use the current mount table as an example mtab file. Odds
# are good there's nothing wrong with it.
_setup_my_mtab() {
@@ -50,6 +50,7 @@ COPY_FILE="${TEST_DIR}/${seq}_copyfile"
# Test dump a mounted device
# xfs_metadump should refuse to dump a mounted device
+_scratch_mkfs >> $seqres.full 2>&1
_scratch_mount
_scratch_metadump $METADUMP_FILE 2>&1 | filter_mounted
_scratch_unmount