mirror of
https://github.com/linux-apfs/apfstests.git
synced 2026-05-01 15:01:44 -07:00
reflink: remove unnecessary umounts from test code
The test harness already takes care of this, so get rid of it. Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
This commit is contained in:
@@ -70,9 +70,6 @@ _cp_reflink "$testdir/original" "$testdir/copy3"
|
||||
|
||||
xfs_info "$SCRATCH_MNT" >> "$seqres.full"
|
||||
|
||||
echo "Check scratch fs"
|
||||
umount "$SCRATCH_MNT"
|
||||
|
||||
# success, all done
|
||||
status=0
|
||||
exit
|
||||
|
||||
@@ -3,4 +3,3 @@ Format and mount
|
||||
Create the original file and reflink to copy1, copy2
|
||||
Grow fs
|
||||
Create more reflink copies
|
||||
Check scratch fs
|
||||
|
||||
@@ -140,9 +140,6 @@ _within_tolerance "free blocks after CoW some reflink copies" $free_blocks2 $((f
|
||||
_within_tolerance "free blocks after defragging all reflink copies" $free_blocks3 $((free_blocks2 - (blks * 2 * blksz_factor))) $margin -v
|
||||
_within_tolerance "free blocks after all tests" $free_blocks3 $((free_blocks0 - (blks * 3 * blksz_factor))) $margin -v
|
||||
|
||||
echo "Check scratch fs"
|
||||
umount "$SCRATCH_MNT"
|
||||
|
||||
# success, all done
|
||||
status=0
|
||||
exit
|
||||
|
||||
@@ -24,4 +24,3 @@ free blocks after creating some reflink copies is in range
|
||||
free blocks after CoW some reflink copies is in range
|
||||
free blocks after defragging all reflink copies is in range
|
||||
free blocks after all tests is in range
|
||||
Check scratch fs
|
||||
|
||||
@@ -67,9 +67,6 @@ _cp_reflink "$testdir/file1" "$testdir/file2" 2>&1 | _filter_scratch
|
||||
|
||||
test -s "$testdir/file2" && _fail "Should not be able to reflink a realtime file."
|
||||
|
||||
echo "Check restored fs"
|
||||
umount "$SCRATCH_MNT"
|
||||
|
||||
# success, all done
|
||||
status=0
|
||||
exit
|
||||
|
||||
@@ -3,4 +3,3 @@ Format and mount scratch device
|
||||
Create the original file blocks
|
||||
Reflink every block
|
||||
cp: failed to clone 'SCRATCH_MNT/test-131/file2' from 'SCRATCH_MNT/test-131/file1': Invalid argument
|
||||
Check restored fs
|
||||
|
||||
@@ -73,9 +73,6 @@ md5sum "$testdir/file1" | _filter_scratch
|
||||
md5sum "$testdir/file2" | _filter_scratch
|
||||
#filefrag -v "$testdir/file1" "$testdir/file2"
|
||||
|
||||
echo "Check scratch fs"
|
||||
umount "$SCRATCH_MNT"
|
||||
|
||||
# success, all done
|
||||
status=0
|
||||
exit
|
||||
|
||||
@@ -5,4 +5,3 @@ CoW every other block
|
||||
Compare files
|
||||
673c759fb131ccf3336c4f8c549a497e SCRATCH_MNT/test-139/file1
|
||||
dc802351f6717547cbf4c951b294f952 SCRATCH_MNT/test-139/file2
|
||||
Check scratch fs
|
||||
|
||||
@@ -80,9 +80,6 @@ echo "Compare files"
|
||||
! cmp -s "$testdir/file1" "$testdir/file2" || echo "file1 and file2 must not match"
|
||||
cmp -s "$testdir/file2" "$testdir/file2.chk" || echo "file2 and file2.chk do not match"
|
||||
|
||||
echo "Check scratch fs"
|
||||
umount "$SCRATCH_MNT"
|
||||
|
||||
# success, all done
|
||||
status=0
|
||||
exit
|
||||
|
||||
@@ -4,4 +4,3 @@ Create the original files
|
||||
Compare files
|
||||
CoW every other block
|
||||
Compare files
|
||||
Check scratch fs
|
||||
|
||||
Reference in New Issue
Block a user