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:
@@ -121,9 +121,6 @@ echo "Reflink two files"
|
|||||||
_reflink_range "$testdir1/file1" 0 "$testdir1/file2" 0 $blksz >> "$seqres.full"
|
_reflink_range "$testdir1/file1" 0 "$testdir1/file2" 0 $blksz >> "$seqres.full"
|
||||||
_reflink_range "$testdir2/file1" 0 "$testdir2/file2" 0 $blksz >> "$seqres.full"
|
_reflink_range "$testdir2/file1" 0 "$testdir2/file2" 0 $blksz >> "$seqres.full"
|
||||||
|
|
||||||
echo "Check scratch fs"
|
|
||||||
_scratch_unmount
|
|
||||||
|
|
||||||
# success, all done
|
# success, all done
|
||||||
status=0
|
status=0
|
||||||
exit
|
exit
|
||||||
|
|||||||
@@ -22,4 +22,3 @@ XFS_IOC_CLONE_RANGE: Invalid argument
|
|||||||
Try to reflink an append-only file
|
Try to reflink an append-only file
|
||||||
XFS_IOC_CLONE_RANGE: Bad file descriptor
|
XFS_IOC_CLONE_RANGE: Bad file descriptor
|
||||||
Reflink two files
|
Reflink two files
|
||||||
Check scratch fs
|
|
||||||
|
|||||||
@@ -122,9 +122,6 @@ echo "Dedupe two files"
|
|||||||
_dedupe_range "$testdir1/file1" 0 "$testdir1/file2" 0 $blksz >> "$seqres.full"
|
_dedupe_range "$testdir1/file1" 0 "$testdir1/file2" 0 $blksz >> "$seqres.full"
|
||||||
_dedupe_range "$testdir2/file1" 0 "$testdir2/file2" 0 $blksz >> "$seqres.full"
|
_dedupe_range "$testdir2/file1" 0 "$testdir2/file2" 0 $blksz >> "$seqres.full"
|
||||||
|
|
||||||
echo "Check scratch fs"
|
|
||||||
_scratch_unmount
|
|
||||||
|
|
||||||
# success, all done
|
# success, all done
|
||||||
status=0
|
status=0
|
||||||
exit
|
exit
|
||||||
|
|||||||
@@ -21,4 +21,3 @@ Try to dedupe to a fifo
|
|||||||
dedupe: Invalid argument
|
dedupe: Invalid argument
|
||||||
Try to dedupe an append-only file
|
Try to dedupe an append-only file
|
||||||
Dedupe two files
|
Dedupe two files
|
||||||
Check scratch fs
|
|
||||||
|
|||||||
@@ -69,10 +69,6 @@ rm -rf "$testdir/file1" &
|
|||||||
_pwrite_byte 0x62 0 $((loops * blksz)) "$testdir/file1" >> "$seqres.full"
|
_pwrite_byte 0x62 0 $((loops * blksz)) "$testdir/file1" >> "$seqres.full"
|
||||||
wait
|
wait
|
||||||
|
|
||||||
echo "Check fs"
|
|
||||||
umount "$SCRATCH_MNT"
|
|
||||||
|
|
||||||
echo "Done"
|
|
||||||
# success, all done
|
# success, all done
|
||||||
status=0
|
status=0
|
||||||
exit
|
exit
|
||||||
|
|||||||
@@ -2,5 +2,3 @@ QA output created by 161
|
|||||||
Format and mount
|
Format and mount
|
||||||
Initialize files
|
Initialize files
|
||||||
Delete while rewriting
|
Delete while rewriting
|
||||||
Check fs
|
|
||||||
Done
|
|
||||||
|
|||||||
@@ -85,10 +85,6 @@ echo "Finished dedupeing"
|
|||||||
touch "$testdir/finished"
|
touch "$testdir/finished"
|
||||||
wait
|
wait
|
||||||
|
|
||||||
echo "Check fs"
|
|
||||||
umount "$SCRATCH_MNT"
|
|
||||||
|
|
||||||
echo "Done"
|
|
||||||
# success, all done
|
# success, all done
|
||||||
status=0
|
status=0
|
||||||
exit
|
exit
|
||||||
|
|||||||
@@ -3,5 +3,3 @@ Format and mount
|
|||||||
Initialize files
|
Initialize files
|
||||||
Dedupe and rewrite the file!
|
Dedupe and rewrite the file!
|
||||||
Finished dedupeing
|
Finished dedupeing
|
||||||
Check fs
|
|
||||||
Done
|
|
||||||
|
|||||||
@@ -85,10 +85,6 @@ echo "Finished dedupeing"
|
|||||||
touch "$testdir/finished"
|
touch "$testdir/finished"
|
||||||
wait
|
wait
|
||||||
|
|
||||||
echo "Check fs"
|
|
||||||
umount "$SCRATCH_MNT"
|
|
||||||
|
|
||||||
echo "Done"
|
|
||||||
# success, all done
|
# success, all done
|
||||||
status=0
|
status=0
|
||||||
exit
|
exit
|
||||||
|
|||||||
@@ -3,5 +3,3 @@ Format and mount
|
|||||||
Initialize files
|
Initialize files
|
||||||
Dedupe and rewrite the file!
|
Dedupe and rewrite the file!
|
||||||
Finished dedupeing
|
Finished dedupeing
|
||||||
Check fs
|
|
||||||
Done
|
|
||||||
|
|||||||
@@ -95,10 +95,6 @@ echo "Finished reflinking"
|
|||||||
touch "$testdir/finished"
|
touch "$testdir/finished"
|
||||||
wait
|
wait
|
||||||
|
|
||||||
echo "Check fs"
|
|
||||||
umount "$SCRATCH_MNT"
|
|
||||||
|
|
||||||
echo "Done"
|
|
||||||
# success, all done
|
# success, all done
|
||||||
status=0
|
status=0
|
||||||
exit
|
exit
|
||||||
|
|||||||
@@ -3,5 +3,3 @@ Format and mount
|
|||||||
Initialize files
|
Initialize files
|
||||||
Reflink and reread the files!
|
Reflink and reread the files!
|
||||||
Finished reflinking
|
Finished reflinking
|
||||||
Check fs
|
|
||||||
Done
|
|
||||||
|
|||||||
@@ -95,10 +95,6 @@ echo "Finished reflinking"
|
|||||||
touch "$testdir/finished"
|
touch "$testdir/finished"
|
||||||
wait
|
wait
|
||||||
|
|
||||||
echo "Check fs"
|
|
||||||
umount "$SCRATCH_MNT"
|
|
||||||
|
|
||||||
echo "Done"
|
|
||||||
# success, all done
|
# success, all done
|
||||||
status=0
|
status=0
|
||||||
exit
|
exit
|
||||||
|
|||||||
@@ -3,5 +3,3 @@ Format and mount
|
|||||||
Initialize files
|
Initialize files
|
||||||
Reflink and dio reread the files!
|
Reflink and dio reread the files!
|
||||||
Finished reflinking
|
Finished reflinking
|
||||||
Check fs
|
|
||||||
Done
|
|
||||||
|
|||||||
@@ -82,11 +82,6 @@ done
|
|||||||
touch $testdir/finished
|
touch $testdir/finished
|
||||||
wait
|
wait
|
||||||
|
|
||||||
echo "Check for damage"
|
|
||||||
_scratch_unmount
|
|
||||||
|
|
||||||
echo "Done"
|
|
||||||
|
|
||||||
# success, all done
|
# success, all done
|
||||||
status=0
|
status=0
|
||||||
exit
|
exit
|
||||||
|
|||||||
@@ -2,5 +2,3 @@ QA output created by 166
|
|||||||
Format and mount
|
Format and mount
|
||||||
Initialize file
|
Initialize file
|
||||||
Snapshot a file undergoing directio rewrite
|
Snapshot a file undergoing directio rewrite
|
||||||
Check for damage
|
|
||||||
Done
|
|
||||||
|
|||||||
@@ -82,11 +82,6 @@ done
|
|||||||
touch $testdir/finished
|
touch $testdir/finished
|
||||||
wait
|
wait
|
||||||
|
|
||||||
echo "Check for damage"
|
|
||||||
_scratch_unmount
|
|
||||||
|
|
||||||
echo "Done"
|
|
||||||
|
|
||||||
# success, all done
|
# success, all done
|
||||||
status=0
|
status=0
|
||||||
exit
|
exit
|
||||||
|
|||||||
@@ -2,5 +2,3 @@ QA output created by 167
|
|||||||
Format and mount
|
Format and mount
|
||||||
Initialize file
|
Initialize file
|
||||||
Snapshot a file undergoing buffered rewrite
|
Snapshot a file undergoing buffered rewrite
|
||||||
Check for damage
|
|
||||||
Done
|
|
||||||
|
|||||||
@@ -86,11 +86,6 @@ done
|
|||||||
touch "$testdir/finished"
|
touch "$testdir/finished"
|
||||||
wait
|
wait
|
||||||
|
|
||||||
echo "Check for damage"
|
|
||||||
umount "$SCRATCH_MNT"
|
|
||||||
|
|
||||||
echo "Done"
|
|
||||||
|
|
||||||
# success, all done
|
# success, all done
|
||||||
status=0
|
status=0
|
||||||
exit
|
exit
|
||||||
|
|||||||
@@ -2,5 +2,3 @@ QA output created by 168
|
|||||||
Format and mount
|
Format and mount
|
||||||
Initialize files
|
Initialize files
|
||||||
Reflink and write the target
|
Reflink and write the target
|
||||||
Check for damage
|
|
||||||
Done
|
|
||||||
|
|||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user