From: Theodore Ts'o Date: Thu, 18 Feb 2016 23:44:53 +0000 (+1100) Subject: Rename _scratch_mount to _scratch_cycle_mount X-Git-Tag: v2022.05.01~2610 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=76c21d68150dc6a726997edebefeb477ea07cc78;p=users%2Fhch%2Fxfstests-dev.git Rename _scratch_mount to _scratch_cycle_mount This makes it clear when we are using "mount ; umount" versus "mount -o remount" for most file systems. The reason for this distinction is (a) tests may want to test the difference between what happens on the remount versus the munt paths, (b) with tmpfs, "mount ; umount" will cause the contents of all of the files to disappear which makes many tests sad, and (c) some mount options may not be changed using "mount -o remount". Currently _scratch_mount performs "_scratch_mount ; _scratch_umount" so mechnically rename this function to _scratch_cycle_mount. This was done mechnically using the script fragment: git grep "_scratch_remount" | \ awk -F: '{print $1}' | sort -u | \ xargs sed -i 's/_scratch_remount/_scratch_cycle_mount/g' Signed-off-by: Theodore Ts'o Reviewed-by: Dave Chinner Signed-off-by: Dave Chinner --- diff --git a/common/defrag b/common/defrag index d2b137eef..942593e12 100644 --- a/common/defrag +++ b/common/defrag @@ -144,7 +144,7 @@ _defrag() STAT_BEFORE=`stat -c "a: %x m: %y c: %z" $1` $DEFRAG_PROG -v $1 >> $seqres.full 2>&1 - _scratch_remount + _scratch_cycle_mount STAT_AFTER=`stat -c "a: %x m: %y c: %z" $1` [ ! -z $csum ] && CSUM_AFTER=`md5sum $1` diff --git a/common/rc b/common/rc index 582a32c8c..ea2c164ca 100644 --- a/common/rc +++ b/common/rc @@ -329,7 +329,7 @@ _scratch_unmount() esac } -_scratch_remount() +_scratch_cycle_mount() { _scratch_unmount _scratch_mount diff --git a/tests/btrfs/001 b/tests/btrfs/001 index 8258d0657..005791dbb 100755 --- a/tests/btrfs/001 +++ b/tests/btrfs/001 @@ -80,7 +80,7 @@ dd if=/dev/zero of=$SCRATCH_MNT/subvol/bar bs=1M count=1 &> /dev/null echo "Setting subvol to the default" subvolid=$(_btrfs_get_subvolid $SCRATCH_MNT subvol) $BTRFS_UTIL_PROG subvolume set-default $subvolid $SCRATCH_MNT | _filter_scratch -_scratch_remount +_scratch_cycle_mount echo "List root dir which is now subvol" ls $SCRATCH_MNT _scratch_unmount @@ -90,7 +90,7 @@ echo "List root dir" ls $SCRATCH_MNT echo "Setting the root dir as the default again" $BTRFS_UTIL_PROG subvolume set-default 0 $SCRATCH_MNT | _filter_scratch -_scratch_remount +_scratch_cycle_mount echo "List root dir" ls $SCRATCH_MNT @@ -102,7 +102,7 @@ $BTRFS_UTIL_PROG subvolume list $SCRATCH_MNT | awk '{ print $NF }' $BTRFS_UTIL_PROG subvolume delete $SCRATCH_MNT/snap | _filter_btrfs_subvol_delete echo "List root dir" ls $SCRATCH_MNT -_scratch_remount +_scratch_cycle_mount echo "List root dir" ls $SCRATCH_MNT diff --git a/tests/btrfs/005 b/tests/btrfs/005 index c048ab57b..92365013c 100755 --- a/tests/btrfs/005 +++ b/tests/btrfs/005 @@ -88,7 +88,7 @@ _btrfs_online_defrag() fi fi ret_val=$? - _scratch_remount + _scratch_cycle_mount # Older defrag returned "20" for success # e9393c2 btrfs-progs: defrag return zero on success if [ $ret_val -ne 0 -a $ret_val -ne 20 ]; then diff --git a/tests/btrfs/026 b/tests/btrfs/026 index 0477ed4ec..60908cc48 100644 --- a/tests/btrfs/026 +++ b/tests/btrfs/026 @@ -99,7 +99,7 @@ $XFS_IO_PROG -d -c "pwrite -S 0xbb -b 256M 3M 256M" $SCRATCH_MNT/bar \ echo "File digests before remounting the file system:" md5sum $SCRATCH_MNT/foo | _filter_scratch md5sum $SCRATCH_MNT/bar | _filter_scratch -_scratch_remount +_scratch_cycle_mount echo "File digests after remounting the file system:" md5sum $SCRATCH_MNT/foo | _filter_scratch md5sum $SCRATCH_MNT/bar | _filter_scratch diff --git a/tests/btrfs/052 b/tests/btrfs/052 index b760b9291..babc12762 100755 --- a/tests/btrfs/052 +++ b/tests/btrfs/052 @@ -149,7 +149,7 @@ test_btrfs_clone_same_file() # Check that after defragmenting the file and re-mounting, the file # content remains exactly the same as before. _run_btrfs_util_prog filesystem defragment $SCRATCH_MNT/foo - _scratch_remount + _scratch_cycle_mount od -t x1 $SCRATCH_MNT/foo | _filter_od # Verify that there are no consistency errors. diff --git a/tests/btrfs/081 b/tests/btrfs/081 index 51d0e84d7..40fa426fb 100755 --- a/tests/btrfs/081 +++ b/tests/btrfs/081 @@ -127,7 +127,7 @@ md5sum $SCRATCH_MNT/bar | _filter_scratch # Validate the content of bar still matches foo's content even after # clearing all of bar's data from the page cache. -_scratch_remount +_scratch_cycle_mount echo "Verifying target file digest after umount + mount" md5sum $SCRATCH_MNT/bar | _filter_scratch diff --git a/tests/btrfs/088 b/tests/btrfs/088 index ca11c253e..79268ecf7 100755 --- a/tests/btrfs/088 +++ b/tests/btrfs/088 @@ -121,7 +121,7 @@ $FSTRIM_PROG $SCRATCH_MNT # We expect to be able to mount the fs again and have available all metadata and # data that got persisted in the first transaction. -_scratch_remount +_scratch_cycle_mount # We now expect file's foo content to match what it had when the first # transaction was committed because the second transaction was aborted and we diff --git a/tests/btrfs/102 b/tests/btrfs/102 index a94e3f672..9f0bea095 100755 --- a/tests/btrfs/102 +++ b/tests/btrfs/102 @@ -74,7 +74,7 @@ _run_btrfs_util_prog balance start -dusage=0 $SCRATCH_MNT # object was marked as full when initialized (because it had 0 total bytes), # which prevented the file write path from attempting to allocate a data block # group and fail immediately with ENOSPC. -_scratch_remount +_scratch_cycle_mount echo "hello world" > $SCRATCH_MNT/foobar echo "Silence is golden" diff --git a/tests/btrfs/103 b/tests/btrfs/103 index 9d11d0f50..a5a252a07 100755 --- a/tests/btrfs/103 +++ b/tests/btrfs/103 @@ -95,7 +95,7 @@ test_clone_and_read_compressed_extent() # exclusively in the read path). The issue happened only if the same # readpages() call targeted pages belonging to the first and second # ranges that point to the same compressed extent. - _scratch_remount + _scratch_cycle_mount echo "File contents after mounting filesystem again:" # Must match the same contents we got before. diff --git a/tests/btrfs/104 b/tests/btrfs/104 index 80161a3ef..efc0d7434 100644 --- a/tests/btrfs/104 +++ b/tests/btrfs/104 @@ -132,7 +132,7 @@ _run_btrfs_util_prog quota enable $SCRATCH_MNT _run_btrfs_util_prog quota rescan -w $SCRATCH_MNT # Remount to clear cache, force everything to disk -_scratch_remount +_scratch_cycle_mount # Finally, delete snap1 to trigger btrfs_drop_snapshot(). This # snapshot is most interesting to delete because it will cause some diff --git a/tests/btrfs/106 b/tests/btrfs/106 index 30c43fab6..c7e61f72b 100755 --- a/tests/btrfs/106 +++ b/tests/btrfs/106 @@ -82,7 +82,7 @@ test_clone_and_read_compressed_extent() # bug exclusively in the read path of compressed extents, the correct # data was stored on disk, btrfs just failed to fill in the pages # correctly. - _scratch_remount + _scratch_cycle_mount echo "File contents after remount:" # Must match the digest we got before. diff --git a/tests/f2fs/001 b/tests/f2fs/001 index 9c4425a51..c84dbde63 100755 --- a/tests/f2fs/001 +++ b/tests/f2fs/001 @@ -76,7 +76,7 @@ $testfile | _filter_xfs_io echo "==== check data contents ====" hexdump -C $testfile -_scratch_remount +_scratch_cycle_mount hexdump -C $testfile rm $testfile diff --git a/tests/generic/029 b/tests/generic/029 index 854794ef4..a83d02d3e 100755 --- a/tests/generic/029 +++ b/tests/generic/029 @@ -69,7 +69,7 @@ $testfile | _filter_xfs_io echo "==== Pre-Remount ===" hexdump -C $testfile -_scratch_remount +_scratch_cycle_mount echo "==== Post-Remount ==" hexdump -C $testfile @@ -94,7 +94,7 @@ $testfile | _filter_xfs_io echo "==== Pre-Remount ===" hexdump -C $testfile -_scratch_remount +_scratch_cycle_mount echo "==== Post-Remount ==" hexdump -C $testfile @@ -114,7 +114,7 @@ $testfile | _filter_xfs_io echo "==== Pre-Remount ===" hexdump -C $testfile -_scratch_remount +_scratch_cycle_mount echo "==== Post-Remount ==" hexdump -C $testfile diff --git a/tests/generic/030 b/tests/generic/030 index 9947b96e1..8e6827db1 100755 --- a/tests/generic/030 +++ b/tests/generic/030 @@ -74,7 +74,7 @@ $testfile | _filter_xfs_io echo "==== Pre-Remount ===" hexdump -C $testfile -_scratch_remount +_scratch_cycle_mount echo "==== Post-Remount ==" hexdump -C $testfile @@ -103,7 +103,7 @@ $testfile | _filter_xfs_io echo "==== Pre-Remount ===" hexdump -C $testfile -_scratch_remount +_scratch_cycle_mount echo "==== Post-Remount ==" hexdump -C $testfile @@ -139,7 +139,7 @@ $testfile | _filter_xfs_io echo "==== Pre-Remount ===" hexdump -C $testfile -_scratch_remount +_scratch_cycle_mount echo "==== Post-Remount ==" hexdump -C $testfile diff --git a/tests/generic/031 b/tests/generic/031 index 7d615c0ba..fcb5f89b6 100755 --- a/tests/generic/031 +++ b/tests/generic/031 @@ -64,7 +64,7 @@ $testfile | _filter_xfs_io echo "==== Pre-Remount ===" hexdump -C $testfile -_scratch_remount +_scratch_cycle_mount echo "==== Post-Remount ==" hexdump -C $testfile diff --git a/tests/generic/032 b/tests/generic/032 index 53fb3de0b..8f4888421 100755 --- a/tests/generic/032 +++ b/tests/generic/032 @@ -104,7 +104,7 @@ kill $syncpid wait # clear page cache and dump the file -_scratch_remount +_scratch_cycle_mount hexdump $SCRATCH_MNT/file status=0 diff --git a/tests/generic/033 b/tests/generic/033 index d221fcd6f..4f8bb9218 100755 --- a/tests/generic/033 +++ b/tests/generic/033 @@ -77,7 +77,7 @@ for i in $(seq 4096 8192 $endoff); do $XFS_IO_PROG -c "fzero -k $i 4k" $file >> $seqres.full 2>&1 done -_scratch_remount +_scratch_cycle_mount hexdump $file status=0 diff --git a/tests/generic/071 b/tests/generic/071 index 7aaaed7e6..1b0f558db 100755 --- a/tests/generic/071 +++ b/tests/generic/071 @@ -68,7 +68,7 @@ $XFS_IO_PROG -c "falloc 0 512K" $SCRATCH_MNT/foo # Now ummount and mount again the fs. After this we expect the file's size to # be 512Kb. -_scratch_remount +_scratch_cycle_mount # Now check that all data we wrote before are available and the file size is # 512Kb. diff --git a/tests/generic/098 b/tests/generic/098 index 77dd49231..494563007 100755 --- a/tests/generic/098 +++ b/tests/generic/098 @@ -80,7 +80,7 @@ $XFS_IO_PROG -c "pwrite -S 0xbb 256K 32K" $SCRATCH_MNT/foo | _filter_xfs_io # up being written to disk. $XFS_IO_PROG -c "truncate 160K" $SCRATCH_MNT/foo -_scratch_remount +_scratch_cycle_mount # We expect to see a file with a size of 160Kb, with the first 128Kb of data all # having the value 0xaa and the remaining 32Kb of data all having the value 0x00 diff --git a/tests/generic/161 b/tests/generic/161 index 7776b83c5..c62e0fb0c 100755 --- a/tests/generic/161 +++ b/tests/generic/161 @@ -61,7 +61,7 @@ echo "Initialize files" echo > $seqres.full _pwrite_byte 0x61 0 $((loops * blksz)) $testdir/file1 >> $seqres.full _cp_reflink $testdir/file1 $testdir/file2 -_scratch_remount +_scratch_cycle_mount echo "Delete while rewriting" rm -rf $testdir/file1 & diff --git a/tests/generic/162 b/tests/generic/162 index 6d5bb7a56..c42c25a56 100755 --- a/tests/generic/162 +++ b/tests/generic/162 @@ -61,7 +61,7 @@ echo "Initialize files" echo > $seqres.full _pwrite_byte 0x61 0 $((loops * blksz)) $testdir/file1 >> $seqres.full _pwrite_byte 0x61 0 $((loops * blksz)) $testdir/file2 >> $seqres.full -_scratch_remount +_scratch_cycle_mount overwrite() { while [ ! -e $testdir/finished ]; do diff --git a/tests/generic/163 b/tests/generic/163 index b9b0cd782..4e916c6f6 100755 --- a/tests/generic/163 +++ b/tests/generic/163 @@ -61,7 +61,7 @@ echo "Initialize files" echo > $seqres.full _pwrite_byte 0x61 0 $((loops * blksz)) $testdir/file1 >> $seqres.full _pwrite_byte 0x61 0 $((loops * blksz)) $testdir/file2 >> $seqres.full -_scratch_remount +_scratch_cycle_mount overwrite() { while [ ! -e $testdir/finished ]; do diff --git a/tests/generic/164 b/tests/generic/164 index 6c127240c..e2ef55fc7 100755 --- a/tests/generic/164 +++ b/tests/generic/164 @@ -64,7 +64,7 @@ echo > $seqres.full _pwrite_byte 0x61 0 $((loops * blksz)) $testdir/file1 >> $seqres.full _pwrite_byte 0x62 0 $((loops * blksz)) $testdir/file2 >> $seqres.full _cp_reflink $testdir/file1 $testdir/file3 -_scratch_remount +_scratch_cycle_mount fbytes() { egrep -v '(61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61|62 62 62 62 62 62 62 62 62 62 62 62 62 62 62 62)' diff --git a/tests/generic/165 b/tests/generic/165 index 1ae08a47b..fc2ac1bfa 100755 --- a/tests/generic/165 +++ b/tests/generic/165 @@ -65,7 +65,7 @@ echo > $seqres.full _pwrite_byte 0x61 0 $((loops * blksz)) $testdir/file1 >> $seqres.full _pwrite_byte 0x62 0 $((loops * blksz)) $testdir/file2 >> $seqres.full _cp_reflink $testdir/file1 $testdir/file3 -_scratch_remount +_scratch_cycle_mount fbytes() { egrep -v '(61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61|62 62 62 62 62 62 62 62 62 62 62 62 62 62 62 62)' diff --git a/tests/generic/166 b/tests/generic/166 index a1e4ff41f..831b59817 100755 --- a/tests/generic/166 +++ b/tests/generic/166 @@ -63,7 +63,7 @@ blksz=65536 echo "Initialize file" echo > $seqres.full _pwrite_byte 0x61 0 $((loops * blksz)) $testdir/file1 >> $seqres.full -_scratch_remount +_scratch_cycle_mount # Snapshot creator... snappy() { diff --git a/tests/generic/167 b/tests/generic/167 index 76969c119..355a2bf1c 100755 --- a/tests/generic/167 +++ b/tests/generic/167 @@ -62,7 +62,7 @@ blksz=65536 echo "Initialize file" echo > $seqres.full _pwrite_byte 0x61 0 $((loops * blksz)) $testdir/file1 >> $seqres.full -_scratch_remount +_scratch_cycle_mount # Snapshot creator... snappy() { diff --git a/tests/generic/168 b/tests/generic/168 index bb4a5a1ba..98e6f3041 100755 --- a/tests/generic/168 +++ b/tests/generic/168 @@ -62,7 +62,7 @@ echo "Initialize files" echo > $seqres.full _pwrite_byte 0x61 0 $((loops * blksz)) $testdir/file1 >> $seqres.full _pwrite_byte 0x62 0 $((loops * blksz)) $testdir/file2 >> $seqres.full -_scratch_remount +_scratch_cycle_mount # Direct I/O overwriter... overwrite() { diff --git a/tests/generic/170 b/tests/generic/170 index 0f29b3a0d..4f34f3b8c 100755 --- a/tests/generic/170 +++ b/tests/generic/170 @@ -63,7 +63,7 @@ echo "Initialize files" echo > $seqres.full _pwrite_byte 0x61 0 $((loops * blksz)) $testdir/file1 >> $seqres.full _pwrite_byte 0x62 0 $((loops * blksz)) $testdir/file2 >> $seqres.full -_scratch_remount +_scratch_cycle_mount # Direct I/O overwriter... overwrite() { diff --git a/tests/generic/171 b/tests/generic/171 index 8a3f246a2..f391685eb 100755 --- a/tests/generic/171 +++ b/tests/generic/171 @@ -87,7 +87,7 @@ echo ${out} >> $seqres.full 2>&1 echo ${out} echo "Remount and try CoW again" -_scratch_remount +_scratch_cycle_mount out="$(_pwrite_byte 0x62 0 $((blksz * nr_blks)) $testdir/bigfile 2>&1)" echo ${out} | grep -q "No space left on device" || echo "CoW should have failed with ENOSPC" diff --git a/tests/generic/172 b/tests/generic/172 index 3e32644d0..26fb30538 100755 --- a/tests/generic/172 +++ b/tests/generic/172 @@ -87,7 +87,7 @@ echo ${out} >> $seqres.full 2>&1 echo ${out} echo "Remount and try CoW again" -_scratch_remount +_scratch_cycle_mount out="$(_pwrite_byte 0x62 0 $((blksz * nr_blks)) $testdir/bigfile 2>&1)" echo ${out} | grep -q "No space left on device" || echo "CoW should have failed with ENOSPC" diff --git a/tests/generic/173 b/tests/generic/173 index fe085a658..c5fac9e7a 100755 --- a/tests/generic/173 +++ b/tests/generic/173 @@ -88,7 +88,7 @@ if [ $err -lt 128 ]; then fi echo "Remount and try CoW again" -_scratch_remount +_scratch_cycle_mount out="$(_mwrite_byte 0x62 0 $((blksz * nr_blks)) $((blksz * nr_blks)) $testdir/bigfile 2>&1)" err="$?" diff --git a/tests/generic/174 b/tests/generic/174 index edfc2bcce..8077d762b 100755 --- a/tests/generic/174 +++ b/tests/generic/174 @@ -88,7 +88,7 @@ echo ${out} >> $seqres.full 2>&1 echo ${out} echo "Remount and try CoW again" -_scratch_remount +_scratch_cycle_mount out="$(_pwrite_byte 0x62 0 $((blksz * nr_blks)) $testdir/bigfile -d 2>&1)" echo ${out} | grep -q "No space left on device" || echo "CoW should have failed with ENOSPC" diff --git a/tests/generic/175 b/tests/generic/175 index 56e991969..964580c2a 100755 --- a/tests/generic/175 +++ b/tests/generic/175 @@ -67,7 +67,7 @@ for i in $(seq 0 $fnr); do n=$(( (2 ** i) * blksz)) _reflink_range "$testdir/file1" 0 "$testdir/file1" $n $n >> "$seqres.full" done -_scratch_remount +_scratch_cycle_mount echo "Reflink the big file" blks=$((2 ** (fnr + 1) )) diff --git a/tests/generic/176 b/tests/generic/176 index a77a16d2a..f7d64957a 100755 --- a/tests/generic/176 +++ b/tests/generic/176 @@ -79,7 +79,7 @@ echo "creating $blocks_needed blocks..." >> "$seqres.full" echo "punching..." >> "$seqres.full" "$here/src/punch-alternating" "$testdir/file1" >> "$seqres.full" echo "...done" >> "$seqres.full" -_scratch_remount +_scratch_cycle_mount echo "Reflink the big file" bytes=$((blocks_needed * blksz)) diff --git a/tests/generic/183 b/tests/generic/183 index 0ab4afe4b..24adf9793 100755 --- a/tests/generic/183 +++ b/tests/generic/183 @@ -74,7 +74,7 @@ seq 1 2 $((nr-1)) | while read f; do _reflink_range $testdir/file2 $((blksz * f)) $testdir/file3 $((blksz * f)) $blksz >> $seqres.full _pwrite_byte 0x62 $((blksz * f)) $blksz $testdir/file3.chk >> $seqres.full done -_scratch_remount +_scratch_cycle_mount echo "Compare files" md5sum $testdir/file1 | _filter_scratch @@ -87,7 +87,7 @@ cowoff=$((filesize / 4)) cowsz=$((filesize / 2)) $XFS_IO_PROG -d -f -c "pwrite -S 0x63 -b $cowsz $cowoff $cowsz" $testdir/file3 >> $seqres.full _pwrite_byte 0x63 $cowoff $cowsz $testdir/file3.chk >> $seqres.full -_scratch_remount +_scratch_cycle_mount echo "Compare files" md5sum $testdir/file1 | _filter_scratch diff --git a/tests/generic/185 b/tests/generic/185 index 28826d02c..49feaf3d0 100755 --- a/tests/generic/185 +++ b/tests/generic/185 @@ -73,7 +73,7 @@ seq 1 2 $((nr-1)) | while read f; do _reflink_range $testdir/file2 $((blksz * f)) $testdir/file3 $((blksz * f)) $blksz >> $seqres.full _pwrite_byte 0x62 $((blksz * f)) $blksz $testdir/file3.chk >> $seqres.full done -_scratch_remount +_scratch_cycle_mount echo "Compare files" md5sum $testdir/file1 | _filter_scratch @@ -86,7 +86,7 @@ cowoff=$((filesize / 4)) cowsz=$((filesize / 2)) _pwrite_byte 0x63 $cowoff $cowsz $testdir/file3 >> $seqres.full _pwrite_byte 0x63 $cowoff $cowsz $testdir/file3.chk >> $seqres.full -_scratch_remount +_scratch_cycle_mount echo "Compare files" md5sum $testdir/file1 | _filter_scratch diff --git a/tests/generic/186 b/tests/generic/186 index 9839a220c..70a02809c 100755 --- a/tests/generic/186 +++ b/tests/generic/186 @@ -116,10 +116,10 @@ seq 1 2 $((nr-1)) | while read f; do _reflink_range $testdir/file2 $((blksz * f)) $testdir/file3 $((blksz * f)) $blksz >> $seqres.full _pwrite_byte 0x62 $((blksz * f)) $blksz $testdir/file3.chk >> $seqres.full done -_scratch_remount +_scratch_cycle_mount _fragment_freesp $testdir/bigfile >> $seqres.full 2>&1 filesize=$((blksz * nr)) -_scratch_remount +_scratch_cycle_mount echo "Compare files" md5sum $testdir/file1 | _filter_scratch @@ -132,7 +132,7 @@ cowoff=$((filesize / 4)) cowsz=$((filesize / 2)) $XFS_IO_PROG -f -c "pwrite -S 0x63 -b $cowsz $cowoff $cowsz" $testdir/file3 >> $seqres.full _pwrite_byte 0x63 $cowoff $cowsz $testdir/file3.chk >> $seqres.full -_scratch_remount +_scratch_cycle_mount echo "Compare files" md5sum $testdir/file1 | _filter_scratch diff --git a/tests/generic/187 b/tests/generic/187 index ac6037dfb..25cbcd9bf 100755 --- a/tests/generic/187 +++ b/tests/generic/187 @@ -117,10 +117,10 @@ seq 1 2 $((nr-1)) | while read f; do _reflink_range $testdir/file2 $((blksz * f)) $testdir/file3 $((blksz * f)) $blksz >> $seqres.full _pwrite_byte 0x62 $((blksz * f)) $blksz $testdir/file3.chk >> $seqres.full done -_scratch_remount +_scratch_cycle_mount _fragment_freesp $testdir/bigfile >> $seqres.full 2>&1 filesize=$((blksz * nr)) -_scratch_remount +_scratch_cycle_mount echo "Compare files" md5sum $testdir/file1 | _filter_scratch @@ -133,7 +133,7 @@ cowoff=$((filesize / 4)) cowsz=$((filesize / 2)) $XFS_IO_PROG -d -f -c "pwrite -S 0x63 -b $cowsz $cowoff $cowsz" $testdir/file3 >> $seqres.full _pwrite_byte 0x63 $cowoff $cowsz $testdir/file3.chk >> $seqres.full -_scratch_remount +_scratch_cycle_mount echo "Compare files" md5sum $testdir/file1 | _filter_scratch diff --git a/tests/generic/188 b/tests/generic/188 index bb293b16e..19d3f5606 100755 --- a/tests/generic/188 +++ b/tests/generic/188 @@ -65,7 +65,7 @@ blksz=65536 nr=64 filesize=$((blksz * nr)) _weave_reflink_unwritten $blksz $nr $testdir/file1 $testdir/file3 >> $seqres.full -_scratch_remount +_scratch_cycle_mount echo "Compare files" md5sum $testdir/file1 | _filter_scratch @@ -77,7 +77,7 @@ cowoff=$((filesize / 4)) cowsz=$((filesize / 2)) $XFS_IO_PROG -d -f -c "pwrite -S 0x63 -b $cowsz $cowoff $cowsz" $testdir/file3 >> $seqres.full _pwrite_byte 0x63 $cowoff $cowsz $testdir/file3.chk >> $seqres.full -_scratch_remount +_scratch_cycle_mount echo "Compare files" md5sum $testdir/file1 | _filter_scratch diff --git a/tests/generic/189 b/tests/generic/189 index 5b409bede..14cfef99b 100755 --- a/tests/generic/189 +++ b/tests/generic/189 @@ -64,7 +64,7 @@ blksz=65536 nr=64 filesize=$((blksz * nr)) _weave_reflink_unwritten $blksz $nr $testdir/file1 $testdir/file3 >> $seqres.full -_scratch_remount +_scratch_cycle_mount echo "Compare files" md5sum $testdir/file1 | _filter_scratch @@ -76,7 +76,7 @@ cowoff=$((filesize / 4)) cowsz=$((filesize / 2)) $XFS_IO_PROG -f -c "pwrite -S 0x63 -b $cowsz $cowoff $cowsz" $testdir/file3 >> $seqres.full _pwrite_byte 0x63 $cowoff $cowsz $testdir/file3.chk >> $seqres.full -_scratch_remount +_scratch_cycle_mount echo "Compare files" md5sum $testdir/file1 | _filter_scratch diff --git a/tests/generic/190 b/tests/generic/190 index b4de3ed04..3009bfe2d 100755 --- a/tests/generic/190 +++ b/tests/generic/190 @@ -65,7 +65,7 @@ blksz=65536 nr=64 filesize=$((blksz * nr)) _weave_reflink_holes $blksz $nr $testdir/file1 $testdir/file3 >> $seqres.full -_scratch_remount +_scratch_cycle_mount echo "Compare files" md5sum $testdir/file1 | _filter_scratch @@ -77,7 +77,7 @@ cowoff=$((filesize / 4)) cowsz=$((filesize / 2)) $XFS_IO_PROG -d -f -c "pwrite -S 0x63 -b $cowsz $cowoff $cowsz" $testdir/file3 >> $seqres.full _pwrite_byte 0x63 $cowoff $cowsz $testdir/file3.chk >> $seqres.full -_scratch_remount +_scratch_cycle_mount echo "Compare files" md5sum $testdir/file1 | _filter_scratch diff --git a/tests/generic/191 b/tests/generic/191 index cfedcde33..36af28426 100755 --- a/tests/generic/191 +++ b/tests/generic/191 @@ -64,7 +64,7 @@ blksz=65536 nr=64 filesize=$((blksz * nr)) _weave_reflink_holes $blksz $nr $testdir/file1 $testdir/file3 >> $seqres.full -_scratch_remount +_scratch_cycle_mount echo "Compare files" md5sum $testdir/file1 | _filter_scratch @@ -76,7 +76,7 @@ cowoff=$((filesize / 4)) cowsz=$((filesize / 2)) $XFS_IO_PROG -f -c "pwrite -S 0x63 -b $cowsz $cowoff $cowsz" $testdir/file3 >> $seqres.full _pwrite_byte 0x63 $cowoff $cowsz $testdir/file3.chk >> $seqres.full -_scratch_remount +_scratch_cycle_mount echo "Compare files" md5sum $testdir/file1 | _filter_scratch diff --git a/tests/generic/194 b/tests/generic/194 index f67e56759..9edbe2ccb 100755 --- a/tests/generic/194 +++ b/tests/generic/194 @@ -66,7 +66,7 @@ blksz=65536 nr=64 filesize=$((blksz * nr)) _weave_reflink_holes $blksz $nr $testdir/file1 $testdir/file3 >> $seqres.full -_scratch_remount +_scratch_cycle_mount echo "Compare files" md5sum $testdir/file1 | _filter_scratch @@ -79,7 +79,7 @@ cowsz=$((filesize / 2)) _weave_reflink_holes_delalloc $blksz $nr $testdir/file3 >> $seqres.full $XFS_IO_PROG -d -f -c "pwrite -S 0x63 -b $cowsz $cowoff $cowsz" $testdir/file3 >> $seqres.full _pwrite_byte 0x63 $cowoff $cowsz $testdir/file3.chk >> $seqres.full -_scratch_remount +_scratch_cycle_mount echo "Compare files" md5sum $testdir/file1 | _filter_scratch diff --git a/tests/generic/195 b/tests/generic/195 index 51f10f3c8..98954d549 100755 --- a/tests/generic/195 +++ b/tests/generic/195 @@ -65,7 +65,7 @@ blksz=65536 nr=64 filesize=$((blksz * nr)) _weave_reflink_holes $blksz $nr $testdir/file1 $testdir/file3 >> $seqres.full -_scratch_remount +_scratch_cycle_mount echo "Compare files" md5sum $testdir/file1 | _filter_scratch @@ -78,7 +78,7 @@ cowsz=$((filesize / 2)) _weave_reflink_holes_delalloc $blksz $nr $testdir/file3 >> $seqres.full $XFS_IO_PROG -f -c "pwrite -S 0x63 -b $cowsz $cowoff $cowsz" $testdir/file3 >> $seqres.full _pwrite_byte 0x63 $cowoff $cowsz $testdir/file3.chk >> $seqres.full -_scratch_remount +_scratch_cycle_mount echo "Compare files" md5sum $testdir/file1 | _filter_scratch diff --git a/tests/generic/196 b/tests/generic/196 index 3fcf52283..69e7c0481 100755 --- a/tests/generic/196 +++ b/tests/generic/196 @@ -65,7 +65,7 @@ blksz=65536 nr=64 filesize=$((blksz * nr)) _weave_reflink_regular $blksz $nr $testdir/file1 $testdir/file3 >> $seqres.full -_scratch_remount +_scratch_cycle_mount echo "Compare files" md5sum $testdir/file1 | _filter_scratch @@ -77,7 +77,7 @@ cowoff=$((filesize / 4)) cowsz=$((filesize / 2)) $XFS_IO_PROG -d -f -c "pwrite -S 0x63 -b $cowsz $cowoff $cowsz" $testdir/file3 >> $seqres.full _pwrite_byte 0x63 $cowoff $cowsz $testdir/file3.chk >> $seqres.full -_scratch_remount +_scratch_cycle_mount echo "Compare files" md5sum $testdir/file1 | _filter_scratch diff --git a/tests/generic/197 b/tests/generic/197 index b40ea9315..0fc0c5e66 100755 --- a/tests/generic/197 +++ b/tests/generic/197 @@ -64,7 +64,7 @@ blksz=65536 nr=64 filesize=$((blksz * nr)) _weave_reflink_regular $blksz $nr $testdir/file1 $testdir/file3 >> $seqres.full -_scratch_remount +_scratch_cycle_mount echo "Compare files" md5sum $testdir/file1 | _filter_scratch @@ -76,7 +76,7 @@ cowoff=$((filesize / 4)) cowsz=$((filesize / 2)) $XFS_IO_PROG -f -c "pwrite -S 0x63 -b $cowsz $cowoff $cowsz" $testdir/file3 >> $seqres.full _pwrite_byte 0x63 $cowoff $cowsz $testdir/file3.chk >> $seqres.full -_scratch_remount +_scratch_cycle_mount echo "Compare files" md5sum $testdir/file1 | _filter_scratch diff --git a/tests/generic/199 b/tests/generic/199 index 04380edc0..0ac476281 100755 --- a/tests/generic/199 +++ b/tests/generic/199 @@ -71,7 +71,7 @@ blksz=65536 nr=64 filesize=$((blksz * nr)) _weave_reflink_rainbow $blksz $nr $testdir/file1 $testdir/file3 >> $seqres.full -_scratch_remount +_scratch_cycle_mount echo "Compare files" md5sum $testdir/file1 | _filter_scratch @@ -85,7 +85,7 @@ _weave_reflink_rainbow_delalloc $blksz $nr $testdir/file3 >> $seqres.full # now cow $XFS_IO_PROG -d -f -c "pwrite -S 0x63 -b $cowsz $cowoff $cowsz" $testdir/file3 >> $seqres.full _pwrite_byte 0x63 $cowoff $cowsz $testdir/file3.chk >> $seqres.full -_scratch_remount +_scratch_cycle_mount echo "Compare files" md5sum $testdir/file1 | _filter_scratch diff --git a/tests/generic/200 b/tests/generic/200 index 2aa0315ff..5d7da84c5 100755 --- a/tests/generic/200 +++ b/tests/generic/200 @@ -71,7 +71,7 @@ blksz=65536 nr=64 filesize=$((blksz * nr)) _weave_reflink_rainbow $blksz $nr $testdir/file1 $testdir/file3 >> $seqres.full -_scratch_remount +_scratch_cycle_mount echo "Compare files" md5sum $testdir/file1 | _filter_scratch @@ -85,7 +85,7 @@ _weave_reflink_rainbow_delalloc $blksz $nr $testdir/file3 >> $seqres.full # now cow $XFS_IO_PROG -f -c "pwrite -S 0x63 -b $cowsz $cowoff $cowsz" $testdir/file3 >> $seqres.full _pwrite_byte 0x63 $cowoff $cowsz $testdir/file3.chk >> $seqres.full -_scratch_remount +_scratch_cycle_mount echo "Compare files" md5sum $testdir/file1 | _filter_scratch diff --git a/tests/generic/201 b/tests/generic/201 index 634dec918..547f1943a 100755 --- a/tests/generic/201 +++ b/tests/generic/201 @@ -66,7 +66,7 @@ seq 0 2 $((nr-1)) | while read f; do _reflink_range $testdir/file1 $((blksz * f)) $testdir/file3 $((blksz * f)) $blksz >> $seqres.full _pwrite_byte 0x61 $((blksz * f)) $blksz $testdir/file3.chk >> $seqres.full done -_scratch_remount +_scratch_cycle_mount echo "Compare files" md5sum $testdir/file1 | _filter_scratch diff --git a/tests/generic/202 b/tests/generic/202 index a7f40049f..14c94af49 100755 --- a/tests/generic/202 +++ b/tests/generic/202 @@ -59,7 +59,7 @@ blksz=65536 _pwrite_byte 0x61 0 $((blksz + 17)) $testdir/file1 >> $seqres.full _cp_reflink $testdir/file1 $testdir/file2 _pwrite_byte 0x61 0 $((blksz + 17)) $testdir/file2.chk >> $seqres.full -_scratch_remount +_scratch_cycle_mount echo "Compare files" md5sum $testdir/file1 | _filter_scratch @@ -69,7 +69,7 @@ md5sum $testdir/file2.chk | _filter_scratch echo "CoW and unmount" $XFS_IO_PROG -f -c "pwrite -S 0x63 $((blksz + 17)) 17" $testdir/file2 >> $seqres.full $XFS_IO_PROG -f -c "pwrite -S 0x63 $((blksz + 17)) 17" $testdir/file2.chk >> $seqres.full -_scratch_remount +_scratch_cycle_mount echo "Compare files" md5sum $testdir/file1 | _filter_scratch diff --git a/tests/generic/203 b/tests/generic/203 index 2ffb31116..a7d0bcc10 100755 --- a/tests/generic/203 +++ b/tests/generic/203 @@ -60,7 +60,7 @@ blksz=65536 _pwrite_byte 0x61 0 $((blksz + 17)) $testdir/file1 >> $seqres.full _cp_reflink $testdir/file1 $testdir/file2 _pwrite_byte 0x61 0 $((blksz + 17)) $testdir/file2.chk >> $seqres.full -_scratch_remount +_scratch_cycle_mount echo "Compare files" md5sum $testdir/file1 | _filter_scratch @@ -70,7 +70,7 @@ md5sum $testdir/file2.chk | _filter_scratch echo "CoW and unmount" $XFS_IO_PROG -d -f -c "pwrite -S 0x63 $blksz $blksz" $testdir/file2 >> $seqres.full $XFS_IO_PROG -f -c "pwrite -S 0x63 $blksz $blksz" $testdir/file2.chk >> $seqres.full -_scratch_remount +_scratch_cycle_mount echo "Compare files" md5sum $testdir/file1 | _filter_scratch diff --git a/tests/generic/205 b/tests/generic/205 index 683849e89..65c35638d 100755 --- a/tests/generic/205 +++ b/tests/generic/205 @@ -77,7 +77,7 @@ _pwrite_byte 0x61 $((blksz * 3)) $blksz $testdir/file2.chk >> $seqres.full _reflink_range $testdir/file1 $blksz $testdir/file2 $((blksz * 2)) $blksz >> $seqres.full _pwrite_byte 0x61 $((blksz * 2)) $blksz $testdir/file2.chk >> $seqres.full -_scratch_remount +_scratch_cycle_mount echo "Compare files" ! cmp -s $testdir/file1 $testdir/file2 || _fail "file1 and file2 don't match." @@ -86,7 +86,7 @@ cmp -s $testdir/file2 $testdir/file2.chk || _fail "file2 and file2.chk don't mat echo "CoW and unmount" $XFS_IO_PROG -f -c "pwrite -S 0x63 $((blksz + 17)) $((blksz * 3 - 34))" $testdir/file2 >> $seqres.full $XFS_IO_PROG -f -c "pwrite -S 0x63 $((blksz + 17)) $((blksz * 3 - 34))" $testdir/file2.chk >> $seqres.full -_scratch_remount +_scratch_cycle_mount echo "Compare files" ! cmp -s $testdir/file1 $testdir/file2 || _fail "file1 and file2 don't match." diff --git a/tests/generic/206 b/tests/generic/206 index 6b3e200a7..0d8006fa5 100755 --- a/tests/generic/206 +++ b/tests/generic/206 @@ -78,7 +78,7 @@ _pwrite_byte 0x61 $((blksz * 3)) $blksz $testdir/file2.chk >> $seqres.full _reflink_range $testdir/file1 $blksz $testdir/file2 $((blksz * 2)) $blksz >> $seqres.full _pwrite_byte 0x61 $((blksz * 2)) $blksz $testdir/file2.chk >> $seqres.full -_scratch_remount +_scratch_cycle_mount echo "Compare files" ! cmp -s $testdir/file1 $testdir/file2 || _fail "file1 and file2 don't match." @@ -87,7 +87,7 @@ cmp -s $testdir/file2 $testdir/file2.chk || _fail "file2 and file2.chk don't mat echo "CoW and unmount" $XFS_IO_PROG -d -f -c "pwrite -S 0x63 $blksz $((blksz * 3))" $testdir/file2 >> $seqres.full $XFS_IO_PROG -f -c "pwrite -S 0x63 $blksz $((blksz * 3))" $testdir/file2.chk >> $seqres.full -_scratch_remount +_scratch_cycle_mount echo "Compare files" ! cmp -s $testdir/file1 $testdir/file2 || _fail "file1 and file2 don't match." diff --git a/tests/generic/216 b/tests/generic/216 index d9f7e2130..29fa6a001 100755 --- a/tests/generic/216 +++ b/tests/generic/216 @@ -78,7 +78,7 @@ _pwrite_byte 0x00 $((blksz * 3)) $blksz $testdir/file2.chk >> $seqres.full _reflink_range $testdir/file1 $blksz $testdir/file2 $((blksz * 2)) $blksz >> $seqres.full _pwrite_byte 0x61 $((blksz * 2)) $blksz $testdir/file2.chk >> $seqres.full -_scratch_remount +_scratch_cycle_mount echo "Compare files" ! cmp -s $testdir/file1 $testdir/file2 || _fail "file1 and file2 don't match." @@ -87,7 +87,7 @@ cmp -s $testdir/file2 $testdir/file2.chk || _fail "file2 and file2.chk don't mat echo "CoW and unmount" $XFS_IO_PROG -f -c "pwrite -S 0x63 $((blksz + 17)) $((blksz * 3 - 34))" $testdir/file2 >> $seqres.full $XFS_IO_PROG -f -c "pwrite -S 0x63 $((blksz + 17)) $((blksz * 3 - 34))" $testdir/file2.chk >> $seqres.full -_scratch_remount +_scratch_cycle_mount echo "Compare files" ! cmp -s $testdir/file1 $testdir/file2 || _fail "file1 and file2 don't match." diff --git a/tests/generic/217 b/tests/generic/217 index ce8e0a169..3843a8bd2 100755 --- a/tests/generic/217 +++ b/tests/generic/217 @@ -79,7 +79,7 @@ _pwrite_byte 0x00 $((blksz * 3)) $blksz $testdir/file2.chk >> $seqres.full _reflink_range $testdir/file1 $blksz $testdir/file2 $((blksz * 2)) $blksz >> $seqres.full _pwrite_byte 0x61 $((blksz * 2)) $blksz $testdir/file2.chk >> $seqres.full -_scratch_remount +_scratch_cycle_mount echo "Compare files" ! cmp -s $testdir/file1 $testdir/file2 || _fail "file1 and file2 don't match." @@ -88,7 +88,7 @@ cmp -s $testdir/file2 $testdir/file2.chk || _fail "file2 and file2.chk don't mat echo "CoW and unmount" $XFS_IO_PROG -d -f -c "pwrite -S 0x63 $blksz $((blksz * 3))" $testdir/file2 >> $seqres.full $XFS_IO_PROG -f -c "pwrite -S 0x63 $blksz $((blksz * 3))" $testdir/file2.chk >> $seqres.full -_scratch_remount +_scratch_cycle_mount echo "Compare files" ! cmp -s $testdir/file1 $testdir/file2 || _fail "file1 and file2 don't match." diff --git a/tests/generic/218 b/tests/generic/218 index ecc009a64..6e7f465f6 100755 --- a/tests/generic/218 +++ b/tests/generic/218 @@ -72,7 +72,7 @@ $XFS_IO_PROG -f -c "truncate $pagesz" $testdir/file2.chk >> $seqres.full _reflink_range $testdir/file1 $blksz $testdir/file2 $((blksz * 2)) $blksz >> $seqres.full _pwrite_byte 0x61 $((blksz * 2)) $blksz $testdir/file2.chk >> $seqres.full -_scratch_remount +_scratch_cycle_mount echo "Compare files" ! cmp -s $testdir/file1 $testdir/file2 || _fail "file1 and file2 don't match." @@ -81,7 +81,7 @@ cmp -s $testdir/file2 $testdir/file2.chk || _fail "file2 and file2.chk don't mat echo "CoW and unmount" $XFS_IO_PROG -f -c "pwrite -S 0x63 $((blksz + 17)) $((blksz * 3 - 34))" $testdir/file2 >> $seqres.full $XFS_IO_PROG -f -c "pwrite -S 0x63 $((blksz + 17)) $((blksz * 3 - 34))" $testdir/file2.chk >> $seqres.full -_scratch_remount +_scratch_cycle_mount echo "Compare files" ! cmp -s $testdir/file1 $testdir/file2 || _fail "file1 and file2 don't match." diff --git a/tests/generic/220 b/tests/generic/220 index 3bce21bd7..d3ee88841 100755 --- a/tests/generic/220 +++ b/tests/generic/220 @@ -73,7 +73,7 @@ $XFS_IO_PROG -f -c "truncate $pagesz" $testdir/file2.chk >> $seqres.full _reflink_range $testdir/file1 $blksz $testdir/file2 $((blksz * 2)) $blksz >> $seqres.full _pwrite_byte 0x61 $((blksz * 2)) $blksz $testdir/file2.chk >> $seqres.full -_scratch_remount +_scratch_cycle_mount echo "Compare files" ! cmp -s $testdir/file1 $testdir/file2 || _fail "file1 and file2 don't match." @@ -82,7 +82,7 @@ cmp -s $testdir/file2 $testdir/file2.chk || _fail "file2 and file2.chk don't mat echo "CoW and unmount" $XFS_IO_PROG -d -f -c "pwrite -S 0x63 $blksz $((blksz * 3))" $testdir/file2 >> $seqres.full $XFS_IO_PROG -f -c "pwrite -S 0x63 $blksz $((blksz * 3))" $testdir/file2.chk >> $seqres.full -_scratch_remount +_scratch_cycle_mount echo "Compare files" ! cmp -s $testdir/file1 $testdir/file2 || _fail "file1 and file2 don't match." diff --git a/tests/generic/222 b/tests/generic/222 index 58ca8f541..7de8ad66a 100755 --- a/tests/generic/222 +++ b/tests/generic/222 @@ -72,7 +72,7 @@ $XFS_IO_PROG -f -c "truncate $pagesz" $testdir/file2.chk >> $seqres.full _reflink_range $testdir/file1 $blksz $testdir/file2 $((blksz * 2)) $blksz >> $seqres.full _pwrite_byte 0x61 $((blksz * 2)) $blksz $testdir/file2.chk >> $seqres.full -_scratch_remount +_scratch_cycle_mount echo "Compare files" ! cmp -s $testdir/file1 $testdir/file2 || _fail "file1 and file2 don't match." @@ -87,7 +87,7 @@ _pwrite_byte 0x61 $((blksz * 3)) $blksz $testdir/file2.chk >> $seqres.full $XFS_IO_PROG -f -c "pwrite -S 0x63 $((blksz + 17)) $((blksz * 3 - 34))" $testdir/file2 >> $seqres.full $XFS_IO_PROG -f -c "pwrite -S 0x63 $((blksz + 17)) $((blksz * 3 - 34))" $testdir/file2.chk >> $seqres.full -_scratch_remount +_scratch_cycle_mount echo "Compare files" ! cmp -s $testdir/file1 $testdir/file2 || _fail "file1 and file2 don't match." diff --git a/tests/generic/227 b/tests/generic/227 index 00985d31a..daac55093 100755 --- a/tests/generic/227 +++ b/tests/generic/227 @@ -73,7 +73,7 @@ $XFS_IO_PROG -f -c "truncate $pagesz" $testdir/file2.chk >> $seqres.full _reflink_range $testdir/file1 $blksz $testdir/file2 $((blksz * 2)) $blksz >> $seqres.full _pwrite_byte 0x61 $((blksz * 2)) $blksz $testdir/file2.chk >> $seqres.full -_scratch_remount +_scratch_cycle_mount echo "Compare files" ! cmp -s $testdir/file1 $testdir/file2 || _fail "file1 and file2 don't match." @@ -88,7 +88,7 @@ _pwrite_byte 0x61 $((blksz * 3)) $blksz $testdir/file2.chk >> $seqres.full $XFS_IO_PROG -d -f -c "pwrite -S 0x63 $blksz $((blksz * 3))" $testdir/file2 >> $seqres.full $XFS_IO_PROG -f -c "pwrite -S 0x63 $blksz $((blksz * 3))" $testdir/file2.chk >> $seqres.full -_scratch_remount +_scratch_cycle_mount echo "Compare files" ! cmp -s $testdir/file1 $testdir/file2 || _fail "file1 and file2 don't match." diff --git a/tests/generic/229 b/tests/generic/229 index b6359e8ef..a307408b6 100755 --- a/tests/generic/229 +++ b/tests/generic/229 @@ -107,7 +107,7 @@ runtest() { _reflink_range $dir/file1 $blksz $dir/file2 $((blksz * 2)) $blksz >> $seqres.full _pwrite_byte 0x61 $((blksz * 2)) $blksz $dir/file2.chk >> $seqres.full - _scratch_remount + _scratch_cycle_mount echo "Compare files" ! cmp -s $dir/file1 $dir/file2 || _fail "file1 and file2 don't match." @@ -126,7 +126,7 @@ runtest() { $XFS_IO_PROG -f -c "pwrite -S 0x63 $((blksz + 17)) $((blksz * 3 - 34))" $dir/file2 >> $seqres.full $XFS_IO_PROG -f -c "pwrite -S 0x63 $((blksz + 17)) $((blksz * 3 - 34))" $dir/file2.chk >> $seqres.full - _scratch_remount + _scratch_cycle_mount echo "Compare files" ! cmp -s $dir/file1 $dir/file2 || _fail "file1 and file2 don't match." diff --git a/tests/generic/238 b/tests/generic/238 index 3b46492a1..38e3aaced 100755 --- a/tests/generic/238 +++ b/tests/generic/238 @@ -108,7 +108,7 @@ runtest() { _reflink_range $dir/file1 $blksz $dir/file2 $((blksz * 2)) $blksz >> $seqres.full _pwrite_byte 0x61 $((blksz * 2)) $blksz $dir/file2.chk >> $seqres.full - _scratch_remount + _scratch_cycle_mount echo "Compare files" ! cmp -s $dir/file1 $dir/file2 || _fail "file1 and file2 don't match." @@ -127,7 +127,7 @@ runtest() { $XFS_IO_PROG -d -f -c "pwrite -S 0x63 $blksz $((blksz * 3))" $dir/file2 >> $seqres.full $XFS_IO_PROG -f -c "pwrite -S 0x63 $blksz $((blksz * 3))" $dir/file2.chk >> $seqres.full - _scratch_remount + _scratch_cycle_mount echo "Compare files" ! cmp -s $dir/file1 $dir/file2 || _fail "file1 and file2 don't match." diff --git a/tests/generic/242 b/tests/generic/242 index 1f174df21..93fdc1dba 100755 --- a/tests/generic/242 +++ b/tests/generic/242 @@ -74,7 +74,7 @@ echo "Create the original files" $XFS_IO_PROG -f -c "pwrite -S 0x61 -b $bufsize 0 $filesize" $testdir/file1 >> $seqres.full _cp_reflink $testdir/file1 $testdir/file2 >> $seqres.full $XFS_IO_PROG -f -c "pwrite -S 0x61 -b $bufsize 0 $filesize" $testdir/file2.chk >> $seqres.full -_scratch_remount +_scratch_cycle_mount echo "Compare files" md5sum $testdir/file1 | _filter_scratch @@ -84,7 +84,7 @@ md5sum $testdir/file2.chk | _filter_scratch echo "CoW and unmount" $XFS_IO_PROG -f -c "pwrite -S 0x63 -b $bufsize 0 $filesize" $testdir/file2 >> $seqres.full $XFS_IO_PROG -f -c "pwrite -S 0x63 -b $bufsize 0 $filesize" $testdir/file2.chk >> $seqres.full -_scratch_remount +_scratch_cycle_mount echo "Compare files" md5sum $testdir/file1 | _filter_scratch diff --git a/tests/generic/243 b/tests/generic/243 index e1d698bd8..ae9caa2de 100755 --- a/tests/generic/243 +++ b/tests/generic/243 @@ -75,7 +75,7 @@ echo "Create the original files" $XFS_IO_PROG -f -c "pwrite -S 0x61 -b $bufsize 0 $filesize" $testdir/file1 >> $seqres.full _cp_reflink $testdir/file1 $testdir/file2 >> $seqres.full $XFS_IO_PROG -f -c "pwrite -S 0x61 -b $bufsize 0 $filesize" $testdir/file2.chk >> $seqres.full -_scratch_remount +_scratch_cycle_mount echo "Compare files" md5sum $testdir/file1 | _filter_scratch @@ -85,7 +85,7 @@ md5sum $testdir/file2.chk | _filter_scratch echo "CoW and unmount" $XFS_IO_PROG -d -f -c "pwrite -S 0x63 -b $bufsize 0 $filesize" $testdir/file2 >> $seqres.full $XFS_IO_PROG -f -c "pwrite -S 0x63 -b $bufsize 0 $filesize" $testdir/file2.chk >> $seqres.full -_scratch_remount +_scratch_cycle_mount echo "Compare files" md5sum $testdir/file1 | _filter_scratch diff --git a/tests/generic/253 b/tests/generic/253 index bfb91a395..4935f44e9 100755 --- a/tests/generic/253 +++ b/tests/generic/253 @@ -67,7 +67,7 @@ echo "Create the original files" _pwrite_byte 0x61 0 $filesize $testdir/file1 >> $seqres.full _cp_reflink $testdir/file1 $testdir/file2 >> $seqres.full _pwrite_byte 0x61 0 $filesize $testdir/file2.chk >> $seqres.full -_scratch_remount +_scratch_cycle_mount echo "Compare files" md5sum $testdir/file1 | _filter_scratch @@ -76,9 +76,9 @@ md5sum $testdir/file2.chk | _filter_scratch echo "CoW and unmount" $XFS_IO_PROG -f -c "pwrite -S 0x62 -b $((blksz * 2)) $blksz $((blksz * 2))" -c "truncate $((blksz * 2))" $testdir/file2 >> $seqres.full -_scratch_remount +_scratch_cycle_mount $XFS_IO_PROG -f -c "pwrite -S 0x62 -b $((blksz * 2)) $blksz $((blksz * 2))" -c "truncate $((blksz * 2))" $testdir/file2.chk >> $seqres.full -_scratch_remount +_scratch_cycle_mount echo "Compare files" md5sum $testdir/file1 | _filter_scratch diff --git a/tests/generic/254 b/tests/generic/254 index f16cdd3b4..cd015ece6 100755 --- a/tests/generic/254 +++ b/tests/generic/254 @@ -67,7 +67,7 @@ echo "Create the original files" _pwrite_byte 0x61 0 $filesize $testdir/file1 >> $seqres.full _cp_reflink $testdir/file1 $testdir/file2 >> $seqres.full _pwrite_byte 0x61 0 $filesize $testdir/file2.chk >> $seqres.full -_scratch_remount +_scratch_cycle_mount echo "Compare files" md5sum $testdir/file1 | _filter_scratch @@ -76,9 +76,9 @@ md5sum $testdir/file2.chk | _filter_scratch echo "CoW and unmount" $XFS_IO_PROG -f -c "pwrite -S 0x62 -b $((blksz * 3)) $blksz $((blksz * 3))" -c "fpunch $((blksz * 2)) $blksz" $testdir/file2 >> $seqres.full -_scratch_remount +_scratch_cycle_mount $XFS_IO_PROG -f -c "pwrite -S 0x62 -b $((blksz * 3)) $blksz $((blksz * 3))" -c "pwrite -S 0x00 $((blksz * 2)) $blksz" $testdir/file2.chk >> $seqres.full -_scratch_remount +_scratch_cycle_mount echo "Compare files" md5sum $testdir/file1 | _filter_scratch diff --git a/tests/generic/259 b/tests/generic/259 index 6718c50ee..3765bfd5a 100755 --- a/tests/generic/259 +++ b/tests/generic/259 @@ -67,7 +67,7 @@ echo "Create the original files" _pwrite_byte 0x61 0 $filesize $testdir/file1 >> $seqres.full _cp_reflink $testdir/file1 $testdir/file2 >> $seqres.full _pwrite_byte 0x61 0 $filesize $testdir/file2.chk >> $seqres.full -_scratch_remount +_scratch_cycle_mount echo "Compare files" md5sum $testdir/file1 | _filter_scratch @@ -76,9 +76,9 @@ md5sum $testdir/file2.chk | _filter_scratch echo "CoW and unmount" $XFS_IO_PROG -f -c "pwrite -S 0x62 -b $((blksz * 3)) $blksz $((blksz * 3))" -c "fzero $((blksz * 2)) $blksz" $testdir/file2 >> $seqres.full -_scratch_remount +_scratch_cycle_mount $XFS_IO_PROG -f -c "pwrite -S 0x62 -b $((blksz * 3)) $blksz $((blksz * 3))" -c "pwrite -S 0x00 $((blksz * 2)) $blksz" $testdir/file2.chk >> $seqres.full -_scratch_remount +_scratch_cycle_mount echo "Compare files" md5sum $testdir/file1 | _filter_scratch diff --git a/tests/generic/261 b/tests/generic/261 index 28d0e0bc8..84ebc86b4 100755 --- a/tests/generic/261 +++ b/tests/generic/261 @@ -67,7 +67,7 @@ echo "Create the original files" _pwrite_byte 0x61 0 $filesize $testdir/file1 >> $seqres.full _cp_reflink $testdir/file1 $testdir/file2 >> $seqres.full _pwrite_byte 0x61 0 $filesize $testdir/file2.chk >> $seqres.full -_scratch_remount +_scratch_cycle_mount echo "Compare files" md5sum $testdir/file1 | _filter_scratch @@ -76,9 +76,9 @@ md5sum $testdir/file2.chk | _filter_scratch echo "CoW and unmount" $XFS_IO_PROG -f -c "pwrite -S 0x62 -b $((blksz * 3)) $blksz $((blksz * 3))" -c "fcollapse $((blksz * 2)) $blksz" $testdir/file2 >> $seqres.full -_scratch_remount +_scratch_cycle_mount $XFS_IO_PROG -f -c "pwrite -S 0x62 -b $((blksz * 2)) $blksz $((blksz * 2))" -c "truncate $((blksz * (nr - 1)))" $testdir/file2.chk >> $seqres.full -_scratch_remount +_scratch_cycle_mount echo "Compare files" md5sum $testdir/file1 | _filter_scratch diff --git a/tests/generic/262 b/tests/generic/262 index aaf38cf14..366801b2f 100755 --- a/tests/generic/262 +++ b/tests/generic/262 @@ -67,7 +67,7 @@ echo "Create the original files" _pwrite_byte 0x61 0 $filesize $testdir/file1 >> $seqres.full _cp_reflink $testdir/file1 $testdir/file2 >> $seqres.full _pwrite_byte 0x61 0 $filesize $testdir/file2.chk >> $seqres.full -_scratch_remount +_scratch_cycle_mount echo "Compare files" md5sum $testdir/file1 | _filter_scratch @@ -76,12 +76,12 @@ md5sum $testdir/file2.chk | _filter_scratch echo "CoW and unmount" $XFS_IO_PROG -f -c "pwrite -S 0x62 -b $((blksz * 2)) $blksz $((blksz * 2))" -c "finsert $((blksz * 2)) $blksz" $testdir/file2 >> $seqres.full -_scratch_remount +_scratch_cycle_mount _pwrite_byte 0x62 $blksz $blksz $testdir/file2.chk >> $seqres.full _pwrite_byte 0x00 $((blksz * 2)) $blksz $testdir/file2.chk >> $seqres.full _pwrite_byte 0x62 $((blksz * 3)) $blksz $testdir/file2.chk >> $seqres.full _pwrite_byte 0x61 $((blksz * 4)) $blksz $testdir/file2.chk >> $seqres.full -_scratch_remount +_scratch_cycle_mount echo "Compare files" md5sum $testdir/file1 | _filter_scratch diff --git a/tests/generic/264 b/tests/generic/264 index d5bcca6fa..631184cb1 100755 --- a/tests/generic/264 +++ b/tests/generic/264 @@ -67,7 +67,7 @@ echo "Create the original files" _pwrite_byte 0x61 0 $filesize $testdir/file1 >> $seqres.full _cp_reflink $testdir/file1 $testdir/file2 >> $seqres.full _pwrite_byte 0x61 0 $filesize $testdir/file2.chk >> $seqres.full -_scratch_remount +_scratch_cycle_mount echo "Compare files" md5sum $testdir/file1 | _filter_scratch @@ -76,9 +76,9 @@ md5sum $testdir/file2.chk | _filter_scratch echo "CoW and unmount" $XFS_IO_PROG -f -c "pwrite -S 0x62 -b $((blksz * 3)) $blksz $((blksz * 3))" -c "falloc $((blksz * 2)) $blksz" $testdir/file2 >> $seqres.full -_scratch_remount +_scratch_cycle_mount $XFS_IO_PROG -f -c "pwrite -S 0x62 -b $((blksz * 3)) $blksz $((blksz * 3))" $testdir/file2.chk >> $seqres.full -_scratch_remount +_scratch_cycle_mount echo "Compare files" md5sum $testdir/file1 | _filter_scratch diff --git a/tests/generic/277 b/tests/generic/277 index 39ebdc349..f92235bc5 100755 --- a/tests/generic/277 +++ b/tests/generic/277 @@ -50,7 +50,7 @@ _scratch_mkfs > /dev/null 2>&1 _scratch_mount touch $SCRATCH_MNT/tmp -_scratch_remount +_scratch_cycle_mount ctime1=`stat -c %z $SCRATCH_MNT/tmp` sleep 1 @@ -58,7 +58,7 @@ chattr +A $SCRATCH_MNT/tmp chattr -A $SCRATCH_MNT/tmp ctime2=`stat -c %z $SCRATCH_MNT/tmp` -_scratch_remount +_scratch_cycle_mount ctime3=`stat -c %z $SCRATCH_MNT/tmp` if [ "$ctime1" == "$ctime2" ]; then diff --git a/tests/generic/284 b/tests/generic/284 index aae4bb01e..b3e8f3b03 100755 --- a/tests/generic/284 +++ b/tests/generic/284 @@ -65,7 +65,7 @@ blksz=65536 nr=64 filesize=$((blksz * nr)) _sweave_reflink_regular $blksz $nr $testdir/file1 $testdir/file3 >> $seqres.full -_scratch_remount +_scratch_cycle_mount echo "Compare files" md5sum $testdir/file1 | _filter_scratch @@ -77,7 +77,7 @@ cowoff=$((filesize / 4)) cowsz=$((filesize / 2)) $XFS_IO_PROG -f -c "pwrite -S 0x63 -b $cowsz $cowoff $cowsz" $testdir/file1 >> $seqres.full _pwrite_byte 0x63 $cowoff $cowsz $testdir/file1.chk >> $seqres.full -_scratch_remount +_scratch_cycle_mount echo "Compare files" md5sum $testdir/file1 | _filter_scratch diff --git a/tests/generic/287 b/tests/generic/287 index 11e3c9f8e..7d53883d1 100755 --- a/tests/generic/287 +++ b/tests/generic/287 @@ -66,7 +66,7 @@ blksz=65536 nr=64 filesize=$((blksz * nr)) _sweave_reflink_regular $blksz $nr $testdir/file1 $testdir/file3 >> $seqres.full -_scratch_remount +_scratch_cycle_mount echo "Compare files" md5sum $testdir/file1 | _filter_scratch @@ -78,7 +78,7 @@ cowoff=$((filesize / 4)) cowsz=$((filesize / 2)) $XFS_IO_PROG -d -f -c "pwrite -S 0x63 -b $cowsz $cowoff $cowsz" $testdir/file1 >> $seqres.full _pwrite_byte 0x63 $cowoff $cowsz $testdir/file1.chk >> $seqres.full -_scratch_remount +_scratch_cycle_mount echo "Compare files" md5sum $testdir/file1 | _filter_scratch diff --git a/tests/generic/289 b/tests/generic/289 index 31df1b8df..62b28dcf2 100755 --- a/tests/generic/289 +++ b/tests/generic/289 @@ -67,7 +67,7 @@ blksz=65536 nr=64 filesize=$((blksz * nr)) _sweave_reflink_unwritten $blksz $nr $testdir/file1 $testdir/file3 >> $seqres.full -_scratch_remount +_scratch_cycle_mount echo "Compare files" md5sum $testdir/file1 | _filter_scratch @@ -79,7 +79,7 @@ cowoff=$((filesize / 4)) cowsz=$((filesize / 2)) $XFS_IO_PROG -f -c "pwrite -S 0x63 -b $cowsz $cowoff $cowsz" $testdir/file1 >> $seqres.full _pwrite_byte 0x63 $cowoff $cowsz $testdir/file1.chk >> $seqres.full -_scratch_remount +_scratch_cycle_mount echo "Compare files" md5sum $testdir/file1 | _filter_scratch diff --git a/tests/generic/290 b/tests/generic/290 index 4a576c5f5..ff3af20f8 100755 --- a/tests/generic/290 +++ b/tests/generic/290 @@ -68,7 +68,7 @@ blksz=65536 nr=64 filesize=$((blksz * nr)) _sweave_reflink_unwritten $blksz $nr $testdir/file1 $testdir/file3 >> $seqres.full -_scratch_remount +_scratch_cycle_mount echo "Compare files" md5sum $testdir/file1 | _filter_scratch @@ -80,7 +80,7 @@ cowoff=$((filesize / 4)) cowsz=$((filesize / 2)) $XFS_IO_PROG -d -f -c "pwrite -S 0x63 -b $cowsz $cowoff $cowsz" $testdir/file1 >> $seqres.full _pwrite_byte 0x63 $cowoff $cowsz $testdir/file1.chk >> $seqres.full -_scratch_remount +_scratch_cycle_mount echo "Compare files" md5sum $testdir/file1 | _filter_scratch diff --git a/tests/generic/291 b/tests/generic/291 index 0f35ee0c7..188804365 100755 --- a/tests/generic/291 +++ b/tests/generic/291 @@ -67,7 +67,7 @@ blksz=65536 nr=64 filesize=$((blksz * nr)) _sweave_reflink_holes $blksz $nr $testdir/file1 $testdir/file3 >> $seqres.full -_scratch_remount +_scratch_cycle_mount echo "Compare files" md5sum $testdir/file1 | _filter_scratch @@ -79,7 +79,7 @@ cowoff=$((filesize / 4)) cowsz=$((filesize / 2)) $XFS_IO_PROG -f -c "pwrite -S 0x63 -b $cowsz $cowoff $cowsz" $testdir/file1 >> $seqres.full _pwrite_byte 0x63 $cowoff $cowsz $testdir/file1.chk >> $seqres.full -_scratch_remount +_scratch_cycle_mount echo "Compare files" md5sum $testdir/file1 | _filter_scratch diff --git a/tests/generic/292 b/tests/generic/292 index c3d9f1156..e71b5553f 100755 --- a/tests/generic/292 +++ b/tests/generic/292 @@ -68,7 +68,7 @@ blksz=65536 nr=64 filesize=$((blksz * nr)) _sweave_reflink_holes $blksz $nr $testdir/file1 $testdir/file3 >> $seqres.full -_scratch_remount +_scratch_cycle_mount echo "Compare files" md5sum $testdir/file1 | _filter_scratch @@ -80,7 +80,7 @@ cowoff=$((filesize / 4)) cowsz=$((filesize / 2)) $XFS_IO_PROG -d -f -c "pwrite -S 0x63 -b $cowsz $cowoff $cowsz" $testdir/file1 >> $seqres.full _pwrite_byte 0x63 $cowoff $cowsz $testdir/file1.chk >> $seqres.full -_scratch_remount +_scratch_cycle_mount echo "Compare files" md5sum $testdir/file1 | _filter_scratch diff --git a/tests/generic/293 b/tests/generic/293 index f6579d91d..6792f1057 100755 --- a/tests/generic/293 +++ b/tests/generic/293 @@ -68,7 +68,7 @@ blksz=65536 nr=64 filesize=$((blksz * nr)) _sweave_reflink_holes $blksz $nr $testdir/file1 $testdir/file3 >> $seqres.full -_scratch_remount +_scratch_cycle_mount echo "Compare files" md5sum $testdir/file1 | _filter_scratch @@ -81,7 +81,7 @@ cowsz=$((filesize / 2)) _sweave_reflink_holes_delalloc $blksz $nr $testdir/file1 >> $seqres.full $XFS_IO_PROG -f -c "pwrite -S 0x63 -b $cowsz $cowoff $cowsz" $testdir/file1 >> $seqres.full _pwrite_byte 0x63 $cowoff $cowsz $testdir/file1.chk >> $seqres.full -_scratch_remount +_scratch_cycle_mount echo "Compare files" md5sum $testdir/file1 | _filter_scratch diff --git a/tests/generic/295 b/tests/generic/295 index e7cfaa00a..8f7916e24 100755 --- a/tests/generic/295 +++ b/tests/generic/295 @@ -69,7 +69,7 @@ blksz=65536 nr=64 filesize=$((blksz * nr)) _sweave_reflink_holes $blksz $nr $testdir/file1 $testdir/file3 >> $seqres.full -_scratch_remount +_scratch_cycle_mount echo "Compare files" md5sum $testdir/file1 | _filter_scratch @@ -82,7 +82,7 @@ cowsz=$((filesize / 2)) _sweave_reflink_holes_delalloc $blksz $nr $testdir/file1 >> $seqres.full $XFS_IO_PROG -d -f -c "pwrite -S 0x63 -b $cowsz $cowoff $cowsz" $testdir/file1 >> $seqres.full _pwrite_byte 0x63 $cowoff $cowsz $testdir/file1.chk >> $seqres.full -_scratch_remount +_scratch_cycle_mount echo "Compare files" md5sum $testdir/file1 | _filter_scratch diff --git a/tests/generic/296 b/tests/generic/296 index 53eceb2dc..42970887b 100755 --- a/tests/generic/296 +++ b/tests/generic/296 @@ -68,7 +68,7 @@ echo "Create the original files" $XFS_IO_PROG -f -c "pwrite -S 0x61 -b $bufsize 0 $((filesize + 1))" $testdir/file1 >> $seqres.full _cp_reflink $testdir/file1 $testdir/file2 >> $seqres.full $XFS_IO_PROG -f -c "pwrite -S 0x61 -b $bufsize 0 $((filesize + 1))" $testdir/file2.chk >> $seqres.full -_scratch_remount +_scratch_cycle_mount echo "Compare files" md5sum $testdir/file1 | _filter_scratch @@ -78,7 +78,7 @@ md5sum $testdir/file2.chk | _filter_scratch echo "CoW and unmount" $XFS_IO_PROG -f -c "pwrite -S 0x63 -b $real_blksz 0 $((filesize + 1))" -c "fdatasync" $testdir/file2 >> $seqres.full $XFS_IO_PROG -f -c "pwrite -S 0x63 -b $real_blksz 0 $((filesize + 1))" -c "fdatasync" $testdir/file2.chk >> $seqres.full -_scratch_remount +_scratch_cycle_mount echo "Compare files" md5sum $testdir/file1 | _filter_scratch diff --git a/tests/generic/301 b/tests/generic/301 index 0201d0b5e..a513333a8 100755 --- a/tests/generic/301 +++ b/tests/generic/301 @@ -71,7 +71,7 @@ internal_blks=$((filesize / real_blksz)) echo "Create the original files" $XFS_IO_PROG -f -c "pwrite -S 0x61 -b $bufsize 0 $((filesize + 1))" $testdir/file1 >> $seqres.full _cp_reflink $testdir/file1 $testdir/file2 >> $seqres.full -_scratch_remount +_scratch_cycle_mount echo "Compare files" md5sum $testdir/file1 | _filter_scratch @@ -81,7 +81,7 @@ echo "CoW and unmount" for i in `seq 1 8`; do $XFS_IO_PROG -f -c "pwrite -R -S 0x63 -b $real_blksz 0 $filesize" -c "fdatasync" $testdir/file2 >> $seqres.full done -_scratch_remount +_scratch_cycle_mount echo "Compare files" md5sum $testdir/file1 | _filter_scratch diff --git a/tests/generic/302 b/tests/generic/302 index c48da0a62..1600b5aec 100755 --- a/tests/generic/302 +++ b/tests/generic/302 @@ -72,7 +72,7 @@ internal_blks=$((filesize / real_blksz)) echo "Create the original files" $XFS_IO_PROG -f -c "pwrite -S 0x61 -b $bufsize 0 $((filesize + 1))" $testdir/file1 >> $seqres.full _cp_reflink $testdir/file1 $testdir/file2 >> $seqres.full -_scratch_remount +_scratch_cycle_mount echo "Compare files" md5sum $testdir/file1 | _filter_scratch @@ -82,7 +82,7 @@ echo "CoW and unmount" for i in `seq 1 8`; do $XFS_IO_PROG -d -f -c "pwrite -R -S 0x63 -b $real_blksz 0 $filesize" $testdir/file2 >> $seqres.full done -_scratch_remount +_scratch_cycle_mount echo "Compare files" md5sum $testdir/file1 | _filter_scratch diff --git a/tests/generic/305 b/tests/generic/305 index 9356a864f..d73d87f48 100755 --- a/tests/generic/305 +++ b/tests/generic/305 @@ -75,7 +75,7 @@ chown nobody $testdir/urk touch $testdir/erk chown fsgqa $testdir/erk _repquota -_scratch_remount +_scratch_cycle_mount echo "Change file ownership" chown fsgqa $testdir/file1 @@ -88,7 +88,7 @@ $XFS_IO_PROG -f -c "pwrite -S 0x63 -b $((sz/2)) 0 $((sz/2))" -c "fsync" $testdir _repquota echo "Remount the FS to see if accounting changes" -_scratch_remount +_scratch_cycle_mount _repquota echo "Chown one of the files" diff --git a/tests/generic/307 b/tests/generic/307 index 857c1966a..f5d0680c9 100755 --- a/tests/generic/307 +++ b/tests/generic/307 @@ -58,14 +58,14 @@ _scratch_mkfs >/dev/null 2>&1 _scratch_mount >/dev/null 2>&1 touch $testfile -_scratch_remount +_scratch_cycle_mount ctime1=`stat -c %Z $testfile` sleep 1 setfacl -m 'u::x,g::x,o::x' $testfile ctime2=`stat -c %Z $testfile` -_scratch_remount +_scratch_cycle_mount ctime3=`stat -c %Z $testfile` if [ "$ctime1" == "$ctime2" ]; then diff --git a/tests/generic/326 b/tests/generic/326 index b6c748c1c..8afc6a221 100755 --- a/tests/generic/326 +++ b/tests/generic/326 @@ -76,7 +76,7 @@ chown nobody $testdir/urk touch $testdir/erk chown fsgqa $testdir/erk _repquota -_scratch_remount +_scratch_cycle_mount echo "Change file ownership" chown fsgqa $testdir/file1 @@ -89,7 +89,7 @@ $XFS_IO_PROG -d -f -c "pwrite -S 0x63 -b $((sz/2)) 0 $((sz/2))" -c "fsync" $test _repquota echo "Remount the FS to see if accounting changes" -_scratch_remount +_scratch_cycle_mount _repquota echo "Chown one of the files" diff --git a/tests/generic/327 b/tests/generic/327 index 90d2acaff..c165ad5d2 100755 --- a/tests/generic/327 +++ b/tests/generic/327 @@ -70,7 +70,7 @@ $XFS_IO_PROG -f -c "pwrite -S 0x61 -b $sz 0 $sz" $testdir/file1 >> $seqres.full chown fsgqa $testdir/file1 _cp_reflink $testdir/file1 $testdir/file2 >> $seqres.full _repquota -_scratch_remount +_scratch_cycle_mount echo "Set hard quota to prevent third reflink" setquota -u fsgqa 0 1024 0 0 $SCRATCH_MNT diff --git a/tests/generic/328 b/tests/generic/328 index 46cfa662c..e0b05504a 100755 --- a/tests/generic/328 +++ b/tests/generic/328 @@ -72,7 +72,7 @@ chown fsgqa $testdir/file1 _cp_reflink $testdir/file1 $testdir/file2 >> $seqres.full _cp_reflink $testdir/file1 $testdir/file3 >> $seqres.full _repquota -_scratch_remount +_scratch_cycle_mount echo "Set hard quota to prevent rewrite" setquota -u fsgqa 0 1024 0 0 $SCRATCH_MNT diff --git a/tests/generic/330 b/tests/generic/330 index 377d82257..f9f82a49e 100755 --- a/tests/generic/330 +++ b/tests/generic/330 @@ -67,7 +67,7 @@ _require_fs_space $SCRATCH_MNT $((filesize / 1024 * 3 * 5 / 4)) echo "Create the original files" $XFS_IO_PROG -f -c "pwrite -S 0x61 -b $bufsize 0 $filesize" $testdir/file1 >> $seqres.full _cp_reflink $testdir/file1 $testdir/file2 >> $seqres.full -_scratch_remount +_scratch_cycle_mount echo "Compare files" md5sum $testdir/file1 | _filter_scratch @@ -78,7 +78,7 @@ $XFS_IO_PROG -f -c "pwrite -S 0x63 $bufsize 1" $testdir/file2 >> $seqres.full sync $XFS_IO_PROG -f -c "pwrite -S 0x63 -b $bufsize 0 $filesize" $TEST_DIR/moo >> $seqres.full $AIO_TEST -f DIRECT -b $bufsize $TEST_DIR/moo $testdir/file2 >> $seqres.full -_scratch_remount +_scratch_cycle_mount echo "Compare files" md5sum $testdir/file1 | _filter_scratch diff --git a/tests/generic/332 b/tests/generic/332 index f9b5f6f37..b805bbd71 100755 --- a/tests/generic/332 +++ b/tests/generic/332 @@ -68,7 +68,7 @@ _require_fs_space $SCRATCH_MNT $((filesize / 1024 * 3 * 5 / 4)) echo "Create the original files" $XFS_IO_PROG -f -c "pwrite -S 0x61 -b $bufsize 0 $filesize" $testdir/file1 >> $seqres.full _cp_reflink $testdir/file1 $testdir/file2 >> $seqres.full -_scratch_remount +_scratch_cycle_mount echo "Compare files" md5sum $testdir/file1 | _filter_scratch @@ -79,7 +79,7 @@ $XFS_IO_PROG -f -c "pwrite -S 0x63 $bufsize 1" $testdir/file2 >> $seqres.full $XFS_IO_PROG -f -c "pwrite -S 0x63 -b $bufsize 0 $filesize" $TEST_DIR/moo >> $seqres.full sync $AIO_TEST -b $bufsize $TEST_DIR/moo $testdir/file2 >> $seqres.full -_scratch_remount +_scratch_cycle_mount echo "Compare files" md5sum $testdir/file1 | _filter_scratch diff --git a/tests/generic/333 b/tests/generic/333 index b8a1ea8dd..61a2d02a1 100755 --- a/tests/generic/333 +++ b/tests/generic/333 @@ -63,7 +63,7 @@ blksz=65536 echo "Initialize file" echo > $seqres.full _pwrite_byte 0x61 0 $((loops * blksz)) $testdir/file1 >> $seqres.full -_scratch_remount +_scratch_cycle_mount # Snapshot creator... snappy() { diff --git a/tests/generic/334 b/tests/generic/334 index 89601be8f..28c47d6df 100755 --- a/tests/generic/334 +++ b/tests/generic/334 @@ -62,7 +62,7 @@ blksz=65536 echo "Initialize file" echo > $seqres.full _pwrite_byte 0x61 0 $((loops * blksz)) $testdir/file1 >> $seqres.full -_scratch_remount +_scratch_cycle_mount # Snapshot creator... snappy() { diff --git a/tests/xfs/127 b/tests/xfs/127 index 67a8c96ee..f44daae4d 100755 --- a/tests/xfs/127 +++ b/tests/xfs/127 @@ -62,7 +62,7 @@ _cp_reflink $testdir/copy1 $testdir/copy2 echo "Grow fs" $XFS_GROWFS_PROG $SCRATCH_MNT 2>&1 | _filter_growfs >> $seqres.full -_scratch_remount +_scratch_cycle_mount echo "Create more reflink copies" _cp_reflink $testdir/original $testdir/copy3 diff --git a/tests/xfs/139 b/tests/xfs/139 index ecd88e6f5..16193e516 100755 --- a/tests/xfs/139 +++ b/tests/xfs/139 @@ -61,11 +61,11 @@ sz=$((48 * 1048576)) nr=$((sz / blksz)) _pwrite_byte 0x61 0 $sz $testdir/file1 >> $seqres.full _cp_reflink $testdir/file1 $testdir/file2 >> $seqres.full -_scratch_remount +_scratch_cycle_mount echo "CoW every other block" _pwrite_byte 0x62 0 $sz $testdir/file1 >> $seqres.full -_scratch_remount +_scratch_cycle_mount echo "Compare files" md5sum $testdir/file1 | _filter_scratch diff --git a/tests/xfs/140 b/tests/xfs/140 index 6dfe58118..052c5394f 100644 --- a/tests/xfs/140 +++ b/tests/xfs/140 @@ -62,7 +62,7 @@ nr=$((sz / blksz)) _pwrite_byte 0x61 0 $sz $testdir/file1 >> $seqres.full _cp_reflink $testdir/file1 $testdir/file2 >> $seqres.full _pwrite_byte 0x61 0 $sz $testdir/file2.chk >> $seqres.full -_scratch_remount +_scratch_cycle_mount echo "Compare files" cmp -s $testdir/file1 $testdir/file2 || echo "file1 and file2 do not match" @@ -73,7 +73,7 @@ seq 1 2 $((nr - 1)) | while read f; do _pwrite_byte 0x62 $((f * blksz)) $blksz $testdir/file2 >> $seqres.full _pwrite_byte 0x62 $((f * blksz)) $blksz $testdir/file2.chk >> $seqres.full done -_scratch_remount +_scratch_cycle_mount echo "Compare files" ! cmp -s $testdir/file1 $testdir/file2 || echo "file1 and file2 must not match" diff --git a/tests/xfs/180 b/tests/xfs/180 index fdb24eb2d..00e91a414 100755 --- a/tests/xfs/180 +++ b/tests/xfs/180 @@ -75,7 +75,7 @@ echo "Create the original files" $XFS_IO_PROG -f -c "pwrite -S 0x61 -b $bufsize 0 $((filesize + 1))" $testdir/file1 >> $seqres.full $XFS_IO_PROG -f -c "cowextsize $bufsize" $testdir/file2 _cp_reflink $testdir/file1 $testdir/file2 >> $seqres.full -_scratch_remount +_scratch_cycle_mount echo "Compare files" md5sum $testdir/file1 | _filter_scratch @@ -85,7 +85,7 @@ echo "CoW and unmount" $XFS_IO_PROG -f -c "cowextsize" $testdir/file2 >> $seqres.full $XFS_IO_PROG -f -c "pwrite -R -S 0x63 -b $real_blksz 0 $filesize" -c "fdatasync" $testdir/file2 >> $seqres.full $XFS_IO_PROG -f -c "pwrite -S 0x63 -b $real_blksz 0 $((filesize + 1))" -c "fdatasync" $testdir/file2 >> $seqres.full -_scratch_remount +_scratch_cycle_mount echo "Compare files" md5sum $testdir/file1 | _filter_scratch diff --git a/tests/xfs/182 b/tests/xfs/182 index c1bfc025d..b7aa5e702 100755 --- a/tests/xfs/182 +++ b/tests/xfs/182 @@ -76,7 +76,7 @@ echo "Create the original files" $XFS_IO_PROG -f -c "pwrite -S 0x61 -b $bufsize 0 $((filesize + 1))" $testdir/file1 >> $seqres.full $XFS_IO_PROG -f -c "cowextsize $bufsize" $testdir/file2 _cp_reflink $testdir/file1 $testdir/file2 >> $seqres.full -_scratch_remount +_scratch_cycle_mount echo "Compare files" md5sum $testdir/file1 | _filter_scratch @@ -86,7 +86,7 @@ echo "CoW and unmount" $XFS_IO_PROG -f -c "cowextsize" $testdir/file2 >> $seqres.full $XFS_IO_PROG -d -f -c "pwrite -R -S 0x63 -b $real_blksz 0 $((filesize + 1))" $testdir/file2 >> $seqres.full $XFS_IO_PROG -d -f -c "pwrite -S 0x63 -b $real_blksz 0 $((filesize + 1))" $testdir/file2 >> $seqres.full -_scratch_remount +_scratch_cycle_mount echo "Compare files" md5sum $testdir/file1 | _filter_scratch diff --git a/tests/xfs/184 b/tests/xfs/184 index 50674ffd5..6d32e93a1 100755 --- a/tests/xfs/184 +++ b/tests/xfs/184 @@ -75,7 +75,7 @@ echo "Create the original files" $XFS_IO_PROG -f -c "pwrite -S 0x61 -b $bufsize 0 $((filesize + 1))" $testdir/file1 >> $seqres.full $XFS_IO_PROG -f -c "cowextsize $bufsize" $testdir/file2 _cp_reflink $testdir/file1 $testdir/file2 >> $seqres.full -_scratch_remount +_scratch_cycle_mount echo "Compare files" md5sum $testdir/file1 | _filter_scratch @@ -85,7 +85,7 @@ echo "CoW and unmount" $XFS_IO_PROG -f -c "cowextsize" $testdir/file2 >> $seqres.full $XFS_IO_PROG -f -c "pwrite -R -S 0x63 -b $real_blksz 0 $((filesize + 1))" -c "fdatasync" $testdir/file2 >> $seqres.full $XFS_IO_PROG -f -c "falloc 0 $((filesize + 1))" $testdir/file2 >> $seqres.full -_scratch_remount +_scratch_cycle_mount echo "Compare files" md5sum $testdir/file1 | _filter_scratch diff --git a/tests/xfs/192 b/tests/xfs/192 index 6429defdc..8594787cf 100755 --- a/tests/xfs/192 +++ b/tests/xfs/192 @@ -76,7 +76,7 @@ echo "Create the original files" $XFS_IO_PROG -f -c "pwrite -S 0x61 -b $bufsize 0 $((filesize + 1))" $testdir/file1 >> $seqres.full $XFS_IO_PROG -f -c "cowextsize $bufsize" $testdir/file2 _cp_reflink $testdir/file1 $testdir/file2 >> $seqres.full -_scratch_remount +_scratch_cycle_mount echo "Compare files" md5sum $testdir/file1 | _filter_scratch @@ -86,7 +86,7 @@ echo "CoW and unmount" $XFS_IO_PROG -f -c "cowextsize" $testdir/file2 >> $seqres.full $XFS_IO_PROG -d -f -c "pwrite -R -S 0x63 -b $real_blksz 0 $filesize" $testdir/file2 >> $seqres.full $XFS_IO_PROG -d -f -c "falloc 0 $filesize" $testdir/file2 >> $seqres.full -_scratch_remount +_scratch_cycle_mount echo "Compare files" md5sum $testdir/file1 | _filter_scratch diff --git a/tests/xfs/193 b/tests/xfs/193 index 974f1eb31..f59b3bd03 100755 --- a/tests/xfs/193 +++ b/tests/xfs/193 @@ -74,7 +74,7 @@ echo "Create the original files" $XFS_IO_PROG -f -c "pwrite -S 0x61 -b $bufsize 0 $((filesize + 1))" $testdir/file1 >> $seqres.full $XFS_IO_PROG -f -c "cowextsize $bufsize" $testdir/file2 _cp_reflink $testdir/file1 $testdir/file2 >> $seqres.full -_scratch_remount +_scratch_cycle_mount echo "Compare files" md5sum $testdir/file1 | _filter_scratch @@ -83,7 +83,7 @@ md5sum $testdir/file2 | _filter_scratch echo "CoW and unmount" $XFS_IO_PROG -f -c "cowextsize" $testdir/file2 >> $seqres.full $XFS_IO_PROG -f -c "pwrite -R -S 0x63 -b $real_blksz 0 $filesize" -c "fdatasync" $testdir/file2 >> $seqres.full -_scratch_remount +_scratch_cycle_mount echo "Compare files" md5sum $testdir/file1 | _filter_scratch diff --git a/tests/xfs/198 b/tests/xfs/198 index 7f3c105bf..c12d915b1 100755 --- a/tests/xfs/198 +++ b/tests/xfs/198 @@ -75,7 +75,7 @@ echo "Create the original files" $XFS_IO_PROG -f -c "pwrite -S 0x61 -b $bufsize 0 $((filesize + 1))" $testdir/file1 >> $seqres.full $XFS_IO_PROG -f -c "cowextsize $bufsize" $testdir/file2 _cp_reflink $testdir/file1 $testdir/file2 >> $seqres.full -_scratch_remount +_scratch_cycle_mount echo "Compare files" md5sum $testdir/file1 | _filter_scratch @@ -84,7 +84,7 @@ md5sum $testdir/file2 | _filter_scratch echo "CoW and unmount" $XFS_IO_PROG -f -c "cowextsize" $testdir/file2 >> $seqres.full $XFS_IO_PROG -d -f -c "pwrite -R -S 0x63 -b $real_blksz 0 $filesize" $testdir/file2 >> $seqres.full -_scratch_remount +_scratch_cycle_mount echo "Compare files" md5sum $testdir/file1 | _filter_scratch diff --git a/tests/xfs/200 b/tests/xfs/200 index 99bcf31bb..a750ef64f 100755 --- a/tests/xfs/200 +++ b/tests/xfs/200 @@ -77,7 +77,7 @@ echo "Create the original files" $XFS_IO_PROG -f -c "pwrite -S 0x61 -b $bufsize 0 $((filesize + 1))" $testdir/file1 >> $seqres.full $XFS_IO_PROG -f -c "cowextsize $bufsize" $testdir/file2 _cp_reflink $testdir/file1 $testdir/file2 >> $seqres.full -_scratch_remount +_scratch_cycle_mount echo "Compare files" md5sum $testdir/file1 | _filter_scratch @@ -89,7 +89,7 @@ cat $testdir/file2 > /dev/null $XFS_IO_PROG -f -c "pwrite -R -S 0x63 -b $real_blksz 0 $filesize" -c "fdatasync" $testdir/file2 >> $seqres.full $XFS_IO_PROG -f -c "fadvise -d 0 $filesize" -c "fsync" $testdir/file2 >> $seqres.full $XFS_IO_PROG -f -c "falloc 0 $filesize" $testdir/file2 >> $seqres.full -_scratch_remount +_scratch_cycle_mount echo "Compare files" md5sum $testdir/file1 | _filter_scratch diff --git a/tests/xfs/204 b/tests/xfs/204 index 31598497d..ae21d6ee4 100755 --- a/tests/xfs/204 +++ b/tests/xfs/204 @@ -78,7 +78,7 @@ echo "Create the original files" $XFS_IO_PROG -f -c "pwrite -S 0x61 -b $bufsize 0 $((filesize + 1))" $testdir/file1 >> $seqres.full $XFS_IO_PROG -f -c "cowextsize $bufsize" $testdir/file2 _cp_reflink $testdir/file1 $testdir/file2 >> $seqres.full -_scratch_remount +_scratch_cycle_mount echo "Compare files" md5sum $testdir/file1 | _filter_scratch @@ -90,7 +90,7 @@ cat $testdir/file2 > /dev/null $XFS_IO_PROG -d -f -c "pwrite -R -S 0x63 -b $real_blksz 0 $filesize" -c "fdatasync" $testdir/file2 >> $seqres.full $XFS_IO_PROG -f -c "fadvise -d 0 $filesize" -c "fsync" $testdir/file2 >> $seqres.full $XFS_IO_PROG -f -c "falloc 0 $filesize" $testdir/file2 >> $seqres.full -_scratch_remount +_scratch_cycle_mount echo "Compare files" md5sum $testdir/file1 | _filter_scratch diff --git a/tests/xfs/207 b/tests/xfs/207 index d416f7992..efa283f12 100755 --- a/tests/xfs/207 +++ b/tests/xfs/207 @@ -64,7 +64,7 @@ echo "Create the original files" $XFS_IO_PROG -f -c "pwrite -S 0x61 0 0" $testdir/file1 >> $seqres.full $XFS_IO_PROG -f -c "pwrite -S 0x61 0 1048576" $testdir/file2 >> $seqres.full $XFS_IO_PROG -f -c "pwrite -S 0x61 0 0" $testdir/file3 >> $seqres.full -_scratch_remount +_scratch_cycle_mount echo "Set extsz and cowextsz on zero byte file" $XFS_IO_PROG -c "extsize 1048576" $testdir/file1 | _filter_scratch @@ -73,7 +73,7 @@ $XFS_IO_PROG -c "cowextsize 1048576" $testdir/file1 | _filter_scratch echo "Set extsz and cowextsz on 1Mbyte file" $XFS_IO_PROG -c "extsize 1048576" $testdir/file2 | _filter_scratch $XFS_IO_PROG -c "cowextsize 1048576" $testdir/file2 | _filter_scratch -_scratch_remount +_scratch_cycle_mount echo "Check extsz and cowextsz settings on zero byte file" $XFS_IO_PROG -c "extsize" $testdir/file1 | _filter_scratch @@ -85,14 +85,14 @@ $XFS_IO_PROG -c "cowextsize" $testdir/file2 | _filter_scratch echo "Set cowextsize and check flag" $XFS_IO_PROG -c "cowextsize 1048576" $testdir/file3 | _filter_scratch -_scratch_remount +_scratch_cycle_mount $XFS_IO_PROG -c "stat" $testdir/file3 | grep 'fsxattr.xflags' | _filter_scratch $XFS_IO_PROG -c "cowextsize" $testdir/file3 | _filter_scratch echo "Unset cowextsize and check flag" $XFS_IO_PROG -c "cowextsize 0" $testdir/file3 | _filter_scratch -_scratch_remount +_scratch_cycle_mount $XFS_IO_PROG -c "stat" $testdir/file3 | grep 'fsxattr.xflags' | _filter_scratch $XFS_IO_PROG -c "cowextsize" $testdir/file3 | _filter_scratch diff --git a/tests/xfs/208 b/tests/xfs/208 index d87689883..4f56884d1 100755 --- a/tests/xfs/208 +++ b/tests/xfs/208 @@ -85,7 +85,7 @@ _cp_reflink $testdir/file1 $testdir/file2 >> $seqres.full $XFS_IO_PROG -f -c "extsize $bufsize" $testdir/file3 $XFS_IO_PROG -f -c "cowextsize $real_blksz" $testdir/file3 _cp_reflink $testdir/file1 $testdir/file3 >> $seqres.full -_scratch_remount +_scratch_cycle_mount echo "Compare files" md5sum $testdir/file1 | _filter_scratch @@ -108,7 +108,7 @@ $XFS_IO_PROG -f -c "cowextsize" $testdir/file3 >> $seqres.full $XFS_IO_PROG -f -c "pwrite -R -S 0x63 -b $real_blksz 0 $filesize" -c "fdatasync" $testdir/file3 >> $seqres.full $XFS_IO_PROG -f -c "pwrite -S 0x63 -b $real_blksz 0 $((filesize + 1))" -c "fdatasync" $testdir/file3 >> $seqres.full -_scratch_remount +_scratch_cycle_mount echo "Compare files" md5sum $testdir/file1 | _filter_scratch diff --git a/tests/xfs/209 b/tests/xfs/209 index 684187e33..cecd9c702 100755 --- a/tests/xfs/209 +++ b/tests/xfs/209 @@ -67,7 +67,7 @@ seq 1 2 | while read nr; do touch "$testdir/dir-$nr/file-$nnr" done done -_scratch_remount +_scratch_cycle_mount echo "Check cowextsize settings" seq 1 2 | while read nr; do diff --git a/tests/xfs/211 b/tests/xfs/211 index cb0f17a44..9f01d0844 100755 --- a/tests/xfs/211 +++ b/tests/xfs/211 @@ -76,7 +76,7 @@ echo "Create the original files" $XFS_IO_PROG -f -c "pwrite -S 0x61 -b $bufsize 0 $((filesize + 1))" $testdir/file1 >> $seqres.full $XFS_IO_PROG -f -c "cowextsize $bufsize" $testdir/file2 _cp_reflink $testdir/file1 $testdir/file2 >> $seqres.full -_scratch_remount +_scratch_cycle_mount echo "Compare files" md5sum $testdir/file1 | _filter_scratch @@ -86,7 +86,7 @@ echo "CoW and unmount" $XFS_IO_PROG -f -c "cowextsize" $testdir/file2 >> $seqres.full $XFS_IO_PROG -d -f -c "pwrite -R -S 0x63 -b $real_blksz 0 $((filesize + 1))" $testdir/file2 >> $seqres.full $XFS_IO_PROG -d -f -c "pwrite -S 0x63 -b 8388608 0 $filesize" $testdir/file2 >> $seqres.full -_scratch_remount +_scratch_cycle_mount echo "Compare files" md5sum $testdir/file1 | _filter_scratch diff --git a/tests/xfs/212 b/tests/xfs/212 index 4e3bcd47c..48235d45d 100755 --- a/tests/xfs/212 +++ b/tests/xfs/212 @@ -72,7 +72,7 @@ $XFS_IO_PROG -f -c "pwrite -S 0x61 -b $bufsize 0 $filesize" $testdir/file1 >> $s $XFS_IO_PROG -f -c "pwrite -S 0x61 -b $bufsize 0 $filesize" $testdir/file2.chk >> $seqres.full $XFS_IO_PROG -f -c "extsize $bufsize" $testdir/file2 _cp_reflink $testdir/file1 $testdir/file2 >> $seqres.full -_scratch_remount +_scratch_cycle_mount echo "Compare files" md5sum $testdir/file1 | _filter_scratch @@ -87,7 +87,7 @@ sync echo "Crash and recover" $XFS_IO_PROG -x -c "shutdown" $testdir/file2 >> $seqres.full -_scratch_remount +_scratch_cycle_mount echo "Compare files" md5sum $testdir/file1 | _filter_scratch diff --git a/tests/xfs/213 b/tests/xfs/213 index 2450097a8..d5cc12930 100755 --- a/tests/xfs/213 +++ b/tests/xfs/213 @@ -80,7 +80,7 @@ chown nobody $testdir/urk touch $testdir/erk chown fsgqa $testdir/erk _repquota -_scratch_remount +_scratch_cycle_mount echo "Change file ownership" chown fsgqa $testdir/file1 @@ -93,7 +93,7 @@ $XFS_IO_PROG -f -c "pwrite -S 0x63 -b $blksz $((sz - blksz)) $blksz" -c "fsync" _repquota echo "Remount the FS to see if accounting changes" -_scratch_remount +_scratch_cycle_mount _repquota echo "Chown one of the files" diff --git a/tests/xfs/214 b/tests/xfs/214 index 847f489fd..35972c6fe 100755 --- a/tests/xfs/214 +++ b/tests/xfs/214 @@ -81,7 +81,7 @@ chown nobody $testdir/urk touch $testdir/erk chown fsgqa $testdir/erk _repquota -_scratch_remount +_scratch_cycle_mount echo "Change file ownership" chown fsgqa $testdir/file1 @@ -94,7 +94,7 @@ $XFS_IO_PROG -d -f -c "pwrite -S 0x63 -b $blksz $((sz - blksz)) $blksz" -c "fsyn _repquota echo "Remount the FS to see if accounting changes" -_scratch_remount +_scratch_cycle_mount _repquota echo "Chown one of the files" diff --git a/tests/xfs/215 b/tests/xfs/215 index 9ed842ee6..5ae4d8546 100755 --- a/tests/xfs/215 +++ b/tests/xfs/215 @@ -69,7 +69,7 @@ real_blksz=$(stat -f -c '%S' $testdir) internal_blks=$((filesize / real_blksz)) $XFS_IO_PROG -c "cowextsize $((blksz * 16))" $testdir >> $seqres.full _weave_reflink_unwritten $blksz $nr $testdir/file1 $testdir/file3 >> $seqres.full -_scratch_remount +_scratch_cycle_mount echo "Compare files" md5sum $testdir/file1 | _filter_scratch @@ -81,7 +81,7 @@ cowoff=$((filesize / 4)) cowsz=$((filesize / 2)) $XFS_IO_PROG -d -f -c "pwrite -S 0x63 -b $cowsz $cowoff $cowsz" $testdir/file3 >> $seqres.full _pwrite_byte 0x63 $cowoff $cowsz $testdir/file3.chk >> $seqres.full -_scratch_remount +_scratch_cycle_mount echo "Compare files" md5sum $testdir/file1 | _filter_scratch diff --git a/tests/xfs/218 b/tests/xfs/218 index e98b14ec8..ea464f2d1 100755 --- a/tests/xfs/218 +++ b/tests/xfs/218 @@ -68,7 +68,7 @@ real_blksz=$(stat -f -c '%S' $testdir) internal_blks=$((filesize / real_blksz)) $XFS_IO_PROG -c "cowextsize $((blksz * 16))" $testdir >> $seqres.full _weave_reflink_unwritten $blksz $nr $testdir/file1 $testdir/file3 >> $seqres.full -_scratch_remount +_scratch_cycle_mount echo "Compare files" md5sum $testdir/file1 | _filter_scratch @@ -80,7 +80,7 @@ cowoff=$((filesize / 4)) cowsz=$((filesize / 2)) $XFS_IO_PROG -f -c "pwrite -S 0x63 -b $cowsz $cowoff $cowsz" $testdir/file3 >> $seqres.full _pwrite_byte 0x63 $cowoff $cowsz $testdir/file3.chk >> $seqres.full -_scratch_remount +_scratch_cycle_mount echo "Compare files" md5sum $testdir/file1 | _filter_scratch diff --git a/tests/xfs/219 b/tests/xfs/219 index 25c0bb429..012b07c26 100755 --- a/tests/xfs/219 +++ b/tests/xfs/219 @@ -69,7 +69,7 @@ real_blksz=$(stat -f -c '%S' $testdir) internal_blks=$((filesize / real_blksz)) $XFS_IO_PROG -c "cowextsize $((blksz * 16))" $testdir >> $seqres.full _weave_reflink_holes $blksz $nr $testdir/file1 $testdir/file3 >> $seqres.full -_scratch_remount +_scratch_cycle_mount echo "Compare files" md5sum $testdir/file1 | _filter_scratch @@ -81,7 +81,7 @@ cowoff=$((filesize / 4)) cowsz=$((filesize / 2)) $XFS_IO_PROG -d -f -c "pwrite -S 0x63 -b $cowsz $cowoff $cowsz" $testdir/file3 >> $seqres.full _pwrite_byte 0x63 $cowoff $cowsz $testdir/file3.chk >> $seqres.full -_scratch_remount +_scratch_cycle_mount echo "Compare files" md5sum $testdir/file1 | _filter_scratch diff --git a/tests/xfs/221 b/tests/xfs/221 index dc00331ae..8b860f2ce 100755 --- a/tests/xfs/221 +++ b/tests/xfs/221 @@ -68,7 +68,7 @@ real_blksz=$(stat -f -c '%S' $testdir) internal_blks=$((filesize / real_blksz)) $XFS_IO_PROG -c "cowextsize $((blksz * 16))" $testdir >> $seqres.full _weave_reflink_holes $blksz $nr $testdir/file1 $testdir/file3 >> $seqres.full -_scratch_remount +_scratch_cycle_mount echo "Compare files" md5sum $testdir/file1 | _filter_scratch @@ -80,7 +80,7 @@ cowoff=$((filesize / 4)) cowsz=$((filesize / 2)) $XFS_IO_PROG -f -c "pwrite -S 0x63 -b $cowsz $cowoff $cowsz" $testdir/file3 >> $seqres.full _pwrite_byte 0x63 $cowoff $cowsz $testdir/file3.chk >> $seqres.full -_scratch_remount +_scratch_cycle_mount echo "Compare files" md5sum $testdir/file1 | _filter_scratch diff --git a/tests/xfs/223 b/tests/xfs/223 index 2bb1fcb80..1e6ba9876 100755 --- a/tests/xfs/223 +++ b/tests/xfs/223 @@ -70,7 +70,7 @@ real_blksz=$(stat -f -c '%S' $testdir) internal_blks=$((filesize / real_blksz)) $XFS_IO_PROG -c "cowextsize $((blksz * 16))" $testdir >> $seqres.full _weave_reflink_holes $blksz $nr $testdir/file1 $testdir/file3 >> $seqres.full -_scratch_remount +_scratch_cycle_mount echo "Compare files" md5sum $testdir/file1 | _filter_scratch @@ -83,7 +83,7 @@ cowsz=$((filesize / 2)) _weave_reflink_holes_delalloc $blksz $nr $testdir/file3 >> $seqres.full $XFS_IO_PROG -d -f -c "pwrite -S 0x63 -b $cowsz $cowoff $cowsz" $testdir/file3 >> $seqres.full _pwrite_byte 0x63 $cowoff $cowsz $testdir/file3.chk >> $seqres.full -_scratch_remount +_scratch_cycle_mount echo "Compare files" md5sum $testdir/file1 | _filter_scratch diff --git a/tests/xfs/224 b/tests/xfs/224 index 92d3b053e..3d19f944a 100755 --- a/tests/xfs/224 +++ b/tests/xfs/224 @@ -69,7 +69,7 @@ real_blksz=$(stat -f -c '%S' $testdir) internal_blks=$((filesize / real_blksz)) $XFS_IO_PROG -c "cowextsize $((blksz * 16))" $testdir >> $seqres.full _weave_reflink_holes $blksz $nr $testdir/file1 $testdir/file3 >> $seqres.full -_scratch_remount +_scratch_cycle_mount echo "Compare files" md5sum $testdir/file1 | _filter_scratch @@ -82,7 +82,7 @@ cowsz=$((filesize / 2)) _weave_reflink_holes_delalloc $blksz $nr $testdir/file3 >> $seqres.full $XFS_IO_PROG -f -c "pwrite -S 0x63 -b $cowsz $cowoff $cowsz" $testdir/file3 >> $seqres.full _pwrite_byte 0x63 $cowoff $cowsz $testdir/file3.chk >> $seqres.full -_scratch_remount +_scratch_cycle_mount echo "Compare files" md5sum $testdir/file1 | _filter_scratch diff --git a/tests/xfs/225 b/tests/xfs/225 index b8e771204..c2e5b8248 100755 --- a/tests/xfs/225 +++ b/tests/xfs/225 @@ -69,7 +69,7 @@ real_blksz=$(stat -f -c '%S' $testdir) internal_blks=$((filesize / real_blksz)) $XFS_IO_PROG -c "cowextsize $((blksz * 16))" $testdir >> $seqres.full _weave_reflink_regular $blksz $nr $testdir/file1 $testdir/file3 >> $seqres.full -_scratch_remount +_scratch_cycle_mount echo "Compare files" md5sum $testdir/file1 | _filter_scratch @@ -81,7 +81,7 @@ cowoff=$((filesize / 4)) cowsz=$((filesize / 2)) $XFS_IO_PROG -d -f -c "pwrite -S 0x63 -b $cowsz $cowoff $cowsz" $testdir/file3 >> $seqres.full _pwrite_byte 0x63 $cowoff $cowsz $testdir/file3.chk >> $seqres.full -_scratch_remount +_scratch_cycle_mount echo "Compare files" md5sum $testdir/file1 | _filter_scratch diff --git a/tests/xfs/226 b/tests/xfs/226 index ef4226ee1..3f035b424 100755 --- a/tests/xfs/226 +++ b/tests/xfs/226 @@ -68,7 +68,7 @@ real_blksz=$(stat -f -c '%S' $testdir) internal_blks=$((filesize / real_blksz)) $XFS_IO_PROG -c "cowextsize $((blksz * 16))" $testdir >> $seqres.full _weave_reflink_regular $blksz $nr $testdir/file1 $testdir/file3 >> $seqres.full -_scratch_remount +_scratch_cycle_mount echo "Compare files" md5sum $testdir/file1 | _filter_scratch @@ -80,7 +80,7 @@ cowoff=$((filesize / 4)) cowsz=$((filesize / 2)) $XFS_IO_PROG -f -c "pwrite -S 0x63 -b $cowsz $cowoff $cowsz" $testdir/file3 >> $seqres.full _pwrite_byte 0x63 $cowoff $cowsz $testdir/file3.chk >> $seqres.full -_scratch_remount +_scratch_cycle_mount echo "Compare files" md5sum $testdir/file1 | _filter_scratch diff --git a/tests/xfs/228 b/tests/xfs/228 index ecbe35f29..52fbb753c 100755 --- a/tests/xfs/228 +++ b/tests/xfs/228 @@ -75,7 +75,7 @@ real_blksz=$(stat -f -c '%S' $testdir) internal_blks=$((filesize / real_blksz)) $XFS_IO_PROG -c "cowextsize $((blksz * 16))" $testdir >> $seqres.full _weave_reflink_rainbow $blksz $nr $testdir/file1 $testdir/file3 >> $seqres.full -_scratch_remount +_scratch_cycle_mount echo "Compare files" md5sum $testdir/file1 | _filter_scratch @@ -89,7 +89,7 @@ _weave_reflink_rainbow_delalloc $blksz $nr $testdir/file3 >> $seqres.full # now cow $XFS_IO_PROG -d -f -c "pwrite -S 0x63 -b $cowsz $cowoff $cowsz" $testdir/file3 >> $seqres.full _pwrite_byte 0x63 $cowoff $cowsz $testdir/file3.chk >> $seqres.full -_scratch_remount +_scratch_cycle_mount echo "Compare files" md5sum $testdir/file1 | _filter_scratch diff --git a/tests/xfs/230 b/tests/xfs/230 index e09b52eb7..91e4d3f00 100755 --- a/tests/xfs/230 +++ b/tests/xfs/230 @@ -75,7 +75,7 @@ real_blksz=$(stat -f -c '%S' $testdir) internal_blks=$((filesize / real_blksz)) $XFS_IO_PROG -c "cowextsize $((blksz * 16))" $testdir >> $seqres.full _weave_reflink_rainbow $blksz $nr $testdir/file1 $testdir/file3 >> $seqres.full -_scratch_remount +_scratch_cycle_mount echo "Compare files" md5sum $testdir/file1 | _filter_scratch @@ -89,7 +89,7 @@ _weave_reflink_rainbow_delalloc $blksz $nr $testdir/file3 >> $seqres.full # now cow $XFS_IO_PROG -f -c "pwrite -S 0x63 -b $cowsz $cowoff $cowsz" $testdir/file3 >> $seqres.full _pwrite_byte 0x63 $cowoff $cowsz $testdir/file3.chk >> $seqres.full -_scratch_remount +_scratch_cycle_mount echo "Compare files" md5sum $testdir/file1 | _filter_scratch diff --git a/tests/xfs/231 b/tests/xfs/231 index 3672887d3..60f59a9b1 100755 --- a/tests/xfs/231 +++ b/tests/xfs/231 @@ -79,7 +79,7 @@ $XFS_IO_PROG -c "cowextsize $bufsize" $testdir $XFS_IO_PROG -f -c "pwrite -S 0x61 -b $bufsize 0 $filesize" $testdir/file1 >> $seqres.full $XFS_IO_PROG -f -c "pwrite -S 0x61 -b $bufsize 0 $filesize" $testdir/file2.chk >> $seqres.full _cp_reflink $testdir/file1 $testdir/file2 >> $seqres.full -_scratch_remount +_scratch_cycle_mount echo "Compare files" md5sum $testdir/file1 | _filter_scratch diff --git a/tests/xfs/232 b/tests/xfs/232 index 7219a64ae..9a8403c0a 100755 --- a/tests/xfs/232 +++ b/tests/xfs/232 @@ -80,7 +80,7 @@ $XFS_IO_PROG -c "cowextsize $bufsize" $testdir $XFS_IO_PROG -f -c "pwrite -S 0x61 -b $bufsize 0 $filesize" $testdir/file1 >> $seqres.full $XFS_IO_PROG -f -c "pwrite -S 0x61 -b $bufsize 0 $filesize" $testdir/file2.chk >> $seqres.full _cp_reflink $testdir/file1 $testdir/file2 >> $seqres.full -_scratch_remount +_scratch_cycle_mount echo "Compare files" md5sum $testdir/file1 | _filter_scratch diff --git a/tests/xfs/233 b/tests/xfs/233 index f82100419..f10af2b9c 100755 --- a/tests/xfs/233 +++ b/tests/xfs/233 @@ -61,7 +61,7 @@ cp -p $testdir/copy1 $testdir/copy2 echo "Grow fs" $XFS_GROWFS_PROG $SCRATCH_MNT 2>&1 | _filter_growfs >> $seqres.full -_scratch_remount +_scratch_cycle_mount echo "Create more copies" cp -p $testdir/original $testdir/copy3 diff --git a/tests/xfs/239 b/tests/xfs/239 index 5bab6334e..c658dda64 100755 --- a/tests/xfs/239 +++ b/tests/xfs/239 @@ -72,7 +72,7 @@ echo "Create the original files" $XFS_IO_PROG -c "cowextsize $((bufsize * 2))" $testdir $XFS_IO_PROG -f -c "pwrite -S 0x61 -b $bufsize 0 $filesize" $testdir/file1 >> $seqres.full _cp_reflink $testdir/file1 $testdir/file2 >> $seqres.full -_scratch_remount +_scratch_cycle_mount echo "Compare files" md5sum $testdir/file1 | _filter_scratch @@ -83,7 +83,7 @@ $XFS_IO_PROG -f -c "pwrite -S 0x63 $bufsize 1" $testdir/file2 >> $seqres.full sync $XFS_IO_PROG -f -c "pwrite -S 0x63 -b $bufsize 0 $filesize" $TEST_DIR/moo >> $seqres.full $AIO_TEST -f DIRECT -b $bufsize $TEST_DIR/moo $testdir/file2 >> $seqres.full -_scratch_remount +_scratch_cycle_mount echo "Compare files" md5sum $testdir/file1 | _filter_scratch diff --git a/tests/xfs/241 b/tests/xfs/241 index 090f9139b..5b29f4d1e 100755 --- a/tests/xfs/241 +++ b/tests/xfs/241 @@ -74,7 +74,7 @@ echo "Create the original files" $XFS_IO_PROG -c "cowextsize $((bufsize * 2))" $testdir $XFS_IO_PROG -f -c "pwrite -S 0x61 -b $bufsize 0 $filesize" $testdir/file1 >> $seqres.full _cp_reflink $testdir/file1 $testdir/file2 >> $seqres.full -_scratch_remount +_scratch_cycle_mount echo "Compare files" md5sum $testdir/file1 | _filter_scratch @@ -85,7 +85,7 @@ $XFS_IO_PROG -f -c "pwrite -S 0x63 $bufsize 1" $testdir/file2 >> $seqres.full $XFS_IO_PROG -f -c "pwrite -S 0x63 -b $bufsize 0 $filesize" $TEST_DIR/moo >> $seqres.full sync $AIO_TEST -b $bufsize $TEST_DIR/moo $testdir/file2 >> $seqres.full -_scratch_remount +_scratch_cycle_mount echo "Compare files" md5sum $testdir/file1 | _filter_scratch diff --git a/tests/xfs/243 b/tests/xfs/243 index 629173ea2..b616adfdb 100755 --- a/tests/xfs/243 +++ b/tests/xfs/243 @@ -153,7 +153,7 @@ echo "Regular data extents:" test $(_xfs_bmapx_find data $testdir/file3 '000000$') -gt 0 || \ echo "Expected to find a regular data extent" -_scratch_remount +_scratch_cycle_mount echo "Compare files" md5sum $testdir/file1 | _filter_scratch diff --git a/tests/xfs/245 b/tests/xfs/245 index 6da701daa..c7455926d 100755 --- a/tests/xfs/245 +++ b/tests/xfs/245 @@ -62,7 +62,7 @@ mkdir $testdir echo "Create the original files" $XFS_IO_PROG -f -c "falloc 0 256k" -c "pwrite 252k 6k" $testdir/file1 >> $seqres.full -_scratch_remount +_scratch_cycle_mount _cp_reflink $testdir/file1 $testdir/file2 >> $seqres.full echo "Compare files" diff --git a/tests/xfs/248 b/tests/xfs/248 index 50771a100..7e25258af 100755 --- a/tests/xfs/248 +++ b/tests/xfs/248 @@ -67,7 +67,7 @@ nr=64 filesize=$((blksz * nr)) $XFS_IO_PROG -c "cowextsize $((blksz * 16))" $testdir >> $seqres.full _sweave_reflink_regular $blksz $nr $testdir/file1 $testdir/file3 >> $seqres.full -_scratch_remount +_scratch_cycle_mount echo "Compare files" md5sum $testdir/file1 | _filter_scratch @@ -79,7 +79,7 @@ cowoff=$((filesize / 4)) cowsz=$((filesize / 2)) $XFS_IO_PROG -f -c "pwrite -S 0x63 -b $cowsz $cowoff $cowsz" $testdir/file1 >> $seqres.full _pwrite_byte 0x63 $cowoff $cowsz $testdir/file1.chk >> $seqres.full -_scratch_remount +_scratch_cycle_mount echo "Compare files" md5sum $testdir/file1 | _filter_scratch diff --git a/tests/xfs/249 b/tests/xfs/249 index f2088ee59..b82d89cb3 100755 --- a/tests/xfs/249 +++ b/tests/xfs/249 @@ -68,7 +68,7 @@ nr=64 filesize=$((blksz * nr)) $XFS_IO_PROG -c "cowextsize $((blksz * 16))" $testdir >> $seqres.full _sweave_reflink_regular $blksz $nr $testdir/file1 $testdir/file3 >> $seqres.full -_scratch_remount +_scratch_cycle_mount echo "Compare files" md5sum $testdir/file1 | _filter_scratch @@ -80,7 +80,7 @@ cowoff=$((filesize / 4)) cowsz=$((filesize / 2)) $XFS_IO_PROG -d -f -c "pwrite -S 0x63 -b $cowsz $cowoff $cowsz" $testdir/file1 >> $seqres.full _pwrite_byte 0x63 $cowoff $cowsz $testdir/file1.chk >> $seqres.full -_scratch_remount +_scratch_cycle_mount echo "Compare files" md5sum $testdir/file1 | _filter_scratch diff --git a/tests/xfs/251 b/tests/xfs/251 index a2617bb22..4f74772db 100755 --- a/tests/xfs/251 +++ b/tests/xfs/251 @@ -69,7 +69,7 @@ nr=64 filesize=$((blksz * nr)) $XFS_IO_PROG -c "cowextsize $((blksz * 16))" $testdir >> $seqres.full _sweave_reflink_unwritten $blksz $nr $testdir/file1 $testdir/file3 >> $seqres.full -_scratch_remount +_scratch_cycle_mount echo "Compare files" md5sum $testdir/file1 | _filter_scratch @@ -81,7 +81,7 @@ cowoff=$((filesize / 4)) cowsz=$((filesize / 2)) $XFS_IO_PROG -f -c "pwrite -S 0x63 -b $cowsz $cowoff $cowsz" $testdir/file1 >> $seqres.full _pwrite_byte 0x63 $cowoff $cowsz $testdir/file1.chk >> $seqres.full -_scratch_remount +_scratch_cycle_mount echo "Compare files" md5sum $testdir/file1 | _filter_scratch diff --git a/tests/xfs/254 b/tests/xfs/254 index f5cbbfeb3..c8ac41236 100755 --- a/tests/xfs/254 +++ b/tests/xfs/254 @@ -70,7 +70,7 @@ nr=64 filesize=$((blksz * nr)) $XFS_IO_PROG -c "cowextsize $((blksz * 16))" $testdir >> $seqres.full _sweave_reflink_unwritten $blksz $nr $testdir/file1 $testdir/file3 >> $seqres.full -_scratch_remount +_scratch_cycle_mount echo "Compare files" md5sum $testdir/file1 | _filter_scratch @@ -82,7 +82,7 @@ cowoff=$((filesize / 4)) cowsz=$((filesize / 2)) $XFS_IO_PROG -d -f -c "pwrite -S 0x63 -b $cowsz $cowoff $cowsz" $testdir/file1 >> $seqres.full _pwrite_byte 0x63 $cowoff $cowsz $testdir/file1.chk >> $seqres.full -_scratch_remount +_scratch_cycle_mount echo "Compare files" md5sum $testdir/file1 | _filter_scratch diff --git a/tests/xfs/255 b/tests/xfs/255 index 7532d689a..93ad13ebb 100755 --- a/tests/xfs/255 +++ b/tests/xfs/255 @@ -69,7 +69,7 @@ nr=64 filesize=$((blksz * nr)) $XFS_IO_PROG -c "cowextsize $((blksz * 16))" $testdir >> $seqres.full _sweave_reflink_holes $blksz $nr $testdir/file1 $testdir/file3 >> $seqres.full -_scratch_remount +_scratch_cycle_mount echo "Compare files" md5sum $testdir/file1 | _filter_scratch @@ -81,7 +81,7 @@ cowoff=$((filesize / 4)) cowsz=$((filesize / 2)) $XFS_IO_PROG -f -c "pwrite -S 0x63 -b $cowsz $cowoff $cowsz" $testdir/file1 >> $seqres.full _pwrite_byte 0x63 $cowoff $cowsz $testdir/file1.chk >> $seqres.full -_scratch_remount +_scratch_cycle_mount echo "Compare files" md5sum $testdir/file1 | _filter_scratch diff --git a/tests/xfs/256 b/tests/xfs/256 index ea8bd6924..d5cf71b8e 100755 --- a/tests/xfs/256 +++ b/tests/xfs/256 @@ -70,7 +70,7 @@ nr=64 filesize=$((blksz * nr)) $XFS_IO_PROG -c "cowextsize $((blksz * 16))" $testdir >> $seqres.full _sweave_reflink_holes $blksz $nr $testdir/file1 $testdir/file3 >> $seqres.full -_scratch_remount +_scratch_cycle_mount echo "Compare files" md5sum $testdir/file1 | _filter_scratch @@ -82,7 +82,7 @@ cowoff=$((filesize / 4)) cowsz=$((filesize / 2)) $XFS_IO_PROG -d -f -c "pwrite -S 0x63 -b $cowsz $cowoff $cowsz" $testdir/file1 >> $seqres.full _pwrite_byte 0x63 $cowoff $cowsz $testdir/file1.chk >> $seqres.full -_scratch_remount +_scratch_cycle_mount echo "Compare files" md5sum $testdir/file1 | _filter_scratch diff --git a/tests/xfs/257 b/tests/xfs/257 index 05a3d2562..624f5e388 100755 --- a/tests/xfs/257 +++ b/tests/xfs/257 @@ -70,7 +70,7 @@ nr=64 filesize=$((blksz * nr)) $XFS_IO_PROG -c "cowextsize $((blksz * 16))" $testdir >> $seqres.full _sweave_reflink_holes $blksz $nr $testdir/file1 $testdir/file3 >> $seqres.full -_scratch_remount +_scratch_cycle_mount echo "Compare files" md5sum $testdir/file1 | _filter_scratch @@ -83,7 +83,7 @@ cowsz=$((filesize / 2)) _sweave_reflink_holes_delalloc $blksz $nr $testdir/file1 >> $seqres.full $XFS_IO_PROG -f -c "pwrite -S 0x63 -b $cowsz $cowoff $cowsz" $testdir/file1 >> $seqres.full _pwrite_byte 0x63 $cowoff $cowsz $testdir/file1.chk >> $seqres.full -_scratch_remount +_scratch_cycle_mount echo "Compare files" md5sum $testdir/file1 | _filter_scratch diff --git a/tests/xfs/258 b/tests/xfs/258 index ad7cb83f4..243e853b3 100755 --- a/tests/xfs/258 +++ b/tests/xfs/258 @@ -71,7 +71,7 @@ nr=64 filesize=$((blksz * nr)) $XFS_IO_PROG -c "cowextsize $((blksz * 16))" $testdir >> $seqres.full _sweave_reflink_holes $blksz $nr $testdir/file1 $testdir/file3 >> $seqres.full -_scratch_remount +_scratch_cycle_mount echo "Compare files" md5sum $testdir/file1 | _filter_scratch @@ -84,7 +84,7 @@ cowsz=$((filesize / 2)) _sweave_reflink_holes_delalloc $blksz $nr $testdir/file1 >> $seqres.full $XFS_IO_PROG -d -f -c "pwrite -S 0x63 -b $cowsz $cowoff $cowsz" $testdir/file1 >> $seqres.full _pwrite_byte 0x63 $cowoff $cowsz $testdir/file1.chk >> $seqres.full -_scratch_remount +_scratch_cycle_mount echo "Compare files" md5sum $testdir/file1 | _filter_scratch