mirror of
https://github.com/linux-apfs/apfstests.git
synced 2026-05-01 15:01:44 -07:00
remove duplicate umount $scratch_dev in various tests
_require_scratch unmounts the SCRATCH_DEV. So it is not necessery to do it explicitly at the first time. Signed-off-by: Dmitry Monakhov <dmonakhov@openvz.org> Signed-off-by: Christoph Hellwig <hch@lst.de>
This commit is contained in:
committed by
Christoph Hellwig
parent
d02aebc9bb
commit
fcd8ef4251
@@ -72,7 +72,6 @@ _require_scratch
|
||||
_require_quota
|
||||
_need_to_be_root
|
||||
|
||||
umount $SCRATCH_DEV 2>/dev/null
|
||||
_scratch_mkfs >> $seq.full 2>&1
|
||||
_scratch_mount "-o usrquota,grpquota"
|
||||
chmod 777 $SCRATCH_MNT
|
||||
|
||||
@@ -80,7 +80,6 @@ _require_quota
|
||||
_require_user
|
||||
_need_to_be_root
|
||||
|
||||
umount $SCRATCH_DEV 2>/dev/null
|
||||
_scratch_mkfs >> $seq.full 2>&1
|
||||
_scratch_mount "-o usrquota,grpquota"
|
||||
chmod 777 $SCRATCH_MNT
|
||||
|
||||
@@ -64,10 +64,9 @@ _workout()
|
||||
# real QA test starts here
|
||||
_supported_fs generic
|
||||
_supported_os Linux
|
||||
_require_scratch
|
||||
_need_to_be_root
|
||||
_require_scratch
|
||||
|
||||
umount $SCRATCH_DEV 2>/dev/null
|
||||
_scratch_mkfs_sized $((512 * 1024 * 1024)) >> $seq.full 2>&1
|
||||
_scratch_mount
|
||||
|
||||
|
||||
@@ -77,12 +77,11 @@ _workout()
|
||||
# real QA test starts here
|
||||
_supported_fs generic
|
||||
_supported_os Linux
|
||||
_require_scratch
|
||||
_require_quota
|
||||
_require_user
|
||||
_need_to_be_root
|
||||
_require_scratch
|
||||
|
||||
umount $SCRATCH_DEV 2>/dev/null
|
||||
_scratch_mkfs_sized $((512 * 1024 * 1024)) >> $seq.full 2>&1
|
||||
_scratch_mount "-o usrquota,grpquota"
|
||||
chmod 777 $SCRATCH_MNT
|
||||
|
||||
@@ -39,10 +39,9 @@ trap "rm -f $tmp.*; exit \$status" 0 1 2 3 15
|
||||
# real QA test starts here
|
||||
_supported_fs ext4
|
||||
_supported_os Linux
|
||||
_require_scratch
|
||||
_need_to_be_root
|
||||
_require_scratch
|
||||
|
||||
umount $SCRATCH_DEV 2>/dev/null
|
||||
_scratch_mkfs_sized $((128 * 1024 * 1024)) >> $seq.full 2>&1
|
||||
|
||||
# -onoload and EXT4_SYNC_FL on file is important becase result in
|
||||
|
||||
Reference in New Issue
Block a user