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:
Darrick J. Wong
2016-02-09 16:44:06 -08:00
parent 0a2b768cb7
commit 89f436e3ac
98 changed files with 0 additions and 230 deletions
-3
View File
@@ -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
-1
View File
@@ -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
-3
View File
@@ -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
-1
View File
@@ -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
-3
View File
@@ -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
-1
View File
@@ -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
-3
View File
@@ -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
-1
View File
@@ -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
-3
View File
@@ -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
-1
View File
@@ -4,4 +4,3 @@ Create the original files
Compare files
CoW every other block
Compare files
Check scratch fs