diff options
author | Jan Kara <jack@suse.cz> | 2018-05-29 18:55:58 +0200 |
---|---|---|
committer | Eryu Guan <guaneryu@gmail.com> | 2018-06-03 22:16:15 +0800 |
commit | 90b383e215bad8a80f699e799b5c911b92843165 (patch) | |
tree | 1f848a13bf3bbe424f750552e828d5372ca83163 | |
parent | 678c3f477d0d372046858eb0ec6cf9e1231d1195 (diff) | |
download | xfstests-dev-90b383e215bad8a80f699e799b5c911b92843165.tar.gz |
xfs/310: Cleanup
Cleanup couple of things that were objected to when creating test
ext4/033 out of this one.
Use _require_scratch_nocheck instead of recreating scratch fs before
exiting. Avoid needless cleanup of dmhugedev on exit - _cleanup
takes care of that. Use _scratch_unmount where possible.
Signed-off-by: Jan Kara <jack@suse.cz>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Eryu Guan <guaneryu@gmail.com>
-rwxr-xr-x | tests/xfs/310 | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/tests/xfs/310 b/tests/xfs/310 index f33a15ad02..5c1f20ce45 100755 --- a/tests/xfs/310 +++ b/tests/xfs/310 @@ -35,7 +35,6 @@ _cleanup() umount $SCRATCH_MNT > /dev/null 2>&1 _dmhugedisk_cleanup rm -rf $tmp.* - _scratch_mkfs >/dev/null 2>&1 } # get standard environment, filters and checks @@ -46,7 +45,7 @@ _cleanup() # real QA test starts here _supported_os Linux _supported_fs xfs -_require_scratch +_require_scratch_nocheck _require_xfs_scratch_rmapbt _require_xfs_io_command "falloc" @@ -60,7 +59,7 @@ _scratch_mount >> $seqres.full testdir=$SCRATCH_MNT/test-$seq blksz="$(_get_block_size $SCRATCH_MNT)" -umount $SCRATCH_MNT +_scratch_unmount echo "Format huge device" nr_blks=2100000 # 2^21 plus a little more @@ -110,7 +109,6 @@ test $nr_rmaps -eq 1 || xfs_db -c 'agf 0' -c 'addr rmaproot' -c 'p' $DMHUGEDISK_ echo "Check and fake-repair huge filesystem again" | tee -a $seqres.full $XFS_DB_PROG -c 'check' $DMHUGEDISK_DEV $XFS_REPAIR_PROG -n $DMHUGEDISK_DEV >> $seqres.full 2>&1 -_dmhugedisk_cleanup echo "Done" |