tmpfs and other misc fixups for xfstests
v3 cover tmpfs and other misc fixups for xfstests
The first and last patches in these series not related to tmpfs support. The first is a resed of a patch to fix ext4/001 to account for different output if delayed allocation is turned off. The last is a cleanup patch to remove _need_to_be_root.
Hugh Dickins (7):
common: _scratch_mkfs_sized() for tmpfs
generic: use mount point instead of device name
generic: require fiemap for generic/009
xfstests: remove dependency on /proc/partitions for generic/312
xfstests: generic/079 and generic/277 requires chattr, not xattrs
xfstests: add executable permission to tests
xfstests: increase tmpfs memory size
Junho Ryu (2):
xfstests: do not unmount tmpfs during remount
generic: do not unmount before calling _check_scratch_fs()
Theodore Ts'o (7):
ext4/001: add output variant for nodelalloc mounts
check: avoid spurious complaints that tests/$FSTYP/group does not
exist
generic: remove the generic/125 test
generic: add _require_odirect to generic/113 and generic/214 Rename _scratch_mount to _scratch_cycle_mount
Rename _test_mount to _test_cycle_mount
xfstests: remove _need_to_be_root
README | 4 - check | 6 + common/config | 4 +- common/defrag | 2 +- common/dump | 2 - common/rc | 69 +++++++-- tests/btrfs/001 | 6 +- tests/btrfs/002 | 1 - tests/btrfs/003 | 1 - tests/btrfs/004 | 1 - tests/btrfs/005 | 2 +- tests/btrfs/007 | 1 - tests/btrfs/011 | 1 - tests/btrfs/017 | 1 - tests/btrfs/025 | 1 - tests/btrfs/026 | 3 +- tests/btrfs/029 | 1 - tests/btrfs/030 | 1 - tests/btrfs/031 | 1 - tests/btrfs/034 | 1 - tests/btrfs/037 | 1 - tests/btrfs/038 | 1 - tests/btrfs/039 | 1 - tests/btrfs/040 | 1 - tests/btrfs/041 | 1 - tests/btrfs/043 | 1 - tests/btrfs/044 | 1 - tests/btrfs/045 | 1 - tests/btrfs/046 | 1 - tests/btrfs/047 | 1 - tests/btrfs/048 | 1 - tests/btrfs/049 | 1 - tests/btrfs/050 | 1 - tests/btrfs/051 | 1 - tests/btrfs/052 | 3 +- tests/btrfs/053 | 1 - tests/btrfs/054 | 1 - tests/btrfs/055 | 1 - tests/btrfs/056 | 1 - tests/btrfs/057 | 1 - tests/btrfs/058 | 1 - tests/btrfs/059 | 1 - tests/btrfs/076 | 1 - tests/btrfs/077 | 1 - tests/btrfs/078 | 1 - tests/btrfs/079 | 1 - tests/btrfs/080 | 1 - tests/btrfs/081 | 3 +- tests/btrfs/083 | 1 - tests/btrfs/084 | 1 - tests/btrfs/085 | 1 - tests/btrfs/086 | 1 - tests/btrfs/087 | 1 - tests/btrfs/088 | 3 +- tests/btrfs/089 | 1 - tests/btrfs/091 | 1 - tests/btrfs/092 | 1 - tests/btrfs/093 | 1 - tests/btrfs/094 | 1 - tests/btrfs/095 | 1 - tests/btrfs/096 | 1 - tests/btrfs/097 | 1 - tests/btrfs/098 | 1 - tests/btrfs/099 | 1 - tests/btrfs/100 | 1 - tests/btrfs/101 | 1 - tests/btrfs/102 | 3 +- tests/btrfs/103 | 3 +- tests/btrfs/104 | 3 +- tests/btrfs/105 | 3 +- tests/btrfs/106 | 3 +- tests/btrfs/107 | 1 - tests/btrfs/108 | 1 - tests/btrfs/109 | 1 - tests/btrfs/110 | 1 - tests/btrfs/111 | 1 - tests/btrfs/112 | 1 - tests/btrfs/113 | 1 - tests/btrfs/114 | 0 tests/btrfs/116 | 1 - tests/btrfs/117 | 1 - tests/ext4/001.cfg | 2 + tests/ext4/001.out.nodelalloc | 337 ++++++++++++++++++++++++++++++++++++++++++ tests/ext4/271 | 1 - tests/ext4/301 | 1 - tests/ext4/302 | 1 - tests/ext4/303 | 1 - tests/ext4/304 | 1 - tests/ext4/307 | 1 - tests/ext4/308 | 1 - tests/f2fs/001 | 2 +- tests/generic/003 | 20 +-- tests/generic/009 | 2 + tests/generic/013 | 2 +- tests/generic/019 | 1 - tests/generic/026 | 1 - tests/generic/029 | 6 +- tests/generic/030 | 6 +- tests/generic/031 | 2 +- tests/generic/032 | 2 +- tests/generic/033 | 2 +- tests/generic/034 | 1 - tests/generic/037 | 1 - tests/generic/038 | 1 - tests/generic/039 | 1 - tests/generic/040 | 1 - tests/generic/041 | 1 - tests/generic/053 | 2 - tests/generic/053.out | 2 - tests/generic/056 | 1 - tests/generic/057 | 1 - tests/generic/058 | 0 tests/generic/059 | 1 - tests/generic/060 | 0 tests/generic/061 | 0 tests/generic/063 | 0 tests/generic/065 | 1 - tests/generic/066 | 1 - tests/generic/071 | 3 +- tests/generic/073 | 1 - tests/generic/079 | 2 +- tests/generic/090 | 1 - tests/generic/092 | 0 tests/generic/093 | 2 - tests/generic/094 | 0 tests/generic/098 | 3 +- tests/generic/101 | 1 - tests/generic/102 | 1 - tests/generic/103 | 0 tests/generic/104 | 1 - tests/generic/106 | 1 - tests/generic/107 | 1 - tests/generic/113 | 1 + tests/generic/116 | 4 +- tests/generic/118 | 4 +- tests/generic/119 | 6 +- tests/generic/121 | 4 +- tests/generic/122 | 4 +- tests/generic/125 | 68 --------- tests/generic/125.out | 7 - tests/generic/134 | 4 +- tests/generic/135 | 17 +-- tests/generic/136 | 4 +- tests/generic/137 | 2 +- tests/generic/138 | 4 +- tests/generic/139 | 4 +- tests/generic/140 | 4 +- tests/generic/142 | 6 +- tests/generic/143 | 6 +- tests/generic/144 | 4 +- tests/generic/145 | 4 +- tests/generic/146 | 4 +- tests/generic/147 | 4 +- tests/generic/148 | 4 +- tests/generic/149 | 4 +- tests/generic/150 | 2 +- tests/generic/151 | 6 +- tests/generic/152 | 6 +- tests/generic/153 | 8 +- tests/generic/154 | 10 +- tests/generic/155 | 10 +- tests/generic/156 | 12 +- tests/generic/161 | 2 +- tests/generic/162 | 2 +- tests/generic/163 | 2 +- tests/generic/164 | 2 +- tests/generic/165 | 2 +- tests/generic/166 | 2 +- tests/generic/167 | 2 +- tests/generic/168 | 2 +- tests/generic/169 | 20 +-- tests/generic/169.out | 6 +- tests/generic/170 | 2 +- tests/generic/171 | 2 +- tests/generic/172 | 2 +- tests/generic/173 | 2 +- tests/generic/174 | 2 +- tests/generic/175 | 2 +- tests/generic/176 | 2 +- tests/generic/177 | 1 - tests/generic/178 | 4 +- tests/generic/179 | 4 +- tests/generic/180 | 4 +- tests/generic/181 | 2 +- tests/generic/182 | 6 +- tests/generic/183 | 4 +- tests/generic/185 | 4 +- tests/generic/186 | 6 +- tests/generic/187 | 6 +- tests/generic/188 | 4 +- tests/generic/189 | 4 +- tests/generic/190 | 4 +- tests/generic/191 | 4 +- tests/generic/192 | 3 +- tests/generic/193 | 1 - tests/generic/194 | 4 +- tests/generic/195 | 4 +- tests/generic/196 | 4 +- tests/generic/197 | 4 +- tests/generic/199 | 4 +- tests/generic/200 | 4 +- tests/generic/201 | 2 +- tests/generic/202 | 4 +- tests/generic/203 | 4 +- tests/generic/205 | 4 +- tests/generic/206 | 4 +- tests/generic/214 | 1 + tests/generic/216 | 4 +- tests/generic/217 | 4 +- tests/generic/218 | 4 +- tests/generic/220 | 4 +- tests/generic/222 | 4 +- tests/generic/226 | 3 +- tests/generic/227 | 4 +- tests/generic/229 | 4 +- tests/generic/230 | 1 - tests/generic/231 | 1 - tests/generic/232 | 1 - tests/generic/233 | 1 - tests/generic/234 | 1 - tests/generic/235 | 1 - tests/generic/237 | 1 - tests/generic/238 | 4 +- tests/generic/242 | 4 +- tests/generic/243 | 4 +- tests/generic/253 | 6 +- tests/generic/254 | 6 +- tests/generic/258 | 3 +- tests/generic/259 | 6 +- tests/generic/261 | 6 +- tests/generic/262 | 6 +- tests/generic/264 | 6 +- tests/generic/265 | 1 - tests/generic/266 | 1 - tests/generic/267 | 1 - tests/generic/268 | 1 - tests/generic/269 | 1 - tests/generic/270 | 1 - tests/generic/271 | 1 - tests/generic/272 | 1 - tests/generic/273 | 2 +- tests/generic/276 | 1 - tests/generic/277 | 6 +- tests/generic/278 | 1 - tests/generic/279 | 1 - tests/generic/281 | 1 - tests/generic/282 | 1 - tests/generic/283 | 1 - tests/generic/284 | 4 +- tests/generic/287 | 4 +- tests/generic/289 | 4 +- tests/generic/290 | 4 +- tests/generic/291 | 4 +- tests/generic/292 | 4 +- tests/generic/293 | 4 +- tests/generic/295 | 4 +- tests/generic/296 | 4 +- tests/generic/299 | 1 - tests/generic/300 | 1 - tests/generic/301 | 4 +- tests/generic/302 | 4 +- tests/generic/303 | 2 +- tests/generic/304 | 2 +- tests/generic/305 | 4 +- tests/generic/306 | 3 +- tests/generic/307 | 4 +- tests/generic/311 | 1 - tests/generic/312 | 13 +- tests/generic/314 | 1 - tests/generic/317 | 4 +- tests/generic/318 | 4 +- tests/generic/319 | 1 - tests/generic/321 | 1 - tests/generic/322 | 1 - tests/generic/324 | 1 - tests/generic/325 | 1 - tests/generic/326 | 4 +- tests/generic/327 | 2 +- tests/generic/328 | 2 +- tests/generic/330 | 4 +- tests/generic/332 | 4 +- tests/generic/333 | 2 +- tests/generic/334 | 2 +- tests/generic/group | 1 - tests/shared/002 | 1 - tests/shared/051 | 1 - tests/shared/272 | 1 - tests/xfs/003 | 2 - tests/xfs/004 | 1 - tests/xfs/067 | 1 - tests/xfs/114 | 1 - tests/xfs/127 | 2 +- tests/xfs/128 | 6 +- tests/xfs/132 | 12 +- tests/xfs/139 | 4 +- tests/xfs/140 | 4 +- tests/xfs/180 | 4 +- tests/xfs/182 | 4 +- tests/xfs/184 | 4 +- tests/xfs/189 | 1 - tests/xfs/192 | 4 +- tests/xfs/193 | 4 +- tests/xfs/198 | 4 +- tests/xfs/200 | 4 +- tests/xfs/204 | 4 +- tests/xfs/207 | 8 +- tests/xfs/208 | 4 +- tests/xfs/209 | 2 +- tests/xfs/211 | 4 +- tests/xfs/212 | 4 +- tests/xfs/213 | 4 +- tests/xfs/214 | 4 +- tests/xfs/215 | 4 +- tests/xfs/218 | 4 +- tests/xfs/219 | 4 +- tests/xfs/221 | 4 +- tests/xfs/223 | 4 +- tests/xfs/224 | 4 +- tests/xfs/225 | 4 +- tests/xfs/226 | 4 +- tests/xfs/228 | 4 +- tests/xfs/230 | 4 +- tests/xfs/231 | 2 +- tests/xfs/232 | 2 +- tests/xfs/233 | 2 +- tests/xfs/239 | 4 +- tests/xfs/241 | 4 +- tests/xfs/243 | 2 +- tests/xfs/245 | 2 +- tests/xfs/248 | 4 +- tests/xfs/249 | 4 +- tests/xfs/251 | 4 +- tests/xfs/254 | 4 +- tests/xfs/255 | 4 +- tests/xfs/256 | 4 +- tests/xfs/257 | 4 +- tests/xfs/258 | 4 +- 337 files changed, 766 insertions(+), 640 deletions(-) mode change 100644 => 100755 tests/btrfs/026 mode change 100644 => 100755 tests/btrfs/104 mode change 100644 => 100755 tests/btrfs/114 create mode 100644 tests/ext4/001.out.nodelalloc mode change 100644 => 100755 tests/generic/058 mode change 100644 => 100755 tests/generic/060 mode change 100644 => 100755 tests/generic/061 mode change 100644 => 100755 tests/generic/063 mode change 100644 => 100755 tests/generic/092 mode change 100644 => 100755 tests/generic/094 mode change 100644 => 100755 tests/generic/103 delete mode 100755 tests/generic/125 delete mode 100644 tests/generic/125.out mode change 100644 => 100755 tests/xfs/140
Signature · 1 line
2.5.0
PATCH v3 1/16 ext4/001: add output variant for nodelalloc mounts
If the delayed allocation is disabled, we need a slightly different output for the delayed allocation portion of the tests.
--- tests/ext4/001.cfg | 2 + tests/ext4/001.out.nodelalloc | 337 ++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 339 insertions(+) create mode 100644 tests/ext4/001.out.nodelalloc
tests/ext4/001.cfg +2 -0
@@ -1,2 +1,4 @@ dax: nozero dioread_nolock: nozero +nodelalloc: nodelalloc +data=journal: nodelalloc
tests/ext4/001.out.nodelalloc new file +337 -0
337 lines not on this page · raw message
Signature · 1 line
2.5.0
Re: [PATCH 01/16] ext4/001: add output variant for nodelalloc mounts
Looks fine,
PATCH v3 2/16 check: avoid spurious complaints that tests/$FSTYP/group does not exist
In reply to Theodore Ts'oThere are no tmpfs specific tests, so tests/tmpfs does not exist. This commit avoids printing a spurious error message when running specifying a group of tests (e.g., "check -g quick"):
DEVICE: test:/tmp
MK2FS OPTIONS:
MOUNT OPTIONS: -o block_validity
./check: line 96: tests/tmpfs/group: No such file or directory
FSTYP -- tmpfs PLATFORM -- Linux/i686 kvm-xfstests 4.5.0-rc2ext4-00002-g6df2762 MKFS_OPTIONS -- test:/scratch
MOUNT_OPTIONS -- -o size=1G test:/scratch /test/scratch
generic/001 [10:31:10][ 5.811742] run fstests generic/001
...
Similar problems have been reported when testing nfs using xfstests.
--- check | 6 ++++++ 1 file changed, 6 insertions(+)
check +6 -0
@@ -90,6 +90,9 @@ get_group_list() grp=$1 for d in $SRC_GROUPS $FSTYP; do + if ! test -d "$SRC_DIR/$d" ; then + continue + fi l=$(sed -n < $SRC_DIR/$d/group \ -e 's/#.*//' \ -e 's/$/ /' \
@@ -105,6 +108,9 @@ get_all_tests() { touch $tmp.list for d in $SRC_GROUPS $FSTYP; do + if ! test -d "$SRC_DIR/$d" ; then + continue + fi ls $SRC_DIR/$d/* | \ grep -v "\..*" | \ grep "^$SRC_DIR/$d/$VALID_TEST_NAME"| \
Signature · 1 line
2.5.0
Re: [PATCH 02/16] check: avoid spurious complaints that tests/$FSTYP/group does not exist
Looks fine,
PATCH v3 3/16 common: _scratch_mkfs_sized() for tmpfs
In reply to Theodore Ts'oFrom: Hugh Dickins <[email protected]>
Enable _scratch_mkfs_sized() for use with tmpfs, so that tests which use this helper can now run.
--- common/rc | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-)
common/rc +14 -1
@@ -783,6 +783,12 @@ _scratch_pool_mkfs() esac } +# Return the amount of free memory available on the system +_free_memory_bytes() +{ + free -b | grep ^Mem | awk '{print $4}' +} + # Create fs of certain size on scratch device # _scratch_mkfs_sized <size in bytes> [optional blocksize] _scratch_mkfs_sized()
@@ -813,7 +819,7 @@ _scratch_mkfs_sized() blocks=`expr $fssize / $blocksize` - if [ "$HOSTOS" == "Linux" ]; then + if [ "$HOSTOS" == "Linux" -a -b "$SCRATCH_DEV" ]; then devsize=`blockdev --getsize64 $SCRATCH_DEV` [ "$fssize" -gt "$devsize" ] && _notrun "Scratch device too small" fi
@@ -849,6 +855,13 @@ _scratch_mkfs_sized() sector_size=`blockdev --getss $SCRATCH_DEV` $MKFS_F2FS_PROG $MKFS_OPTIONS $SCRATCH_DEV `expr $fssize / $sector_size` ;; + tmpfs) + free_mem=`_free_memory_bytes` + if [ "$free_mem" -lt "$fssize" ] ; then + _notrun "Not enough memory ($free_mem) for tmpfs with $fssize bytes" + fi + export MOUNT_OPTIONS="-o size=$fssize $TMPFS_MOUNT_OPTIONS" + ;; *) _notrun "Filesystem $FSTYP not supported in _scratch_mkfs_sized" ;;
Signature · 1 line
2.5.0
Re: [PATCH 03/16] common: _scratch_mkfs_sized() for tmpfs
Looks fine,
PATCH v3 4/16 generic: use mount point instead of device name
In reply to Theodore Ts'oFrom: Hugh Dickins <[email protected]>
A tmpfs mount does not involve any block device, its $SCRATCH_DEV is nothing but a place-holder, so apply 'df' or 'stat' to its mount point $SCRATCH_MNT instead of to $SCRATCH_DEV.
--- tests/generic/273 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
tests/generic/273 +1 -1
@@ -68,7 +68,7 @@ _file_create() cd $SCRATCH_MNT/origin - _disksize=`$DF_PROG -B 1 $SCRATCH_DEV | tail -1 | $AWK_PROG '{ print $5 }'` + _disksize=`$DF_PROG -B 1 $SCRATCH_MNT | tail -1 | $AWK_PROG '{ print $5 }'` _disksize=$(($_disksize / 3)) _num=$(($_disksize / $count / $threads / 4096)) _count=$count
Signature · 1 line
2.5.0
Re: [PATCH 04/16] generic: use mount point instead of device name
Looks fine,
PATCH v3 5/16 generic: remove the generic/125 test
In reply to Theodore Ts'oDave Chinner has pointed out this test is largely pointless:
Perhaps one should question whether generic/125 is actually testing anything useful in the first place.
i.e. it's writing 16k, then truncating it back to 1000 bytes, then reading it with direct IO for 60s to see if it returns the correct data for that entire time.
What, exactly, is going to cause that test to fail?
Keep in mind this was ported from a CXFS test, where the metadata server did the truncation operation (including the data zeroing), but the reads are being done from the client. i.e. it was designed to test whether a remote machine is doing a truncate correctly on a access shared disk.
IMO, I think we just remove the test, src/trunc.c and src/ftrunc.c because it's 60s of testing that doesn't actually provide any value to us.
--- tests/generic/125 | 68 --------------------------------------------------- tests/generic/125.out | 7 ------ tests/generic/group | 1 - 3 files changed, 76 deletions(-) delete mode 100755 tests/generic/125 delete mode 100644 tests/generic/125.out
tests/generic/125 deleted +0 -68
@@ -1,68 +0,0 @@ -#! /bin/bash -# FSQA Test No. 125 -# -# ftruncate test, modified from CXFSQA tests cxfs_ftrunc and cxfs_trunc -# -#----------------------------------------------------------------------- -# Copyright (c) 2006 Silicon Graphics, Inc. All Rights Reserved. -# -# This program is free software; you can redistribute it and/or -# modify it under the terms of the GNU General Public License as -# published by the Free Software Foundation. -# -# This program is distributed in the hope that it would be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program; if not, write the Free Software Foundation, -# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA -# -#----------------------------------------------------------------------- -# - -seq=`basename $0` -seqres=$RESULT_DIR/$seq -echo "QA output created by $seq" - -here=`pwd` -tmp=/tmp/$$ -status=1 # failure is the default! -trap "exit \$status" 0 1 2 3 15 - -# get standard environment, filters and checks -. ./common/rc -. ./common/filter - -# real QA test starts here -_supported_fs generic -_supported_os Linux - -_require_test -_require_user - -TESTDIR=$TEST_DIR/ftrunc -TESTFILE=$TESTDIR/ftrunc.tmp - -[ -d $TESTDIR ] && rm -r $TESTDIR -mkdir $TESTDIR - -# ftrunc must be run as a mortal user. -touch $TESTFILE - -chmod a+rw $TESTDIR -chmod a+rw $TESTFILE - -su $qa_user -c "./src/ftrunc -f $TESTFILE" - -if [ "$?" != "0" ]; then - echo src/ftrunc returned non 0 status! -fi - -src/trunc -f $TESTFILE -if (test $? -eq 0 ) then - status=0 -fi - -exit
tests/generic/125.out deleted +0 -7
@@ -1,7 +0,0 @@ -QA output created by 125 -direct write of 1's into file -buffered write of 2's into file -truncate file -sync buffered data (2's) -iterate direct reads for 60s or until failure... -Passed
tests/generic/group +0 -1
@@ -127,7 +127,6 @@ 122 auto quick clone dedupe 123 perms auto quick 124 pattern auto quick -125 other auto 126 perms auto quick 127 rw auto 128 perms auto quick
Signature · 1 line
2.5.0
Re: [PATCH 05/16] generic: remove the generic/125 test
The pNFS block layout driver works the same way as CXFS here. I don't think I ever triggered this test during the development, though.
I'm indifferent on whether we should keep this test or not, but it defintively makes sense to remove it from the auto group.
Re: [PATCH 05/16] generic: remove the generic/125 test
Quoted 5 lines · Christoph Hellwig
The pNFS block layout driver works the same way as CXFS here. I don't think I ever triggered this test during the development, though.
I'm indifferent on whether we should keep this test or not, but it defintively makes sense to remove it from the auto group.
Ok, if there's some value to using it for pNFS testing, then lets leave it in place, remove the auto group but also add a "pnfs" group tag to it to document what it's useful for.
Sorry to give you the run-around on this one, Ted. Can you resend it?
Cheers,
Dave.
Signature · 2 lines
Dave Chinner [email protected]
Re: [PATCH 05/16] generic: remove the generic/125 test
Quoted 10 lines · Dave Chinner
Quoted 5 lines · Christoph Hellwig
The pNFS block layout driver works the same way as CXFS here. I don't think I ever triggered this test during the development, though.
I'm indifferent on whether we should keep this test or not, but it defintively makes sense to remove it from the auto group.
Ok, if there's some value to using it for pNFS testing, then lets leave it in place, remove the auto group but also add a "pnfs" group tag to it to document what it's useful for.
I think it might only be border line useful. If you two feel better if it's gone I'm fine with killing it.
PATCH v3 6/16 generic: add _require_odirect to generic/113 and generic/214
In reply to Theodore Ts'ogeneric/113 and generic/214 both use O_DIRECT at some stage in their tests, so check O_DIRECT support before running them.
--- tests/generic/113 | 1 + tests/generic/214 | 1 + 2 files changed, 2 insertions(+)
tests/generic/113 +1 -0
@@ -77,6 +77,7 @@ _do_test() _supported_fs generic _supported_os Linux _require_test +_require_odirect [ -x $here/ltp/aio-stress ] || _notrun "aio-stress not built for this platform"
tests/generic/214 +1 -0
@@ -55,6 +55,7 @@ rm -f $seqres.full rm -f $TEST_DIR/ouch* _require_xfs_io_command "falloc" +_require_odirect # Ok, off we go.
Signature · 1 line
2.5.0
Re: [PATCH 06/16] generic: add _require_odirect to generic/113 and generic/214
Looks fine,
PATCH v3 7/16 Rename _scratch_mount to _scratch_cycle_mount
In reply to Theodore Ts'oThis 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'--- common/defrag | 2 +- common/rc | 2 +- tests/btrfs/001 | 6 +++--- tests/btrfs/005 | 2 +- tests/btrfs/026 | 2 +- tests/btrfs/052 | 2 +- tests/btrfs/081 | 2 +- tests/btrfs/088 | 2 +- tests/btrfs/102 | 2 +- tests/btrfs/103 | 2 +- tests/btrfs/104 | 2 +- tests/btrfs/106 | 2 +- tests/f2fs/001 | 2 +- tests/generic/029 | 6 +++--- tests/generic/030 | 6 +++--- tests/generic/031 | 2 +- tests/generic/032 | 2 +- tests/generic/033 | 2 +- tests/generic/071 | 2 +- tests/generic/098 | 2 +- tests/generic/161 | 2 +- tests/generic/162 | 2 +- tests/generic/163 | 2 +- tests/generic/164 | 2 +- tests/generic/165 | 2 +- tests/generic/166 | 2 +- tests/generic/167 | 2 +- tests/generic/168 | 2 +- tests/generic/170 | 2 +- tests/generic/171 | 2 +- tests/generic/172 | 2 +- tests/generic/173 | 2 +- tests/generic/174 | 2 +- tests/generic/175 | 2 +- tests/generic/176 | 2 +- tests/generic/183 | 4 ++-- tests/generic/185 | 4 ++-- tests/generic/186 | 6 +++--- tests/generic/187 | 6 +++--- tests/generic/188 | 4 ++-- tests/generic/189 | 4 ++-- tests/generic/190 | 4 ++-- tests/generic/191 | 4 ++-- tests/generic/194 | 4 ++-- tests/generic/195 | 4 ++-- tests/generic/196 | 4 ++-- tests/generic/197 | 4 ++-- tests/generic/199 | 4 ++-- tests/generic/200 | 4 ++-- tests/generic/201 | 2 +- tests/generic/202 | 4 ++-- tests/generic/203 | 4 ++-- tests/generic/205 | 4 ++-- tests/generic/206 | 4 ++-- tests/generic/216 | 4 ++-- tests/generic/217 | 4 ++-- tests/generic/218 | 4 ++-- tests/generic/220 | 4 ++-- tests/generic/222 | 4 ++-- tests/generic/227 | 4 ++-- tests/generic/229 | 4 ++-- tests/generic/238 | 4 ++-- tests/generic/242 | 4 ++-- tests/generic/243 | 4 ++-- tests/generic/253 | 6 +++--- tests/generic/254 | 6 +++--- tests/generic/259 | 6 +++--- tests/generic/261 | 6 +++--- tests/generic/262 | 6 +++--- tests/generic/264 | 6 +++--- tests/generic/277 | 4 ++-- tests/generic/284 | 4 ++-- tests/generic/287 | 4 ++-- tests/generic/289 | 4 ++-- tests/generic/290 | 4 ++-- tests/generic/291 | 4 ++-- tests/generic/292 | 4 ++-- tests/generic/293 | 4 ++-- tests/generic/295 | 4 ++-- tests/generic/296 | 4 ++-- tests/generic/301 | 4 ++-- tests/generic/302 | 4 ++-- tests/generic/305 | 4 ++-- tests/generic/307 | 4 ++-- tests/generic/326 | 4 ++-- tests/generic/327 | 2 +- tests/generic/328 | 2 +- tests/generic/330 | 4 ++-- tests/generic/332 | 4 ++-- tests/generic/333 | 2 +- tests/generic/334 | 2 +- tests/xfs/127 | 2 +- tests/xfs/139 | 4 ++-- tests/xfs/140 | 4 ++-- tests/xfs/180 | 4 ++-- tests/xfs/182 | 4 ++-- tests/xfs/184 | 4 ++-- tests/xfs/192 | 4 ++-- tests/xfs/193 | 4 ++-- tests/xfs/198 | 4 ++-- tests/xfs/200 | 4 ++-- tests/xfs/204 | 4 ++-- tests/xfs/207 | 8 ++++---- tests/xfs/208 | 4 ++-- tests/xfs/209 | 2 +- tests/xfs/211 | 4 ++-- tests/xfs/212 | 4 ++-- tests/xfs/213 | 4 ++-- tests/xfs/214 | 4 ++-- tests/xfs/215 | 4 ++-- tests/xfs/218 | 4 ++-- tests/xfs/219 | 4 ++-- tests/xfs/221 | 4 ++-- tests/xfs/223 | 4 ++-- tests/xfs/224 | 4 ++-- tests/xfs/225 | 4 ++-- tests/xfs/226 | 4 ++-- tests/xfs/228 | 4 ++-- tests/xfs/230 | 4 ++-- tests/xfs/231 | 2 +- tests/xfs/232 | 2 +- tests/xfs/233 | 2 +- tests/xfs/239 | 4 ++-- tests/xfs/241 | 4 ++-- tests/xfs/243 | 2 +- tests/xfs/245 | 2 +- tests/xfs/248 | 4 ++-- tests/xfs/249 | 4 ++-- tests/xfs/251 | 4 ++-- tests/xfs/254 | 4 ++-- tests/xfs/255 | 4 ++-- tests/xfs/256 | 4 ++-- tests/xfs/257 | 4 ++-- tests/xfs/258 | 4 ++-- 134 files changed, 237 insertions(+), 237 deletions(-)
common/defrag +1 -1
@@ -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`
common/rc +1 -1
@@ -329,7 +329,7 @@ _scratch_unmount() esac } -_scratch_remount() +_scratch_cycle_mount() { _scratch_unmount _scratch_mount
tests/btrfs/001 +3 -3
@@ -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
tests/btrfs/005 +1 -1
@@ -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
tests/btrfs/026 +1 -1
@@ -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
tests/btrfs/052 +1 -1
@@ -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.
tests/btrfs/081 +1 -1
@@ -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
tests/btrfs/088 +1 -1
@@ -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
tests/btrfs/102 +1 -1
@@ -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"
tests/btrfs/103 +1 -1
@@ -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.
tests/btrfs/104 +1 -1
@@ -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
tests/btrfs/106 +1 -1
@@ -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.
tests/f2fs/001 +1 -1
@@ -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
tests/generic/029 +3 -3
@@ -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
tests/generic/030 +3 -3
@@ -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
tests/generic/031 +1 -1
@@ -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
tests/generic/032 +1 -1
@@ -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
tests/generic/033 +1 -1
@@ -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
tests/generic/071 +1 -1
@@ -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.
tests/generic/098 +1 -1
@@ -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
tests/generic/161 +1 -1
@@ -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 &
tests/generic/162 +1 -1
@@ -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
tests/generic/163 +1 -1
@@ -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
tests/generic/164 +1 -1
@@ -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)'
tests/generic/165 +1 -1
@@ -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)'
tests/generic/166 +1 -1
@@ -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() {
tests/generic/167 +1 -1
@@ -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() {
tests/generic/168 +1 -1
@@ -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() {
tests/generic/170 +1 -1
@@ -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() {
tests/generic/171 +1 -1
@@ -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"
tests/generic/172 +1 -1
@@ -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"
tests/generic/173 +1 -1
@@ -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="$?"
tests/generic/174 +1 -1
@@ -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"
tests/generic/175 +1 -1
@@ -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) ))
tests/generic/176 +1 -1
@@ -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))
tests/generic/183 +2 -2
@@ -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
tests/generic/185 +2 -2
@@ -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
tests/generic/186 +3 -3
@@ -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
tests/generic/187 +3 -3
@@ -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
tests/generic/188 +2 -2
@@ -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
tests/generic/189 +2 -2
@@ -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
tests/generic/190 +2 -2
@@ -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
tests/generic/191 +2 -2
@@ -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
tests/generic/194 +2 -2
@@ -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
tests/generic/195 +2 -2
@@ -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
tests/generic/196 +2 -2
@@ -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
tests/generic/197 +2 -2
@@ -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
tests/generic/199 +2 -2
@@ -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
tests/generic/200 +2 -2
@@ -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
tests/generic/201 +1 -1
@@ -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
tests/generic/202 +2 -2
@@ -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
tests/generic/203 +2 -2
@@ -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
tests/generic/205 +2 -2
@@ -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."
tests/generic/206 +2 -2
@@ -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."
tests/generic/216 +2 -2
@@ -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."
tests/generic/217 +2 -2
@@ -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."
tests/generic/218 +2 -2
@@ -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."
tests/generic/220 +2 -2
@@ -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."
tests/generic/222 +2 -2
@@ -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."
tests/generic/227 +2 -2
@@ -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."
tests/generic/229 +2 -2
@@ -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."
tests/generic/238 +2 -2
@@ -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."
tests/generic/242 +2 -2
@@ -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
tests/generic/243 +2 -2
@@ -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
tests/generic/253 +3 -3
@@ -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
tests/generic/254 +3 -3
@@ -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
tests/generic/259 +3 -3
@@ -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
tests/generic/261 +3 -3
@@ -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
tests/generic/262 +3 -3
@@ -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
tests/generic/264 +3 -3
@@ -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
tests/generic/277 +2 -2
@@ -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
tests/generic/284 +2 -2
@@ -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
tests/generic/287 +2 -2
@@ -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
tests/generic/289 +2 -2
@@ -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
tests/generic/290 +2 -2
@@ -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
tests/generic/291 +2 -2
@@ -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
tests/generic/292 +2 -2
@@ -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
tests/generic/293 +2 -2
@@ -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
tests/generic/295 +2 -2
@@ -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
tests/generic/296 +2 -2
@@ -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
tests/generic/301 +2 -2
@@ -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
tests/generic/302 +2 -2
@@ -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
tests/generic/305 +2 -2
@@ -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"
tests/generic/307 +2 -2
@@ -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
tests/generic/326 +2 -2
@@ -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"
tests/generic/327 +1 -1
@@ -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
tests/generic/328 +1 -1
@@ -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
tests/generic/330 +2 -2
@@ -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
tests/generic/332 +2 -2
@@ -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
tests/generic/333 +1 -1
@@ -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() {
tests/generic/334 +1 -1
@@ -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() {
tests/xfs/127 +1 -1
@@ -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
tests/xfs/139 +2 -2
@@ -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
tests/xfs/140 +2 -2
@@ -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"
tests/xfs/180 +2 -2
@@ -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
tests/xfs/182 +2 -2
@@ -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
tests/xfs/184 +2 -2
@@ -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
tests/xfs/192 +2 -2
@@ -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
tests/xfs/193 +2 -2
@@ -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
tests/xfs/198 +2 -2
@@ -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
tests/xfs/200 +2 -2
@@ -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
tests/xfs/204 +2 -2
@@ -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
tests/xfs/207 +4 -4
@@ -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
tests/xfs/208 +2 -2
@@ -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
tests/xfs/209 +1 -1
@@ -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
tests/xfs/211 +2 -2
@@ -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
tests/xfs/212 +2 -2
@@ -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
tests/xfs/213 +2 -2
@@ -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"
tests/xfs/214 +2 -2
@@ -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"
tests/xfs/215 +2 -2
@@ -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
tests/xfs/218 +2 -2
@@ -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
tests/xfs/219 +2 -2
@@ -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
tests/xfs/221 +2 -2
@@ -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
tests/xfs/223 +2 -2
@@ -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
tests/xfs/224 +2 -2
@@ -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
tests/xfs/225 +2 -2
@@ -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
tests/xfs/226 +2 -2
@@ -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
tests/xfs/228 +2 -2
@@ -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
tests/xfs/230 +2 -2
@@ -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
tests/xfs/231 +1 -1
@@ -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
tests/xfs/232 +1 -1
@@ -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
tests/xfs/233 +1 -1
@@ -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
tests/xfs/239 +2 -2
@@ -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
tests/xfs/241 +2 -2
@@ -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
tests/xfs/243 +1 -1
@@ -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
tests/xfs/245 +1 -1
@@ -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"
tests/xfs/248 +2 -2
@@ -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
tests/xfs/249 +2 -2
@@ -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
tests/xfs/251 +2 -2
@@ -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
tests/xfs/254 +2 -2
@@ -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
tests/xfs/255 +2 -2
@@ -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
tests/xfs/256 +2 -2
@@ -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
tests/xfs/257 +2 -2
@@ -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
tests/xfs/258 +2 -2
@@ -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
Signature · 1 line
2.5.0
PATCH v3 8/16 Rename _test_mount to _test_cycle_mount
In reply to Theodore Ts'oThis 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 _test_mount performs "_test_mount ; _test_umount" so mechnically rename this function to _test_cycle_mount. This was done mechnically using the script fragment:
git grep -E "_test_remount" | \
awk -F: '{print $1}' | sort -u | grep -v tests/xfs/189 \
xargs sed -i 's/_test_remount/_test_cycle_mount/g'--- common/rc | 2 +- tests/generic/013 | 2 +- tests/generic/116 | 4 ++-- tests/generic/118 | 4 ++-- tests/generic/119 | 6 +++--- tests/generic/121 | 4 ++-- tests/generic/122 | 4 ++-- tests/generic/134 | 4 ++-- tests/generic/136 | 4 ++-- tests/generic/137 | 2 +- tests/generic/138 | 4 ++-- tests/generic/139 | 4 ++-- tests/generic/140 | 4 ++-- tests/generic/142 | 6 +++--- tests/generic/143 | 6 +++--- tests/generic/144 | 4 ++-- tests/generic/145 | 4 ++-- tests/generic/146 | 4 ++-- tests/generic/147 | 4 ++-- tests/generic/148 | 4 ++-- tests/generic/149 | 4 ++-- tests/generic/150 | 2 +- tests/generic/151 | 6 +++--- tests/generic/152 | 6 +++--- tests/generic/153 | 8 ++++---- tests/generic/154 | 10 +++++----- tests/generic/155 | 10 +++++----- tests/generic/156 | 12 ++++++------ tests/generic/178 | 4 ++-- tests/generic/179 | 4 ++-- tests/generic/180 | 4 ++-- tests/generic/181 | 2 +- tests/generic/182 | 6 +++--- tests/generic/303 | 2 +- tests/generic/304 | 2 +- tests/xfs/128 | 6 +++--- tests/xfs/132 | 12 ++++++------ 37 files changed, 90 insertions(+), 90 deletions(-)
common/rc +1 -1
@@ -354,7 +354,7 @@ _test_unmount() fi } -_test_remount() +_test_cycle_mount() { _test_unmount _test_mount
tests/generic/013 +1 -1
@@ -35,7 +35,7 @@ _cleanup() { cd / # we might get here with a RO FS - _test_remount + _test_cycle_mount # now remove fsstress directory. # N.B. rm(1) on IRIX can find problems when building up a long pathname # such that what it has is greater the 1024 chars and will
tests/generic/116 +2 -2
@@ -56,7 +56,7 @@ echo "Create the original files" blksz=65536 _pwrite_byte 0x61 $((blksz * 2)) $((blksz * 6)) $testdir/file1 >> $seqres.full _pwrite_byte 0x61 $((blksz * 2)) $((blksz * 6)) $testdir/file2 >> $seqres.full -_test_remount +_test_cycle_mount md5sum $testdir/file1 | _filter_test_dir md5sum $testdir/file2 | _filter_test_dir
@@ -68,7 +68,7 @@ echo "Reflink the middle blocks together" free_before=$(stat -f -c '%a' $testdir) _reflink_range $testdir/file1 $((blksz * 4)) $testdir/file2 \ $((blksz * 4)) $((blksz * 2)) >> $seqres.full -_test_remount +_test_cycle_mount free_after=$(stat -f -c '%a' $testdir) echo "freesp changed by $free_before -> $free_after" >> $seqres.full
tests/generic/118 +2 -2
@@ -57,7 +57,7 @@ echo "Create the original files" blksz=65536 _pwrite_byte 0x61 $((blksz * 2)) $((blksz * 6)) $testdir/file1 >> $seqres.full _pwrite_byte 0x62 $((blksz * 2)) $((blksz * 6)) $testdir/file2 >> $seqres.full -_test_remount +_test_cycle_mount md5sum $testdir/file1 | _filter_test_dir md5sum $testdir/file2 | _filter_test_dir
@@ -69,7 +69,7 @@ echo "Reflink the middle blocks together" free_before=$(stat -f -c '%a' $testdir) _reflink_range $testdir/file1 $((blksz * 4)) $testdir/file2 \ $((blksz * 4)) $((blksz * 2)) >> $seqres.full -_test_remount +_test_cycle_mount free_after=$(stat -f -c '%a' $testdir) echo "freesp changed by $free_before -> $free_after" >> $seqres.full
tests/generic/119 +3 -3
@@ -60,7 +60,7 @@ _pwrite_byte 0x61 0 $((blksz * 8)) $testdir/file1 >> $seqres.full _pwrite_byte 0x62 0 $((blksz * 8)) $testdir/file2 >> $seqres.full _pwrite_byte 0x63 0 $((blksz * 8)) $testdir/file3 >> $seqres.full _pwrite_byte 0x64 0 $((blksz * 8)) $testdir/file4 >> $seqres.full -_test_remount +_test_cycle_mount md5sum $testdir/file1 | _filter_test_dir md5sum $testdir/file2 | _filter_test_dir
@@ -80,7 +80,7 @@ echo "Reflink the first four blocks together, 1-2 3-4" free_before=$(stat -f -c '%a' $testdir) _reflink_range $testdir/file1 0 $testdir/file2 0 $((blksz * 4)) >> $seqres.full _reflink_range $testdir/file3 0 $testdir/file4 0 $((blksz * 4)) >> $seqres.full -_test_remount +_test_cycle_mount free_after=$(stat -f -c '%a' $testdir) echo "freesp changed by $free_before -> $free_after" >> $seqres.full
@@ -112,7 +112,7 @@ echo "Reflink the first two blocks together, 1-3 1-4" free_before=$(stat -f -c '%a' $testdir) _reflink_range $testdir/file1 0 $testdir/file3 0 $((blksz * 2)) >> $seqres.full _reflink_range $testdir/file1 0 $testdir/file4 0 $((blksz * 2)) >> $seqres.full -_test_remount +_test_cycle_mount free_after=$(stat -f -c '%a' $testdir) echo "freesp changed by $free_before -> $free_after" >> $seqres.full
tests/generic/121 +2 -2
@@ -56,7 +56,7 @@ echo "Create the original files" blksz=65536 _pwrite_byte 0x61 $((blksz * 2)) $((blksz * 6)) $testdir/file1 >> $seqres.full _pwrite_byte 0x61 $((blksz * 2)) $((blksz * 6)) $testdir/file2 >> $seqres.full -_test_remount +_test_cycle_mount md5sum $testdir/file1 | _filter_test_dir md5sum $testdir/file2 | _filter_test_dir
@@ -68,7 +68,7 @@ echo "Dedupe the middle blocks together" free_before=$(stat -f -c '%a' $testdir) _dedupe_range $testdir/file1 $((blksz * 4)) $testdir/file2 \ $((blksz * 4)) $((blksz * 2)) >> $seqres.full -_test_remount +_test_cycle_mount free_after=$(stat -f -c '%a' $testdir) echo "freesp changed by $free_before -> $free_after" >> $seqres.full
tests/generic/122 +2 -2
@@ -56,7 +56,7 @@ echo "Create the original files" blksz=65536 _pwrite_byte 0x61 $((blksz * 2)) $((blksz * 6)) $testdir/file1 >> $seqres.full _pwrite_byte 0x62 $((blksz * 2)) $((blksz * 6)) $testdir/file2 >> $seqres.full -_test_remount +_test_cycle_mount md5sum $testdir/file1 | _filter_test_dir md5sum $testdir/file2 | _filter_test_dir
@@ -68,7 +68,7 @@ echo "(Fail to) dedupe the middle blocks together" free_before=$(stat -f -c '%a' $testdir) _dedupe_range $testdir/file1 $((blksz * 4)) $testdir/file2 \ $((blksz * 4)) $((blksz * 2)) >> $seqres.full -_test_remount +_test_cycle_mount free_after=$(stat -f -c '%a' $testdir) echo "freesp changed by $free_before -> $free_after" >> $seqres.full
tests/generic/134 +2 -2
@@ -62,7 +62,7 @@ _pwrite_byte 0x61 0 $((blksz + 37)) $testdir/file1 >> $seqres.full _pwrite_byte 0x61 0 $((blksz + 37)) $testdir/file2 >> $seqres.full _pwrite_byte 0x62 0 $((blksz + 37)) $testdir/file3 >> $seqres.full _pwrite_byte 0x62 0 $((blksz + 37)) $testdir/file4 >> $seqres.full -_test_remount +_test_cycle_mount md5sum $testdir/file1 | _filter_test_dir md5sum $testdir/file2 | _filter_test_dir
@@ -84,7 +84,7 @@ test ${c3} = ${c4} || echo "file3 and file4 should match" echo "Reflink the last blocks together, 1-2 1-3" _reflink_range $testdir/file1 $blksz $testdir/file2 $blksz 37 >> $seqres.full _reflink_range $testdir/file1 $blksz $testdir/file3 $blksz 37 >> $seqres.full -_test_remount +_test_cycle_mount md5sum $testdir/file1 | _filter_test_dir md5sum $testdir/file2 | _filter_test_dir
tests/generic/136 +2 -2
@@ -62,7 +62,7 @@ _pwrite_byte 0x61 0 $((blksz + 37)) $testdir/file1 >> $seqres.full _pwrite_byte 0x61 0 $((blksz + 37)) $testdir/file2 >> $seqres.full _pwrite_byte 0x62 0 $((blksz + 37)) $testdir/file3 >> $seqres.full _pwrite_byte 0x62 0 $((blksz + 37)) $testdir/file4 >> $seqres.full -_test_remount +_test_cycle_mount md5sum $testdir/file1 | _filter_test_dir md5sum $testdir/file2 | _filter_test_dir
@@ -86,7 +86,7 @@ echo "1->2" _dedupe_range $testdir/file1 $blksz $testdir/file2 $blksz 37 >> $seqres.full echo "1->3" _dedupe_range $testdir/file1 $blksz $testdir/file3 $blksz 37 >> $seqres.full -_test_remount +_test_cycle_mount md5sum $testdir/file1 | _filter_test_dir md5sum $testdir/file2 | _filter_test_dir
tests/generic/137 +1 -1
@@ -86,7 +86,7 @@ seq 1 $((nr_blks / 7)) | while read nr; do $((nr * 7 * blksz)) $blksz >> $seqres.full 2>&1 done -_test_remount +_test_cycle_mount echo "Check block mappings" md5sum $testdir/file1 | _filter_test_dir
tests/generic/138 +2 -2
@@ -59,7 +59,7 @@ blksz=65536 _pwrite_byte 0x61 0 $((blksz * 48 - 3)) $testdir/file1 >> $seqres.full _cp_reflink $testdir/file1 $testdir/file2 >> $seqres.full _pwrite_byte 0x61 0 $((blksz * 48 - 3)) $testdir/file3 >> $seqres.full -_test_remount +_test_cycle_mount echo "Compare files" md5sum $testdir/file1 | _filter_test_dir
@@ -79,7 +79,7 @@ _pwrite_byte 0x62 $((blksz * 16 - 34)) 17 $testdir/file3 >> $seqres.full _pwrite_byte 0x62 $((blksz * 48 - 8)) 17 $testdir/file2 >> $seqres.full _pwrite_byte 0x62 $((blksz * 48 - 8)) 17 $testdir/file3 >> $seqres.full -_test_remount +_test_cycle_mount echo "Compare files" md5sum $testdir/file1 | _filter_test_dir
tests/generic/139 +2 -2
@@ -60,7 +60,7 @@ blksz=65536 _pwrite_byte 0x61 0 $((blksz * 48 - 3)) $testdir/file1 >> $seqres.full _cp_reflink $testdir/file1 $testdir/file2 >> $seqres.full _pwrite_byte 0x61 0 $((blksz * 48 - 3)) $testdir/file3 >> $seqres.full -_test_remount +_test_cycle_mount echo "Compare files" md5sum $testdir/file1 | _filter_test_dir
@@ -80,7 +80,7 @@ _pwrite_byte 0x62 $((blksz * 16 - 512)) 512 $testdir/file3 -d >> $seqres.full _pwrite_byte 0x62 $((blksz * 48)) $blksz $testdir/file2 -d >> $seqres.full _pwrite_byte 0x62 $((blksz * 48)) $blksz $testdir/file3 -d >> $seqres.full -_test_remount +_test_cycle_mount echo "Compare files" md5sum $testdir/file1 | _filter_test_dir
tests/generic/140 +2 -2
@@ -59,7 +59,7 @@ blksz=65536 _pwrite_byte 0x61 0 $((blksz * 48 - 3)) $testdir/file1 >> $seqres.full _cp_reflink $testdir/file1 $testdir/file2 >> $seqres.full _pwrite_byte 0x61 0 $((blksz * 48 - 3)) $testdir/file3 >> $seqres.full -_test_remount +_test_cycle_mount echo "Compare files" md5sum $testdir/file1 | _filter_test_dir
@@ -79,7 +79,7 @@ _mwrite_byte 0x62 $((blksz * 16 - 34)) 17 $((blksz * 48 - 3)) $testdir/file3 >> _mwrite_byte 0x62 $((blksz * 48 - 20)) 17 $((blksz * 48 - 3)) $testdir/file2 >> $seqres.full _mwrite_byte 0x62 $((blksz * 48 - 20)) 17 $((blksz * 48 - 3)) $testdir/file3 >> $seqres.full -_test_remount +_test_cycle_mount echo "Compare files" md5sum $testdir/file1 | _filter_test_dir
tests/generic/142 +3 -3
@@ -61,7 +61,7 @@ blksz=65536 nr=9 filesize=$((blksz * nr)) _pwrite_byte 0x61 0 $((blksz * 256)) $testdir/file1 >> $seqres.full -_test_remount +_test_cycle_mount md5sum $testdir/file1 | _filter_test_dir csum=$(_md5_checksum $testdir/file1)
@@ -70,13 +70,13 @@ echo "Create the reflink copies" seq 2 $nr | while read i; do _cp_reflink $testdir/file1 $testdir/file$i done -_test_remount +_test_cycle_mount echo "Rewrite the copies" seq 2 $nr | while read i; do _pwrite_byte 0x62 0 $((blksz * 256)) $testdir/file$i >> $seqres.full done -_test_remount +_test_cycle_mount echo "Examine original file" md5sum $testdir/file1 | _filter_test_dir
tests/generic/143 +3 -3
@@ -62,7 +62,7 @@ blksz=65536 nr=9 filesize=$((blksz * nr)) _pwrite_byte 0x61 0 $((blksz * 256)) $testdir/file1 >> $seqres.full -_test_remount +_test_cycle_mount md5sum $testdir/file1 | _filter_test_dir csum=$(_md5_checksum $testdir/file1)
@@ -71,13 +71,13 @@ echo "Create the reflink copies" seq 2 $nr | while read i; do _cp_reflink $testdir/file1 $testdir/file$i done -_test_remount +_test_cycle_mount echo "Rewrite the copies" seq 2 $nr | while read i; do _pwrite_byte 0x62 0 $((blksz * 256)) $testdir/file$i -d >> $seqres.full done -_test_remount +_test_cycle_mount echo "Examine original file" md5sum $testdir/file1 | _filter_test_dir
tests/generic/144 +2 -2
@@ -72,7 +72,7 @@ _reflink_range $testdir/file1 $((blksz * 3)) $testdir/file4 $((blksz * 3)) \ $blksz >> $seqres.full _cp_reflink $testdir/file1 $testdir/file5 -_test_remount +_test_cycle_mount echo "Compare sections" md5sum $testdir/file1 | _filter_test_dir
@@ -116,7 +116,7 @@ echo "falloc everything" $XFS_IO_PROG -f -c "falloc 0 $((blksz * 5))" $testdir/file2 >> $seqres.full $XFS_IO_PROG -f -c "falloc 0 $((blksz * 5))" $testdir/file3 >> $seqres.full $XFS_IO_PROG -f -c "falloc 0 $((blksz * 5))" $testdir/file4 >> $seqres.full -_test_remount +_test_cycle_mount echo "Compare files" md5sum $testdir/file1 | _filter_test_dir
tests/generic/145 +2 -2
@@ -83,7 +83,7 @@ _pwrite_byte 0x00 $((blksz * 2)) $blksz $testdir/file3.chk >> $seqres.full _pwrite_byte 0x61 0 $blksz $testdir/file4.chk >> $seqres.full _pwrite_byte 0x62 $blksz $blksz $testdir/file4.chk >> $seqres.full _pwrite_byte 0x00 $((blksz * 2)) $blksz $testdir/file4.chk >> $seqres.full -_test_remount +_test_cycle_mount md5sum $testdir/file1 | _filter_test_dir md5sum $testdir/file2 | _filter_test_dir
@@ -109,7 +109,7 @@ echo "fcollapse files" $XFS_IO_PROG -f -c "fcollapse 0 $blksz" $testdir/file2 $XFS_IO_PROG -f -c "fcollapse $blksz $blksz" $testdir/file3 $XFS_IO_PROG -f -c "fcollapse $((blksz * 2)) $blksz" $testdir/file4 -_test_remount +_test_cycle_mount echo "Compare files" md5sum $testdir/file1 | _filter_test_dir
tests/generic/146 +2 -2
@@ -77,7 +77,7 @@ _pwrite_byte 0x63 $((blksz * 2)) $blksz $testdir/file3.chk >> $seqres.full _pwrite_byte 0x61 0 $blksz $testdir/file4.chk >> $seqres.full _pwrite_byte 0x62 $blksz $blksz $testdir/file4.chk >> $seqres.full _pwrite_byte 0x00 $((blksz * 2)) $blksz $testdir/file4.chk >> $seqres.full -_test_remount +_test_cycle_mount md5sum $testdir/file1 | _filter_test_dir md5sum $testdir/file2 | _filter_test_dir
@@ -103,7 +103,7 @@ echo "fpunch files" $XFS_IO_PROG -f -c "fpunch 0 $blksz" $testdir/file2 $XFS_IO_PROG -f -c "fpunch $blksz $blksz" $testdir/file3 $XFS_IO_PROG -f -c "fpunch $((blksz * 2)) $blksz" $testdir/file4 -_test_remount +_test_cycle_mount echo "Compare files" md5sum $testdir/file1 | _filter_test_dir
tests/generic/147 +2 -2
@@ -80,7 +80,7 @@ _pwrite_byte 0x61 0 $blksz $testdir/file4.chk >> $seqres.full _pwrite_byte 0x62 $blksz $blksz $testdir/file4.chk >> $seqres.full _pwrite_byte 0x00 $((blksz * 2)) $blksz $testdir/file4.chk >> $seqres.full _pwrite_byte 0x63 $((blksz * 3)) $blksz $testdir/file4.chk >> $seqres.full -_test_remount +_test_cycle_mount md5sum $testdir/file1 | _filter_test_dir md5sum $testdir/file2 | _filter_test_dir
@@ -106,7 +106,7 @@ echo "finsert files" $XFS_IO_PROG -f -c "finsert 0 $blksz" $testdir/file2 $XFS_IO_PROG -f -c "finsert $blksz $blksz" $testdir/file3 $XFS_IO_PROG -f -c "finsert $((blksz * 2)) $blksz" $testdir/file4 -_test_remount +_test_cycle_mount echo "Compare files" md5sum $testdir/file1 | _filter_test_dir
tests/generic/148 +2 -2
@@ -71,7 +71,7 @@ _pwrite_byte 0x62 $blksz 34 $testdir/file2.chk >> $seqres.full _pwrite_byte 0x61 0 $blksz $testdir/file3.chk >> $seqres.full _pwrite_byte 0x62 $blksz 37 $testdir/file3.chk >> $seqres.full _pwrite_byte 0x00 $((blksz + 37)) 3 $testdir/file3.chk >> $seqres.full -_test_remount +_test_cycle_mount md5sum $testdir/file1 | _filter_test_dir md5sum $testdir/file2 | _filter_test_dir
@@ -90,7 +90,7 @@ test ${c2} = ${c3} || echo "file2 and file3 should match" echo "truncate files" $XFS_IO_PROG -f -c "truncate $((blksz + 34))" $testdir/file2 $XFS_IO_PROG -f -c "truncate $((blksz + 40))" $testdir/file3 -_test_remount +_test_cycle_mount echo "Compare files" md5sum $testdir/file1 | _filter_test_dir
tests/generic/149 +2 -2
@@ -77,7 +77,7 @@ _pwrite_byte 0x63 $((blksz * 2)) $blksz $testdir/file3.chk >> $seqres.full _pwrite_byte 0x61 0 $blksz $testdir/file4.chk >> $seqres.full _pwrite_byte 0x62 $blksz $blksz $testdir/file4.chk >> $seqres.full _pwrite_byte 0x00 $((blksz * 2)) $blksz $testdir/file4.chk >> $seqres.full -_test_remount +_test_cycle_mount md5sum $testdir/file1 | _filter_test_dir md5sum $testdir/file2 | _filter_test_dir
@@ -103,7 +103,7 @@ echo "fzero files" $XFS_IO_PROG -f -c "fzero 0 $blksz" $testdir/file2 $XFS_IO_PROG -f -c "fzero $blksz $blksz" $testdir/file3 $XFS_IO_PROG -f -c "fzero $((blksz * 2)) $blksz" $testdir/file4 -_test_remount +_test_cycle_mount echo "Compare files" md5sum $testdir/file1 | _filter_test_dir
tests/generic/150 +1 -1
@@ -69,7 +69,7 @@ echo "Create the reflink copies" for i in `seq 2 $nr`; do _cp_reflink $testdir/file1 $testdir/file.$i done -_test_remount +_test_cycle_mount free_blocks1=$(stat -f $testdir -c '%f') _within_tolerance "free blocks after reflink" $free_blocks1 $free_blocks0 $margin -v
tests/generic/151 +3 -3
@@ -74,17 +74,17 @@ for i in `seq 2 $nr`; do _cp_reflink $testdir/file1 $testdir/file.$i done _cp_reflink $testdir/file1 $testdir/survivor -_test_remount +_test_cycle_mount free_blocks1=$(stat -f $testdir -c '%f') echo "Delete most of the files" rm -rf $testdir/file* -_test_remount +_test_cycle_mount free_blocks2=$(stat -f $testdir -c '%f') echo "Delete all the files" rm -rf $testdir/* -_test_remount +_test_cycle_mount free_blocks3=$(stat -f $testdir -c '%f') #echo $free_blocks0 $free_blocks1 $free_blocks2 $free_blocks3
tests/generic/152 +3 -3
@@ -74,14 +74,14 @@ echo "Create the reflink copies" for i in `seq 2 $nr`; do _cp_reflink $testdir/file1 $testdir/file$i done -_test_remount +_test_cycle_mount free_blocks1=$(stat -f $testdir -c '%f') echo "Punch most of the blocks" $XFS_IO_PROG -f -c "fpunch 0 $sz" $testdir/file2 $XFS_IO_PROG -f -c "fpunch 0 $((sz / 2))" $testdir/file3 $XFS_IO_PROG -f -c "fpunch $((sz / 2)) $((sz / 2))" $testdir/file4 -_test_remount +_test_cycle_mount free_blocks2=$(stat -f $testdir -c '%f') echo "Punch all the files"
@@ -89,7 +89,7 @@ for i in `seq 2 $nr`; do $XFS_IO_PROG -f -c "fpunch 0 $sz" $testdir/file$i done $XFS_IO_PROG -f -c "fpunch 0 $sz" $testdir/file1 -_test_remount +_test_cycle_mount free_blocks3=$(stat -f $testdir -c '%f') #echo $free_blocks0 $free_blocks1 $free_blocks2 $free_blocks3
tests/generic/153 +4 -4
@@ -68,27 +68,27 @@ free_blocks0=$(stat -f $testdir -c '%f') nr=4 filesize=$((blksz * nr)) _pwrite_byte 0x61 0 $sz $testdir/file1 >> $seqres.full -_test_remount +_test_cycle_mount echo "Create the reflink copies" for i in `seq 2 $nr`; do _cp_reflink $testdir/file1 $testdir/file$i done -_test_remount +_test_cycle_mount free_blocks1=$(stat -f $testdir -c '%f') echo "Collapse most of the blocks" $XFS_IO_PROG -f -c "fcollapse 0 $(((blks - 1) * blksz))" $testdir/file2 $XFS_IO_PROG -f -c "fcollapse 0 $((sz / 2))" $testdir/file3 $XFS_IO_PROG -f -c "fcollapse $((sz / 2)) $(( ((blks / 2) - 1) * blksz))" $testdir/file4 -_test_remount +_test_cycle_mount free_blocks2=$(stat -f $testdir -c '%f') echo "Collpase nearly all the files" $XFS_IO_PROG -f -c "fcollapse 0 $(( ((blks / 2) - 1) * blksz))" $testdir/file3 $XFS_IO_PROG -f -c "fcollapse 0 $((sz / 2))" $testdir/file4 $XFS_IO_PROG -f -c "fcollapse 0 $(( (blks - 1) * blksz))" $testdir/file1 -_test_remount +_test_cycle_mount free_blocks3=$(stat -f $testdir -c '%f') #echo $free_blocks0 $free_blocks1 $free_blocks2 $free_blocks3
tests/generic/154 +5 -5
@@ -67,32 +67,32 @@ nr=4 filesize=$((blksz * nr)) sz=$((blks * blksz)) _pwrite_byte 0x61 0 $sz $testdir/file1 >> $seqres.full -_test_remount +_test_cycle_mount echo "Create the reflink copies" for i in `seq 2 $nr`; do _cp_reflink $testdir/file1 $testdir/file$i done -_test_remount +_test_cycle_mount free_blocks1=$(stat -f $testdir -c '%f') echo "Rewrite some of the blocks" _pwrite_byte 0x62 0 $sz $testdir/file2 >> $seqres.full _pwrite_byte 0x63 0 $((sz / 2)) $testdir/file3 >> $seqres.full _pwrite_byte 0x64 $((sz / 2)) $((sz / 2)) $testdir/file4 >> $seqres.full -_test_remount +_test_cycle_mount free_blocks2=$(stat -f $testdir -c '%f') echo "Rewrite all the files" _pwrite_byte 0x62 0 $sz $testdir/file2 >> $seqres.full _pwrite_byte 0x63 0 $sz $testdir/file3 >> $seqres.full _pwrite_byte 0x64 0 $sz $testdir/file4 >> $seqres.full -_test_remount +_test_cycle_mount free_blocks3=$(stat -f $testdir -c '%f') echo "Rewrite the original file" _pwrite_byte 0x65 0 $sz $testdir/file1 >> $seqres.full -_test_remount +_test_cycle_mount free_blocks4=$(stat -f $testdir -c '%f') #echo $free_blocks0 $free_blocks1 $free_blocks2 $free_blocks3 $free_blocks4
tests/generic/155 +5 -5
@@ -72,32 +72,32 @@ free_blocks0=$(stat -f $testdir -c '%f') nr=4 filesize=$((blksz * nr)) _pwrite_byte 0x61 0 $sz $testdir/file1 >> $seqres.full -_test_remount +_test_cycle_mount echo "Create the reflink copies" for i in `seq 2 $nr`; do _cp_reflink $testdir/file1 $testdir/file$i done -_test_remount +_test_cycle_mount free_blocks1=$(stat -f $testdir -c '%f') echo "Rewrite some of the blocks" $XFS_IO_PROG -f -c "fzero 0 $sz" $testdir/file2 >> $seqres.full _pwrite_byte 0x63 0 $((sz / 2)) $testdir/file3 -d >> $seqres.full _mwrite_byte 0x64 $((sz / 2)) $((sz / 2)) $sz $testdir/file4 >> $seqres.full -_test_remount +_test_cycle_mount free_blocks2=$(stat -f $testdir -c '%f') echo "Rewrite all the files" _pwrite_byte 0x62 0 $sz $testdir/file2 -d >> $seqres.full _mwrite_byte 0x63 0 $sz $sz $testdir/file3 >> $seqres.full $XFS_IO_PROG -f -c "fzero 0 $sz" $testdir/file4 >> $seqres.full -_test_remount +_test_cycle_mount free_blocks3=$(stat -f $testdir -c '%f') echo "Rewrite the original file" _pwrite_byte 0x65 0 $sz $testdir/file1 >> $seqres.full -_test_remount +_test_cycle_mount free_blocks4=$(stat -f $testdir -c '%f') #echo $free_blocks0 $free_blocks1 $free_blocks2 $free_blocks3 $free_blocks4
tests/generic/156 +6 -6
@@ -79,34 +79,34 @@ free_blocks0=$(stat -f $testdir -c '%f') nr=4 filesize=$((blksz * nr)) _pwrite_byte 0x61 0 $sz $testdir/file1 >> $seqres.full -_test_remount +_test_cycle_mount echo "Create the reflink copies" for i in `seq 2 $nr`; do _cp_reflink $testdir/file1 $testdir/file$i done -_test_remount +_test_cycle_mount free_blocks1=$(stat -f $testdir -c '%f') echo "funshare part of a file" $XFS_IO_PROG -f -c "falloc 0 $((sz / 2))" $testdir/file2 -_test_remount +_test_cycle_mount echo "funshare some of the copies" $XFS_IO_PROG -f -c "falloc 0 $sz" $testdir/file2 $XFS_IO_PROG -f -c "falloc 0 $sz" $testdir/file3 -_test_remount +_test_cycle_mount free_blocks2=$(stat -f $testdir -c '%f') echo "funshare the rest of the files" $XFS_IO_PROG -f -c "falloc 0 $sz" $testdir/file4 $XFS_IO_PROG -f -c "falloc 0 $sz" $testdir/file1 -_test_remount +_test_cycle_mount free_blocks3=$(stat -f $testdir -c '%f') echo "Rewrite the original file" _pwrite_byte 0x65 0 $sz $testdir/file1 >> $seqres.full -_test_remount +_test_cycle_mount free_blocks4=$(stat -f $testdir -c '%f') #echo $free_blocks0 $free_blocks1 $free_blocks2 $free_blocks3 $free_blocks4
tests/generic/178 +2 -2
@@ -59,7 +59,7 @@ filesize=$((blksz * nr)) _pwrite_byte 0x61 0 $filesize $testdir/file1 >> $seqres.full _cp_reflink $testdir/file1 $testdir/file2 -_test_remount +_test_cycle_mount md5sum $testdir/file1 | _filter_test_dir md5sum $testdir/file2 | _filter_test_dir
@@ -67,7 +67,7 @@ md5sum $testdir/file2 | _filter_test_dir echo "Write and punch" _pwrite_byte 0x62 0 $((blksz * 256)) $testdir/file2 >> $seqres.full $XFS_IO_PROG -f -c "fpunch $blksz $((blksz * 254))" $testdir/file2 -_test_remount +_test_cycle_mount echo "Compare results" md5sum $testdir/file1 | _filter_test_dir
tests/generic/179 +2 -2
@@ -63,7 +63,7 @@ _cp_reflink $testdir/file1 $testdir/file2 _pwrite_byte 0x61 0 $((blksz * 3)) $testdir/file2.chk >> $seqres.full _pwrite_byte 0x00 $((blksz - 17)) $((blksz + 17)) $testdir/file2.chk >> $seqres.full -_test_remount +_test_cycle_mount md5sum $testdir/file1 | _filter_test_dir md5sum $testdir/file2 | _filter_test_dir
@@ -76,7 +76,7 @@ test ${c1} = ${c2} || echo "file1 and file2 should match" echo "fpunch files" $XFS_IO_PROG -f -c "fpunch $((blksz - 17)) $((blksz + 17))" $testdir/file2 -_test_remount +_test_cycle_mount echo "Compare files" md5sum $testdir/file1 | _filter_test_dir
tests/generic/180 +2 -2
@@ -63,7 +63,7 @@ _cp_reflink $testdir/file1 $testdir/file2 _pwrite_byte 0x61 0 $((blksz * 3)) $testdir/file2.chk >> $seqres.full _pwrite_byte 0x00 $((blksz - 17)) $((blksz + 17)) $testdir/file2.chk >> $seqres.full -_test_remount +_test_cycle_mount md5sum $testdir/file1 | _filter_test_dir md5sum $testdir/file2 | _filter_test_dir
@@ -76,7 +76,7 @@ test ${c1} = ${c2} || echo "file1 and file2 should match" echo "fzero files" $XFS_IO_PROG -f -c "fzero $((blksz - 17)) $((blksz + 17))" $testdir/file2 -_test_remount +_test_cycle_mount echo "Compare files" md5sum $testdir/file1 | _filter_test_dir
tests/generic/181 +1 -1
@@ -61,7 +61,7 @@ _pwrite_byte 0x62 0 $((blksz * 256)) $testdir/file2 >> $seqres.full _pwrite_byte 0x62 0 $((blksz * 2)) $testdir/file2.chk >> $seqres.full _pwrite_byte 0x61 $((blksz * 2)) $((blksz * 255)) $testdir/file2.chk >> $seqres.full _reflink_range $testdir/file1 $blksz $testdir/file2 $((blksz * 2)) 0 >> $seqres.full -_test_remount +_test_cycle_mount md5sum $testdir/file1 | _filter_test_dir md5sum $testdir/file2 | _filter_test_dir
tests/generic/182 +3 -3
@@ -59,7 +59,7 @@ _pwrite_byte 0x61 0 $((blksz * 256)) $testdir/file1 >> $seqres.full _pwrite_byte 0x62 0 $((blksz * 257)) $testdir/file2 >> $seqres.full _pwrite_byte 0x62 0 $((blksz * 257)) $testdir/file2.chk >> $seqres.full _dedupe_range $testdir/file1 $blksz $testdir/file2 $((blksz * 2)) 0 >> $seqres.full -_test_remount +_test_cycle_mount md5sum $testdir/file1 | _filter_test_dir md5sum $testdir/file2 | _filter_test_dir
@@ -78,7 +78,7 @@ _pwrite_byte 0x61 0 $((blksz * 256)) $testdir/file1 >> $seqres.full _pwrite_byte 0x61 0 $((blksz * 256)) $testdir/file2 >> $seqres.full _pwrite_byte 0x61 0 $((blksz * 256)) $testdir/file2.chk >> $seqres.full _dedupe_range $testdir/file1 $blksz $testdir/file2 $((blksz * 2)) 0 >> $seqres.full -_test_remount +_test_cycle_mount md5sum $testdir/file1 | _filter_test_dir md5sum $testdir/file2 | _filter_test_dir
@@ -97,7 +97,7 @@ _pwrite_byte 0x61 0 $((blksz * 256)) $testdir/file1 >> $seqres.full _pwrite_byte 0x61 0 $((blksz * 257)) $testdir/file2 >> $seqres.full _pwrite_byte 0x61 0 $((blksz * 257)) $testdir/file2.chk >> $seqres.full _dedupe_range $testdir/file1 $blksz $testdir/file2 $((blksz * 2)) 0 >> $seqres.full -_test_remount +_test_cycle_mount md5sum $testdir/file1 | _filter_test_dir md5sum $testdir/file2 | _filter_test_dir
tests/generic/303 +1 -1
@@ -83,7 +83,7 @@ echo "Reflink with huge off/len (should fail)" _reflink_range $testdir/file2 $bigoff_64k $testdir/file9 0 $bigoff_64k >> $seqres.full echo "Check file creation" -_test_remount +_test_cycle_mount echo "file3" $XFS_IO_PROG -c "pread -v -q $bigoff 1" $testdir/file3 echo "file4"
tests/generic/304 +1 -1
@@ -84,7 +84,7 @@ echo "Dedupe with huge off/len (should fail)" _dedupe_range $testdir/file2 $bigoff_64k $testdir/file9 0 $bigoff_64k >> $seqres.full echo "Check file creation" -_test_remount +_test_cycle_mount echo "file3" $XFS_IO_PROG -c "pread -v -q $bigoff 1" $testdir/file3 echo "file4"
tests/xfs/128 +3 -3
@@ -66,7 +66,7 @@ _pwrite_byte 0x61 0 $((blks * blksz)) $testdir/file1 >> $seqres.full _cp_reflink $testdir/file1 $testdir/file2 _cp_reflink $testdir/file2 $testdir/file3 _cp_reflink $testdir/file3 $testdir/file4 -_test_remount +_test_cycle_mount free_blocks1=$(stat -f $testdir -c '%f') md5sum $testdir/file1 | _filter_scratch
@@ -82,7 +82,7 @@ c04=$(_md5_checksum $testdir/file4) echo "CoW the reflink copies" _pwrite_byte 0x62 $blksz $blksz $testdir/file2 >> $seqres.full _pwrite_byte 0x63 $(( blksz * (blks - 1) )) $blksz $testdir/file3 >> $seqres.full -_test_remount +_test_cycle_mount free_blocks2=$(stat -f $testdir -c '%f') md5sum $testdir/file1 | _filter_scratch
@@ -101,7 +101,7 @@ xfs_fsr -v -d $testdir/file1 >> $seqres.full xfs_fsr -v -d $testdir/file2 >> $seqres.full # fsr probably breaks the link xfs_fsr -v -d $testdir/file3 >> $seqres.full # fsr probably breaks the link xfs_fsr -v -d $testdir/file4 >> $seqres.full # fsr probably ignores this file -_test_remount +_test_cycle_mount free_blocks3=$(stat -f $testdir -c '%f') md5sum $testdir/file1 | _filter_scratch
tests/xfs/132 +6 -6
@@ -80,38 +80,38 @@ free_blocks0=$(stat -f $testdir -c '%f') nr=4 filesize=$((blksz * nr)) _pwrite_byte 0x61 0 $sz $testdir/file1 >> $seqres.full -_test_remount +_test_cycle_mount echo "Create the reflink copies" for i in `seq 2 $nr`; do _cp_reflink $testdir/file1 $testdir/file$i done -_test_remount +_test_cycle_mount free_blocks1=$(stat -f $testdir -c '%f') lsattr -l $testdir/ | _filter_test_dir | _filter_spaces echo "funshare part of a file" $XFS_IO_PROG -f -c "falloc 0 $((sz / 2))" $testdir/file2 -_test_remount +_test_cycle_mount lsattr -l $testdir/ | _filter_test_dir | _filter_spaces echo "funshare some of the copies" $XFS_IO_PROG -f -c "falloc 0 $sz" $testdir/file2 $XFS_IO_PROG -f -c "falloc 0 $sz" $testdir/file3 -_test_remount +_test_cycle_mount free_blocks2=$(stat -f $testdir -c '%f') lsattr -l $testdir/ | _filter_test_dir | _filter_spaces echo "funshare the rest of the files" $XFS_IO_PROG -f -c "falloc 0 $sz" $testdir/file4 $XFS_IO_PROG -f -c "falloc 0 $sz" $testdir/file1 -_test_remount +_test_cycle_mount free_blocks3=$(stat -f $testdir -c '%f') lsattr -l $testdir/ | _filter_test_dir | _filter_spaces echo "Rewrite the original file" _pwrite_byte 0x65 0 $sz $testdir/file1 >> $seqres.full -_test_remount +_test_cycle_mount free_blocks4=$(stat -f $testdir -c '%f') lsattr -l $testdir/ | _filter_test_dir | _filter_spaces #echo $free_blocks0 $free_blocks1 $free_blocks2 $free_blocks3 $free_blocks4
Signature · 1 line
2.5.0
PATCH v3 9/16 xfstests: do not unmount tmpfs during remount
In reply to Theodore Ts'oFrom: Junho Ryu <[email protected]>
Several tests unmount then re-mount the scratch filesystem, to check that the content is unchanged; but unmounting a tmpfs is designed to lose its content, which causes such tests to fail unnecessarily.
--- common/rc | 23 ++++++++++++++++++++++- tests/generic/003 | 20 ++++++++------------ tests/generic/135 | 17 +++-------------- tests/generic/169 | 20 ++++++-------------- tests/generic/169.out | 6 ++---- tests/generic/192 | 3 +-- tests/generic/226 | 3 +-- tests/generic/258 | 3 +-- tests/generic/306 | 3 +-- tests/generic/317 | 3 +-- tests/generic/318 | 3 +-- 11 files changed, 47 insertions(+), 57 deletions(-)
common/rc +22 -1
@@ -329,10 +329,28 @@ _scratch_unmount() esac } +_scratch_remount() +{ + local opts="$1" + + if test -n "$opts"; then + mount -o "remount,$opts" $SCRATCH_MNT + fi +} + _scratch_cycle_mount() { + local opts="$1" + + if [ "$FSTYP" = tmpfs ]; then + _scratch_remount "$opts" + return + fi + if test -n "$opts"; then + opts="-o $opts" + fi _scratch_unmount - _scratch_mount + _scratch_mount "$opts" } _test_mount()
@@ -356,6 +374,9 @@ _test_unmount() _test_cycle_mount() { + if [ "$FSTYP" = tmpfs ]; then + return + fi _test_unmount _test_mount }
tests/generic/003 +8 -12
@@ -107,9 +107,8 @@ file1_stat_after_second_access=`_stat $TPATH/dir1/file1` _compare_stat_times NNN "$file1_stat_after_first_access" \ "$file1_stat_after_second_access" "after accessing file1 second time" -# Remounting with nodiratime option -_scratch_unmount -_scratch_mount "-o nodiratime" +# Mounting with nodiratime option +_scratch_cycle_mount "nodiratime" file1_stat_after_remount=`_stat $TPATH/dir1/file1` _compare_stat_times NNN "$file1_stat_after_second_access" \ "$file1_stat_after_remount" "for file1 after remount"
@@ -134,9 +133,8 @@ dir2_stat_after_file_access=`_stat $TPATH/dir2` _compare_stat_times NNN "$dir2_stat_after_file_creation" \ "$dir2_stat_after_file_access" "for dir2 after file access" -# Remounting with noatime option, creating a file and accessing it -_scratch_unmount -_scratch_mount "-o noatime" +# Mounting with noatime option, creating a file and accessing it +_scratch_cycle_mount "noatime" echo "ccc" > $TPATH/dir2/file3 file3_stat_before_first_access=`_stat $TPATH/dir2/file3` sleep 1
@@ -158,10 +156,9 @@ file1_stat_after_change=`_stat $TPATH/dir1/file1_renamed` _compare_stat_times NNY "$file1_stat_after_modify" \ "$file1_stat_after_change" "after changing file1" -# Remounting with strictatime option and +# Mounting with strictatime option and # accessing a previously created file twice -_scratch_unmount -_scratch_mount "-o strictatime" +_scratch_cycle_mount "strictatime" cat $TPATH/dir2/file3 > /dev/null file3_stat_after_second_access=`_stat $TPATH/dir2/file3` _compare_stat_times YNN "$file3_stat_after_first_access" \
@@ -189,13 +186,12 @@ if [ "$FSTYP" = "btrfs" ]; then "$file3_stat_readonly_after_access" "for file in readonly subvol" fi -# Remounting read-only. Access time should never be updated, despite the +# Mounting read-only. Access time should never be updated, despite the # strictatime mount option. sleep 1 dir2_stat_before_ro_mount=`_stat $TPATH/dir2` file3_stat_before_ro_mount=`_stat $TPATH/dir2/file3` -_scratch_unmount -_scratch_mount "-o ro,strictatime" +_scratch_cycle_mount "ro,strictatime" ls $TPATH/dir2 > /dev/null cat $TPATH/dir2/file3 > /dev/null dir2_stat_after_ro_mount=`_stat $TPATH/dir2`
tests/generic/135 +3 -14
@@ -41,19 +41,8 @@ _supported_os Linux IRIX _require_odirect _require_scratch -_scratch_mkfs >/dev/null 2>&1 - -_umount_mount() -{ - CWD=`pwd` - cd / - # pipe error into /dev/null, in case not mounted (after _require_scratch) - _scratch_unmount 2>/dev/null - _scratch_mount - cd "$CWD" -} - -_umount_mount +_scratch_mkfs >/dev/null +_scratch_mount cd $SCRATCH_MNT
@@ -71,7 +60,7 @@ $XFS_IO_PROG -f -c 'pwrite -b 4k -S 0x78 0 4k' trunc_file > /dev/null $XFS_IO_PROG -f -c 'truncate 2k' trunc_file > /dev/null $XFS_IO_PROG -c 'pwrite 1k 0 1k' trunc_file > /dev/null -_umount_mount +_scratch_cycle_mount # check file size and contents od -Ad -x async_file
tests/generic/169 +6 -14
@@ -73,13 +73,9 @@ $XFS_IO_PROG -a -c "pwrite 0 5k" -c "fsync" \ $SCRATCH_MNT/testfile \ | _show_wrote_and_stat_only -echo "# unmounting scratch" -_scratch_unmount>>$seqres.full 2>&1 \ - || _fail "unmount failed" - -echo "# mounting scratch" -_scratch_mount >>$seqres.full 2>&1 \ - || _fail "mount failed: $MOUNT_OPTIONS" +echo "# remounting scratch" +_scratch_cycle_mount >>$seqres.full 2>&1 \ + || _fail "remount failed: $MOUNT_OPTIONS" echo "# stating file to confirm correct size" $XFS_IO_PROG -r -c "stat" $SCRATCH_MNT/testfile \
@@ -90,13 +86,9 @@ $XFS_IO_PROG -f -c "pwrite 0 5" -c s -c "pwrite 5 5" \ -c "stat" $SCRATCH_MNT/nextfile \ | _show_wrote_and_stat_only -echo "# unmounting scratch" -_scratch_unmount>>$seqres.full 2>&1 \ - || _fail "unmount failed" - -echo "# mounting scratch" -_scratch_mount >>$seqres.full 2>&1 \ - || _fail "mount failed: $MOUNT_OPTIONS" +echo "# remounting scratch" +_scratch_cycle_mount >>$seqres.full 2>&1 \ + || _fail "remount failed: $MOUNT_OPTIONS" echo "# stating file to confirm correct size" $XFS_IO_PROG -r -c "stat" $SCRATCH_MNT/nextfile \
tests/generic/169.out +2 -4
@@ -5,15 +5,13 @@ wrote 5120/5120 bytes at offset 0 wrote 5120/5120 bytes at offset 5120 wrote 5120/5120 bytes at offset 10240 stat.size = 15360 -# unmounting scratch -# mounting scratch +# remounting scratch # stating file to confirm correct size stat.size = 15360 # appending 10 bytes to new file, sync at 5 bytes wrote 5/5 bytes at offset 0 wrote 5/5 bytes at offset 5 stat.size = 10 -# unmounting scratch -# mounting scratch +# remounting scratch # stating file to confirm correct size stat.size = 10
tests/generic/192 +1 -2
@@ -78,8 +78,7 @@ cat $testfile time2=`_access_time $testfile | tee -a $seqres.full` cd / -_test_unmount -_test_mount +_test_cycle_mount time3=`_access_time $testfile | tee -a $seqres.full` delta1=`expr $time2 - $time1`
tests/generic/226 +1 -2
@@ -61,8 +61,7 @@ for I in `seq 1 $loops`; do done echo -_scratch_unmount -_scratch_mount +_scratch_cycle_mount echo "--> $loops direct 64m writes in a loop" for I in `seq 1 $loops`; do
tests/generic/258 +1 -2
@@ -62,8 +62,7 @@ fi # unmount, remount, and check the timestamp echo "Remounting to flush cache" -_test_unmount -_test_mount +_test_cycle_mount # Should yield -315593940 (prior to epoch) echo "Testing for negative seconds since epoch"
tests/generic/306 +1 -2
@@ -67,8 +67,7 @@ touch $BINDFILE || _fail "Could not create bind mount file" touch $TARGET || _fail "Could not create symlink target" ln -s $TARGET $SYMLINK -_scratch_unmount || _fail "Could not unmount scratch device" -_scratch_mount -o ro || _fail "Could not mount scratch readonly" +_scratch_remount ro || _fail "Could not remount scratch readonly" # We should be able to read & write to/from these devices even on an RO fs echo "== try to create new file"
tests/generic/317 +1 -2
@@ -96,8 +96,7 @@ echo "" echo "*** Remounting ***" echo "" sync -_scratch_unmount >>$seqres.full 2>&1 -_scratch_mount >>$seqres.full 2>&1 || _fail "mount failed" +_scratch_cycle_mount >>$seqres.full 2>&1 || _fail "remount failed" _print_numeric_uid
tests/generic/318 +1 -2
@@ -109,8 +109,7 @@ _print_getfacls echo "*** Remounting ***" echo "" sync -_scratch_unmount >>$seqres.full 2>&1 -_scratch_mount >>$seqres.full 2>&1 || _fail "mount failed" +_scratch_cycle_mount >>$seqres.full 2>&1 || _fail "remount failed" _print_getfacls
Signature · 1 line
2.5.0
PATCH v3 9/16 xfstests: do not unmount tmpfs during remount
I screwed up the test generic/135 in the previous version of the commit. Here is a revised version, which avoids an EBUSY due to CWD being in SCRATCH_MNT when we attempted to unmount it.
- Ted
Quoted 1 line
From
a46e47d549f0d43f6c32f54e89817cc1a602b9bfMon Sep 17 00:00:00 2001
From: Junho Ryu <[email protected]>
Date: Wed, 18 Dec 2013 10:16:01 -0800
Subject: [PATCH] xfstests: do not unmount tmpfs during remount
Several tests unmount then re-mount the scratch filesystem, to check that the content is unchanged; but unmounting a tmpfs is designed to lose its content, which causes such tests to fail unnecessarily.
--- common/rc | 23 ++++++++++++++++++++++- tests/generic/003 | 20 ++++++++------------ tests/generic/135 | 19 +++++-------------- tests/generic/169 | 20 ++++++-------------- tests/generic/169.out | 6 ++---- tests/generic/192 | 3 +-- tests/generic/226 | 3 +-- tests/generic/258 | 3 +-- tests/generic/306 | 3 +-- tests/generic/317 | 3 +-- tests/generic/318 | 3 +-- 11 files changed, 49 insertions(+), 57 deletions(-)
common/rc +22 -1
@@ -329,10 +329,28 @@ _scratch_unmount() esac } +_scratch_remount() +{ + local opts="$1" + + if test -n "$opts"; then + mount -o "remount,$opts" $SCRATCH_MNT + fi +} + _scratch_cycle_mount() { + local opts="$1" + + if [ "$FSTYP" = tmpfs ]; then + _scratch_remount "$opts" + return + fi + if test -n "$opts"; then + opts="-o $opts" + fi _scratch_unmount - _scratch_mount + _scratch_mount "$opts" } _test_mount()
@@ -356,6 +374,9 @@ _test_unmount() _test_cycle_mount() { + if [ "$FSTYP" = tmpfs ]; then + return + fi _test_unmount _test_mount }
tests/generic/003 +8 -12
@@ -107,9 +107,8 @@ file1_stat_after_second_access=`_stat $TPATH/dir1/file1` _compare_stat_times NNN "$file1_stat_after_first_access" \ "$file1_stat_after_second_access" "after accessing file1 second time" -# Remounting with nodiratime option -_scratch_unmount -_scratch_mount "-o nodiratime" +# Mounting with nodiratime option +_scratch_cycle_mount "nodiratime" file1_stat_after_remount=`_stat $TPATH/dir1/file1` _compare_stat_times NNN "$file1_stat_after_second_access" \ "$file1_stat_after_remount" "for file1 after remount"
@@ -134,9 +133,8 @@ dir2_stat_after_file_access=`_stat $TPATH/dir2` _compare_stat_times NNN "$dir2_stat_after_file_creation" \ "$dir2_stat_after_file_access" "for dir2 after file access" -# Remounting with noatime option, creating a file and accessing it -_scratch_unmount -_scratch_mount "-o noatime" +# Mounting with noatime option, creating a file and accessing it +_scratch_cycle_mount "noatime" echo "ccc" > $TPATH/dir2/file3 file3_stat_before_first_access=`_stat $TPATH/dir2/file3` sleep 1
@@ -158,10 +156,9 @@ file1_stat_after_change=`_stat $TPATH/dir1/file1_renamed` _compare_stat_times NNY "$file1_stat_after_modify" \ "$file1_stat_after_change" "after changing file1" -# Remounting with strictatime option and +# Mounting with strictatime option and # accessing a previously created file twice -_scratch_unmount -_scratch_mount "-o strictatime" +_scratch_cycle_mount "strictatime" cat $TPATH/dir2/file3 > /dev/null file3_stat_after_second_access=`_stat $TPATH/dir2/file3` _compare_stat_times YNN "$file3_stat_after_first_access" \
@@ -189,13 +186,12 @@ if [ "$FSTYP" = "btrfs" ]; then "$file3_stat_readonly_after_access" "for file in readonly subvol" fi -# Remounting read-only. Access time should never be updated, despite the +# Mounting read-only. Access time should never be updated, despite the # strictatime mount option. sleep 1 dir2_stat_before_ro_mount=`_stat $TPATH/dir2` file3_stat_before_ro_mount=`_stat $TPATH/dir2/file3` -_scratch_unmount -_scratch_mount "-o ro,strictatime" +_scratch_cycle_mount "ro,strictatime" ls $TPATH/dir2 > /dev/null cat $TPATH/dir2/file3 > /dev/null dir2_stat_after_ro_mount=`_stat $TPATH/dir2`
tests/generic/135 +5 -14
@@ -41,19 +41,8 @@ _supported_os Linux IRIX _require_odirect _require_scratch -_scratch_mkfs >/dev/null 2>&1 - -_umount_mount() -{ - CWD=`pwd` - cd / - # pipe error into /dev/null, in case not mounted (after _require_scratch) - _scratch_unmount 2>/dev/null - _scratch_mount - cd "$CWD" -} - -_umount_mount +_scratch_mkfs >/dev/null +_scratch_mount cd $SCRATCH_MNT
@@ -71,7 +60,9 @@ $XFS_IO_PROG -f -c 'pwrite -b 4k -S 0x78 0 4k' trunc_file > /dev/null $XFS_IO_PROG -f -c 'truncate 2k' trunc_file > /dev/null $XFS_IO_PROG -c 'pwrite 1k 0 1k' trunc_file > /dev/null -_umount_mount +pushd / > /dev/null +_scratch_cycle_mount +popd > /dev/null # check file size and contents od -Ad -x async_file
tests/generic/169 +6 -14
@@ -73,13 +73,9 @@ $XFS_IO_PROG -a -c "pwrite 0 5k" -c "fsync" \ $SCRATCH_MNT/testfile \ | _show_wrote_and_stat_only -echo "# unmounting scratch" -_scratch_unmount>>$seqres.full 2>&1 \ - || _fail "unmount failed" - -echo "# mounting scratch" -_scratch_mount >>$seqres.full 2>&1 \ - || _fail "mount failed: $MOUNT_OPTIONS" +echo "# remounting scratch" +_scratch_cycle_mount >>$seqres.full 2>&1 \ + || _fail "remount failed: $MOUNT_OPTIONS" echo "# stating file to confirm correct size" $XFS_IO_PROG -r -c "stat" $SCRATCH_MNT/testfile \
@@ -90,13 +86,9 @@ $XFS_IO_PROG -f -c "pwrite 0 5" -c s -c "pwrite 5 5" \ -c "stat" $SCRATCH_MNT/nextfile \ | _show_wrote_and_stat_only -echo "# unmounting scratch" -_scratch_unmount>>$seqres.full 2>&1 \ - || _fail "unmount failed" - -echo "# mounting scratch" -_scratch_mount >>$seqres.full 2>&1 \ - || _fail "mount failed: $MOUNT_OPTIONS" +echo "# remounting scratch" +_scratch_cycle_mount >>$seqres.full 2>&1 \ + || _fail "remount failed: $MOUNT_OPTIONS" echo "# stating file to confirm correct size" $XFS_IO_PROG -r -c "stat" $SCRATCH_MNT/nextfile \
tests/generic/169.out +2 -4
@@ -5,15 +5,13 @@ wrote 5120/5120 bytes at offset 0 wrote 5120/5120 bytes at offset 5120 wrote 5120/5120 bytes at offset 10240 stat.size = 15360 -# unmounting scratch -# mounting scratch +# remounting scratch # stating file to confirm correct size stat.size = 15360 # appending 10 bytes to new file, sync at 5 bytes wrote 5/5 bytes at offset 0 wrote 5/5 bytes at offset 5 stat.size = 10 -# unmounting scratch -# mounting scratch +# remounting scratch # stating file to confirm correct size stat.size = 10
tests/generic/192 +1 -2
@@ -78,8 +78,7 @@ cat $testfile time2=`_access_time $testfile | tee -a $seqres.full` cd / -_test_unmount -_test_mount +_test_cycle_mount time3=`_access_time $testfile | tee -a $seqres.full` delta1=`expr $time2 - $time1`
tests/generic/226 +1 -2
@@ -61,8 +61,7 @@ for I in `seq 1 $loops`; do done echo -_scratch_unmount -_scratch_mount +_scratch_cycle_mount echo "--> $loops direct 64m writes in a loop" for I in `seq 1 $loops`; do
tests/generic/258 +1 -2
@@ -62,8 +62,7 @@ fi # unmount, remount, and check the timestamp echo "Remounting to flush cache" -_test_unmount -_test_mount +_test_cycle_mount # Should yield -315593940 (prior to epoch) echo "Testing for negative seconds since epoch"
tests/generic/306 +1 -2
@@ -67,8 +67,7 @@ touch $BINDFILE || _fail "Could not create bind mount file" touch $TARGET || _fail "Could not create symlink target" ln -s $TARGET $SYMLINK -_scratch_unmount || _fail "Could not unmount scratch device" -_scratch_mount -o ro || _fail "Could not mount scratch readonly" +_scratch_remount ro || _fail "Could not remount scratch readonly" # We should be able to read & write to/from these devices even on an RO fs echo "== try to create new file"
tests/generic/317 +1 -2
@@ -96,8 +96,7 @@ echo "" echo "*** Remounting ***" echo "" sync -_scratch_unmount >>$seqres.full 2>&1 -_scratch_mount >>$seqres.full 2>&1 || _fail "mount failed" +_scratch_cycle_mount >>$seqres.full 2>&1 || _fail "remount failed" _print_numeric_uid
tests/generic/318 +1 -2
@@ -109,8 +109,7 @@ _print_getfacls echo "*** Remounting ***" echo "" sync -_scratch_unmount >>$seqres.full 2>&1 -_scratch_mount >>$seqres.full 2>&1 || _fail "mount failed" +_scratch_cycle_mount >>$seqres.full 2>&1 || _fail "remount failed" _print_getfacls
Signature · 1 line
2.5.0
Re: [PATCH-v3b 09/16] xfstests: do not unmount tmpfs during remount
Sigh, one more revision. Previous versions of this patch accidentally removed 2>&1 from the _scratch_mkfs line, and this caused failures when using a 1k block size and mke2fs would issue a warning that the blocksize is smaller than the physical blocksize (which results in non-optimal performance).
Quoted 1 line
From
a46e47d549f0d43f6c32f54e89817cc1a602b9bfMon Sep 17 00:00:00 2001
From: Junho Ryu <[email protected]>
Date: Wed, 18 Dec 2013 10:16:01 -0800
Subject: [PATCH] xfstests: do not unmount tmpfs during remount
Several tests unmount then re-mount the scratch filesystem, to check that the content is unchanged; but unmounting a tmpfs is designed to lose its content, which causes such tests to fail unnecessarily.
--- common/rc | 23 ++++++++++++++++++++++- tests/generic/003 | 20 ++++++++------------ tests/generic/135 | 19 +++++-------------- tests/generic/169 | 20 ++++++-------------- tests/generic/169.out | 6 ++---- tests/generic/192 | 3 +-- tests/generic/226 | 3 +-- tests/generic/258 | 3 +-- tests/generic/306 | 3 +-- tests/generic/317 | 3 +-- tests/generic/318 | 3 +-- 11 files changed, 49 insertions(+), 57 deletions(-)
common/rc +22 -1
@@ -329,10 +329,28 @@ _scratch_unmount() esac } +_scratch_remount() +{ + local opts="$1" + + if test -n "$opts"; then + mount -o "remount,$opts" $SCRATCH_MNT + fi +} + _scratch_cycle_mount() { + local opts="$1" + + if [ "$FSTYP" = tmpfs ]; then + _scratch_remount "$opts" + return + fi + if test -n "$opts"; then + opts="-o $opts" + fi _scratch_unmount - _scratch_mount + _scratch_mount "$opts" } _test_mount()
@@ -356,6 +374,9 @@ _test_unmount() _test_cycle_mount() { + if [ "$FSTYP" = tmpfs ]; then + return + fi _test_unmount _test_mount }
tests/generic/003 +8 -12
@@ -107,9 +107,8 @@ file1_stat_after_second_access=`_stat $TPATH/dir1/file1` _compare_stat_times NNN "$file1_stat_after_first_access" \ "$file1_stat_after_second_access" "after accessing file1 second time" -# Remounting with nodiratime option -_scratch_unmount -_scratch_mount "-o nodiratime" +# Mounting with nodiratime option +_scratch_cycle_mount "nodiratime" file1_stat_after_remount=`_stat $TPATH/dir1/file1` _compare_stat_times NNN "$file1_stat_after_second_access" \ "$file1_stat_after_remount" "for file1 after remount"
@@ -134,9 +133,8 @@ dir2_stat_after_file_access=`_stat $TPATH/dir2` _compare_stat_times NNN "$dir2_stat_after_file_creation" \ "$dir2_stat_after_file_access" "for dir2 after file access" -# Remounting with noatime option, creating a file and accessing it -_scratch_unmount -_scratch_mount "-o noatime" +# Mounting with noatime option, creating a file and accessing it +_scratch_cycle_mount "noatime" echo "ccc" > $TPATH/dir2/file3 file3_stat_before_first_access=`_stat $TPATH/dir2/file3` sleep 1
@@ -158,10 +156,9 @@ file1_stat_after_change=`_stat $TPATH/dir1/file1_renamed` _compare_stat_times NNY "$file1_stat_after_modify" \ "$file1_stat_after_change" "after changing file1" -# Remounting with strictatime option and +# Mounting with strictatime option and # accessing a previously created file twice -_scratch_unmount -_scratch_mount "-o strictatime" +_scratch_cycle_mount "strictatime" cat $TPATH/dir2/file3 > /dev/null file3_stat_after_second_access=`_stat $TPATH/dir2/file3` _compare_stat_times YNN "$file3_stat_after_first_access" \
@@ -189,13 +186,12 @@ if [ "$FSTYP" = "btrfs" ]; then "$file3_stat_readonly_after_access" "for file in readonly subvol" fi -# Remounting read-only. Access time should never be updated, despite the +# Mounting read-only. Access time should never be updated, despite the # strictatime mount option. sleep 1 dir2_stat_before_ro_mount=`_stat $TPATH/dir2` file3_stat_before_ro_mount=`_stat $TPATH/dir2/file3` -_scratch_unmount -_scratch_mount "-o ro,strictatime" +_scratch_cycle_mount "ro,strictatime" ls $TPATH/dir2 > /dev/null cat $TPATH/dir2/file3 > /dev/null dir2_stat_after_ro_mount=`_stat $TPATH/dir2`
tests/generic/135 +5 -14
@@ -41,19 +41,8 @@ _supported_os Linux IRIX _require_odirect _require_scratch -_scratch_mkfs >/dev/null 2>&1 - -_umount_mount() -{ - CWD=`pwd` - cd / - # pipe error into /dev/null, in case not mounted (after _require_scratch) - _scratch_unmount 2>/dev/null - _scratch_mount - cd "$CWD" -} - -_umount_mount +_scratch_mkfs >/dev/null +_scratch_mount cd $SCRATCH_MNT
@@ -71,7 +60,9 @@ $XFS_IO_PROG -f -c 'pwrite -b 4k -S 0x78 0 4k' trunc_file > /dev/null $XFS_IO_PROG -f -c 'truncate 2k' trunc_file > /dev/null $XFS_IO_PROG -c 'pwrite 1k 0 1k' trunc_file > /dev/null -_umount_mount +pushd / > /dev/null +_scratch_cycle_mount +popd > /dev/null # check file size and contents od -Ad -x async_file
tests/generic/169 +6 -14
@@ -73,13 +73,9 @@ $XFS_IO_PROG -a -c "pwrite 0 5k" -c "fsync" \ $SCRATCH_MNT/testfile \ | _show_wrote_and_stat_only -echo "# unmounting scratch" -_scratch_unmount>>$seqres.full 2>&1 \ - || _fail "unmount failed" - -echo "# mounting scratch" -_scratch_mount >>$seqres.full 2>&1 \ - || _fail "mount failed: $MOUNT_OPTIONS" +echo "# remounting scratch" +_scratch_cycle_mount >>$seqres.full 2>&1 \ + || _fail "remount failed: $MOUNT_OPTIONS" echo "# stating file to confirm correct size" $XFS_IO_PROG -r -c "stat" $SCRATCH_MNT/testfile \
@@ -90,13 +86,9 @@ $XFS_IO_PROG -f -c "pwrite 0 5" -c s -c "pwrite 5 5" \ -c "stat" $SCRATCH_MNT/nextfile \ | _show_wrote_and_stat_only -echo "# unmounting scratch" -_scratch_unmount>>$seqres.full 2>&1 \ - || _fail "unmount failed" - -echo "# mounting scratch" -_scratch_mount >>$seqres.full 2>&1 \ - || _fail "mount failed: $MOUNT_OPTIONS" +echo "# remounting scratch" +_scratch_cycle_mount >>$seqres.full 2>&1 \ + || _fail "remount failed: $MOUNT_OPTIONS" echo "# stating file to confirm correct size" $XFS_IO_PROG -r -c "stat" $SCRATCH_MNT/nextfile \
tests/generic/169.out +2 -4
@@ -5,15 +5,13 @@ wrote 5120/5120 bytes at offset 0 wrote 5120/5120 bytes at offset 5120 wrote 5120/5120 bytes at offset 10240 stat.size = 15360 -# unmounting scratch -# mounting scratch +# remounting scratch # stating file to confirm correct size stat.size = 15360 # appending 10 bytes to new file, sync at 5 bytes wrote 5/5 bytes at offset 0 wrote 5/5 bytes at offset 5 stat.size = 10 -# unmounting scratch -# mounting scratch +# remounting scratch # stating file to confirm correct size stat.size = 10
tests/generic/192 +1 -2
@@ -78,8 +78,7 @@ cat $testfile time2=`_access_time $testfile | tee -a $seqres.full` cd / -_test_unmount -_test_mount +_test_cycle_mount time3=`_access_time $testfile | tee -a $seqres.full` delta1=`expr $time2 - $time1`
tests/generic/226 +1 -2
@@ -61,8 +61,7 @@ for I in `seq 1 $loops`; do done echo -_scratch_unmount -_scratch_mount +_scratch_cycle_mount echo "--> $loops direct 64m writes in a loop" for I in `seq 1 $loops`; do
tests/generic/258 +1 -2
@@ -62,8 +62,7 @@ fi # unmount, remount, and check the timestamp echo "Remounting to flush cache" -_test_unmount -_test_mount +_test_cycle_mount # Should yield -315593940 (prior to epoch) echo "Testing for negative seconds since epoch"
tests/generic/306 +1 -2
@@ -67,8 +67,7 @@ touch $BINDFILE || _fail "Could not create bind mount file" touch $TARGET || _fail "Could not create symlink target" ln -s $TARGET $SYMLINK -_scratch_unmount || _fail "Could not unmount scratch device" -_scratch_mount -o ro || _fail "Could not mount scratch readonly" +_scratch_remount ro || _fail "Could not remount scratch readonly" # We should be able to read & write to/from these devices even on an RO fs echo "== try to create new file"
tests/generic/317 +1 -2
@@ -96,8 +96,7 @@ echo "" echo "*** Remounting ***" echo "" sync -_scratch_unmount >>$seqres.full 2>&1 -_scratch_mount >>$seqres.full 2>&1 || _fail "mount failed" +_scratch_cycle_mount >>$seqres.full 2>&1 || _fail "remount failed" _print_numeric_uid
tests/generic/318 +1 -2
@@ -109,8 +109,7 @@ _print_getfacls echo "*** Remounting ***" echo "" sync -_scratch_unmount >>$seqres.full 2>&1 -_scratch_mount >>$seqres.full 2>&1 || _fail "mount failed" +_scratch_cycle_mount >>$seqres.full 2>&1 || _fail "remount failed" _print_getfacls
Signature · 1 line
2.5.0
PATCH v3 10/16 generic: do not unmount before calling _check_scratch_fs()
In reply to Theodore Ts'oFrom: Junho Ryu <[email protected]>
Fix generic/053 so it works on tmpfs by relying on _check_scratch_fs to unmount before checking the file system and remounting it afterwards. Many other tests rely on this, and since tmpfs does not have a file system consistency checker, this allows the test to succeed because the files don't disappear when the tmpfs file system is unmounted.
--- tests/generic/053 | 2 -- tests/generic/053.out | 2 -- 2 files changed, 4 deletions(-)
tests/generic/053 +0 -2
@@ -81,9 +81,7 @@ list_acls() echo "acls before repair:" list_acls -_do 'unmount $SCRATCH_DEV' '_scratch_unmount' _do 'repair filesystem' '_check_scratch_fs' -_do 'mount filesytem' '_scratch_mount' echo "acls after repair: " list_acls
tests/generic/053.out +0 -2
@@ -10,9 +10,7 @@ $SCRATCH_MNT/test.4 [u::---,g::r-x,o::rwx] $SCRATCH_MNT/test.5 [u::---,u:id2:r-x,g::---,m::rwx,o::---] $SCRATCH_MNT/test.6 [u::rwx,g::r-x,o::r--] $SCRATCH_MNT/test.7 [u::---,g::---,g:id2:r-x,m::-w-,o::---] -unmount $SCRATCH_DEV... done repair filesystem... done -mount filesytem... done acls after repair: $SCRATCH_MNT/test.0 [u::r--,g::rwx,o::rw-] $SCRATCH_MNT/test.1 [u::r-x,g::---,o::---]
Signature · 1 line
2.5.0
PATCH v3 11/16 generic: require fiemap for generic/009
In reply to Theodore Ts'oFrom: Hugh Dickins <[email protected]>
Require xfs_io commands fiemap and falloc as well as fzero: fzero without falloc is unlikely, but tmpfs may later support fzero, though probably never fiemap (and in v3.15 wrongly claimed to support fzero).
--- tests/generic/009 | 2 ++ 1 file changed, 2 insertions(+)
tests/generic/009 +2 -0
@@ -45,6 +45,8 @@ trap "_cleanup ; exit \$status" 0 1 2 3 15 # real QA test starts here _supported_os Linux _require_xfs_io_command "fzero" +_require_xfs_io_command "fiemap" +_require_xfs_io_command "falloc" _require_test testfile=$TEST_DIR/009.$$
Signature · 1 line
2.5.0
Re: [PATCH 11/16] generic: require fiemap for generic/009
Looks fine,
PATCH v3 12/16 xfstests: remove dependency on /proc/partitions for generic/312
In reply to Theodore Ts'oFrom: Hugh Dickins <[email protected]>
This allows this test to work with tmpfs, if the system has at least 5G of free memory.
--- tests/generic/312 | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-)
tests/generic/312 +8 -5
@@ -51,12 +51,15 @@ _require_scratch # 5G in byte fssize=$((2**30 * 5)) -required_blocks=$(($fssize / 1024)) -dev_blocks=$(grep -w $(_short_dev $SCRATCH_DEV) /proc/partitions | $AWK_PROG '{print $3}') -if [ $required_blocks -gt $dev_blocks ];then - _notrun "this test requires \$SCRATCH_DEV has ${fssize}B space" -fi +# We don't need to do this check for tmpfs because _scratch_mkfs_size +# will validate the size against the available memory +if [ "$FSTYP" != "tmpfs" ]; then + _scratch_mkfs + _scratch_mount + _require_fs_space $SCRATCH_MNT $(($fssize / 1024)) + _scratch_unmount +fi rm -f $seqres.full _scratch_mkfs_sized $fssize >>$seqres.full 2>&1 _scratch_mount >>$seqres.full 2>&1
Signature · 1 line
2.5.0
Re: [PATCH 12/16] xfstests: remove dependency on /proc/partitions for generic/312
tests/generic/312 _require_scratch · line 64
Quoted 10 lines
tests/generic/312 +8
-0+# We don't need to do this check for tmpfs because _scratch_mkfs_size +# will validate the size against the available memory +if [ "$FSTYP" != "tmpfs" ]; then + _scratch_mkfs + _scratch_mount + _require_fs_space $SCRATCH_MNT $(($fssize / 1024)) + _scratch_unmount +fi rm -f $seqres.full _scratch_mkfs_sized $fssize >>$seqres.full 2>&1
_scratch_mkfs_size also validates the available space for other block based file systems, so I think we should just remove this code entirely (assuming I didn't miss something important)
Re: [PATCH 12/16] xfstests: remove dependency on /proc/partitions for generic/312
Quoted 6 lines · Christoph Hellwig
Quoted 6 lines
tests/generic/312 +6
-0+# We don't need to do this check for tmpfs because _scratch_mkfs_size +# will validate the size against the available memory +if [ "$FSTYP" != "tmpfs" ]; then + _scratch_mkfs + _scratch_mount + _require_fs_space $SCRATCH_MNT $(($fssize / 1024))
Quoted 8 lines
tests/generic/312 _require_scratch · line 64
Quoted 4 lines
tests/generic/312 +2
-0+ _scratch_unmount +fi rm -f $seqres.full _scratch_mkfs_sized $fssize >>$seqres.full 2>&1
_scratch_mkfs_sizealso validates the available space for other block based file systems, so I think we should just remove this code entirely (assuming I didn't miss something important)
I agreed, not sure why I wrote this check in the first place..
Thanks,
Eryu
PATCH v3 13/16 xfstests: generic/079 and generic/277 requires chattr, not xattrs
In reply to Theodore Ts'oFrom: Hugh Dickins <[email protected]>
Add a new helper, _require_chattr, which allows the test to explicitly check to see if the file system supports a specific chattr flag, as not all file systems support chattr +A or chattr +i, and the presence of extended attribute support is has nothing to do with a specific chattr flag being supported.
--- common/rc | 16 ++++++++++++++++ tests/generic/079 | 2 +- tests/generic/277 | 2 +- 3 files changed, 18 insertions(+), 2 deletions(-)
common/rc +16 -0
@@ -3133,6 +3133,22 @@ _xfs_bmapx_find() { "$XFS_IO_PROG" -c "bmap -${param}lpv" "$file" | grep -c "$@" } +_require_chattr() +{ + attribute=$1 + + touch $TEST_DIR/syscalltest + chattr "+$attribute" $TEST_DIR/syscalltest > $TEST_DIR/syscalltest.out 2>&1 + status=$? + chattr "-$attribute" $TEST_DIR/syscalltest > $TEST_DIR/syscalltest.out 2>&1 + if [ "$status" -ne 0 ]; then + _notrun "file system doesn't support chattr +$attribute" + fi + cat $TEST_DIR/syscalltest.out >> $seqres.full + + rm -f $TEST_DIR/syscalltest.out +} + _get_total_inode() { if [ -z "$1" ]; then
tests/generic/079 +1 -1
@@ -48,7 +48,7 @@ _cleanup() _supported_fs generic _supported_os Linux -_require_attrs +_require_chattr i _require_scratch [ -x $timmutable ] || _notrun "t_immutable was not built for this platform"
tests/generic/277 +1 -1
@@ -44,7 +44,7 @@ trap "_cleanup ; exit \$status" 0 1 2 3 15 _supported_fs generic _supported_os Linux _require_scratch -_require_attrs +_require_chattr A _scratch_mkfs > /dev/null 2>&1 _scratch_mount
Signature · 1 line
2.5.0
Re: [PATCH 13/16] xfstests: generic/079 and generic/277 requires chattr, not xattrs
Looks fine,
PATCH v3 14/16 xfstests: add executable permission to tests
In reply to Theodore Ts'oFrom: Hugh Dickins <[email protected]>
--- tests/btrfs/026 | 0 tests/btrfs/104 | 0 tests/btrfs/114 | 0 tests/generic/058 | 0 tests/generic/060 | 0 tests/generic/061 | 0 tests/generic/063 | 0 tests/generic/092 | 0 tests/generic/094 | 0 tests/generic/103 | 0 tests/xfs/140 | 0 11 files changed, 0 insertions(+), 0 deletions(-) mode change 100644 => 100755 tests/btrfs/026 mode change 100644 => 100755 tests/btrfs/104 mode change 100644 => 100755 tests/btrfs/114 mode change 100644 => 100755 tests/generic/058 mode change 100644 => 100755 tests/generic/060 mode change 100644 => 100755 tests/generic/061 mode change 100644 => 100755 tests/generic/063 mode change 100644 => 100755 tests/generic/092 mode change 100644 => 100755 tests/generic/094 mode change 100644 => 100755 tests/generic/103 mode change 100644 => 100755 tests/xfs/140
tests/btrfs/026 +0 -0
tests/btrfs/104 +0 -0
tests/btrfs/114 +0 -0
tests/generic/058 +0 -0
tests/generic/060 +0 -0
tests/generic/061 +0 -0
tests/generic/063 +0 -0
tests/generic/092 +0 -0
tests/generic/094 +0 -0
tests/generic/103 +0 -0
tests/xfs/140 +0 -0
Signature · 1 line
2.5.0
Re: [PATCH 14/16] xfstests: add executable permission to tests
Quoted 4 lines · Theodore Ts'o
From: Hugh Dickins <[email protected]>
Signed-off-by Hugh Dickins <[email protected]>Signed-off-by Theodore Ts'o <[email protected]>
A little changelog would be nice. But if this fixes the changing permissions after the tests are actually run I'm all for it!
PATCH v3 15/16 xfstests: increase tmpfs memory size
In reply to Theodore Ts'oFrom: Hugh Dickins <[email protected]>
512M is not enough for generic/129. Raise default tmpfs size to 1G.
--- common/config | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
common/config +2 -2
@@ -316,8 +316,8 @@ _mount_opts() export MOUNT_OPTIONS="-o acl $GFS2_MOUNT_OPTIONS" ;; tmpfs) - # We need to specify the size at mount, use 512 MB by default - export MOUNT_OPTIONS="-o size=512M $TMPFS_MOUNT_OPTIONS" + # We need to specify the size at mount, use 1G by default + export MOUNT_OPTIONS="-o size=1G $TMPFS_MOUNT_OPTIONS" ;; *) ;;
Signature · 1 line
2.5.0
Re: [PATCH 15/16] xfstests: increase tmpfs memory size
Quoted 3 lines · Theodore Ts'o
From: Hugh Dickins <[email protected]>
512M is not enough for generic/129. Raise default tmpfs size to 1G.
That also means generic/129 should check for the available space.
Otherwise I'm fine with if if you tmpfs testers think 1G is the proper default.
PATCH v3 16/16 xfstests: remove _need_to_be_root
In reply to Theodore Ts'oThe check script requires that it be run as root, so adding individualized checks for this in each teat is not needed.
--- README | 4 ---- common/dump | 2 -- common/rc | 13 ------------- tests/btrfs/002 | 1 - tests/btrfs/003 | 1 - tests/btrfs/004 | 1 - tests/btrfs/007 | 1 - tests/btrfs/011 | 1 - tests/btrfs/017 | 1 - tests/btrfs/025 | 1 - tests/btrfs/026 | 1 - tests/btrfs/029 | 1 - tests/btrfs/030 | 1 - tests/btrfs/031 | 1 - tests/btrfs/034 | 1 - tests/btrfs/037 | 1 - tests/btrfs/038 | 1 - tests/btrfs/039 | 1 - tests/btrfs/040 | 1 - tests/btrfs/041 | 1 - tests/btrfs/043 | 1 - tests/btrfs/044 | 1 - tests/btrfs/045 | 1 - tests/btrfs/046 | 1 - tests/btrfs/047 | 1 - tests/btrfs/048 | 1 - tests/btrfs/049 | 1 - tests/btrfs/050 | 1 - tests/btrfs/051 | 1 - tests/btrfs/052 | 1 - tests/btrfs/053 | 1 - tests/btrfs/054 | 1 - tests/btrfs/055 | 1 - tests/btrfs/056 | 1 - tests/btrfs/057 | 1 - tests/btrfs/058 | 1 - tests/btrfs/059 | 1 - tests/btrfs/076 | 1 - tests/btrfs/077 | 1 - tests/btrfs/078 | 1 - tests/btrfs/079 | 1 - tests/btrfs/080 | 1 - tests/btrfs/081 | 1 - tests/btrfs/083 | 1 - tests/btrfs/084 | 1 - tests/btrfs/085 | 1 - tests/btrfs/086 | 1 - tests/btrfs/087 | 1 - tests/btrfs/088 | 1 - tests/btrfs/089 | 1 - tests/btrfs/091 | 1 - tests/btrfs/092 | 1 - tests/btrfs/093 | 1 - tests/btrfs/094 | 1 - tests/btrfs/095 | 1 - tests/btrfs/096 | 1 - tests/btrfs/097 | 1 - tests/btrfs/098 | 1 - tests/btrfs/099 | 1 - tests/btrfs/100 | 1 - tests/btrfs/101 | 1 - tests/btrfs/102 | 1 - tests/btrfs/103 | 1 - tests/btrfs/104 | 1 - tests/btrfs/105 | 3 +-- tests/btrfs/106 | 1 - tests/btrfs/107 | 1 - tests/btrfs/108 | 1 - tests/btrfs/109 | 1 - tests/btrfs/110 | 1 - tests/btrfs/111 | 1 - tests/btrfs/112 | 1 - tests/btrfs/113 | 1 - tests/btrfs/116 | 1 - tests/btrfs/117 | 1 - tests/ext4/271 | 1 - tests/ext4/301 | 1 - tests/ext4/302 | 1 - tests/ext4/303 | 1 - tests/ext4/304 | 1 - tests/ext4/307 | 1 - tests/ext4/308 | 1 - tests/generic/019 | 1 - tests/generic/026 | 1 - tests/generic/034 | 1 - tests/generic/037 | 1 - tests/generic/038 | 1 - tests/generic/039 | 1 - tests/generic/040 | 1 - tests/generic/041 | 1 - tests/generic/056 | 1 - tests/generic/057 | 1 - tests/generic/059 | 1 - tests/generic/065 | 1 - tests/generic/066 | 1 - tests/generic/071 | 1 - tests/generic/073 | 1 - tests/generic/090 | 1 - tests/generic/093 | 2 -- tests/generic/098 | 1 - tests/generic/101 | 1 - tests/generic/102 | 1 - tests/generic/104 | 1 - tests/generic/106 | 1 - tests/generic/107 | 1 - tests/generic/177 | 1 - tests/generic/193 | 1 - tests/generic/230 | 1 - tests/generic/231 | 1 - tests/generic/232 | 1 - tests/generic/233 | 1 - tests/generic/234 | 1 - tests/generic/235 | 1 - tests/generic/237 | 1 - tests/generic/265 | 1 - tests/generic/266 | 1 - tests/generic/267 | 1 - tests/generic/268 | 1 - tests/generic/269 | 1 - tests/generic/270 | 1 - tests/generic/271 | 1 - tests/generic/272 | 1 - tests/generic/276 | 1 - tests/generic/278 | 1 - tests/generic/279 | 1 - tests/generic/281 | 1 - tests/generic/282 | 1 - tests/generic/283 | 1 - tests/generic/299 | 1 - tests/generic/300 | 1 - tests/generic/311 | 1 - tests/generic/314 | 1 - tests/generic/317 | 1 - tests/generic/318 | 1 - tests/generic/319 | 1 - tests/generic/321 | 1 - tests/generic/322 | 1 - tests/generic/324 | 1 - tests/generic/325 | 1 - tests/shared/002 | 1 - tests/shared/051 | 1 - tests/shared/272 | 1 - tests/xfs/003 | 2 -- tests/xfs/004 | 1 - tests/xfs/067 | 1 - tests/xfs/114 | 1 - tests/xfs/189 | 1 - 147 files changed, 1 insertion(+), 166 deletions(-)
README +0 -4
@@ -172,10 +172,6 @@ Test script environment: 3. By default, tests are run as the same uid as the person executing the control script "check" that runs the test scripts. - If you need to be root, add a call to the shell procedure - _need_to_be_root ... this will do nothing or exit with an - error message depending on your current uid. - 4. Some other useful shell procedures: _get_fqdn - echo the host's fully qualified
common/dump +0 -2
@@ -60,8 +60,6 @@ session_label="stress_$seq" nobody=4 # define this uid/gid as a number do_quota_check=true # do quota check if quotas enabled -_need_to_be_root - # install our cleaner trap "_cleanup; exit \$status" 0 1 2 3 15
common/rc +0 -13
@@ -1076,19 +1076,6 @@ _fix_malloc() ' } -# check if run as root -# -_need_to_be_root() -{ - id=`id | $SED_PROG -e 's/(.*//' -e 's/.*=//'` - if [ "$id" -ne 0 ] - then - echo "Arrgh ... you need to be root (not uid=$id) to run this test" - exit 1 - fi -} - - # # _df_device : get an IRIX style df line for a given device #
tests/btrfs/002 +0 -1
@@ -41,7 +41,6 @@ trap "_cleanup ; exit \$status" 0 1 2 3 15 . ./common/rc . ./common/filter -_need_to_be_root _supported_fs btrfs _supported_os Linux _require_scratch
tests/btrfs/003 +0 -1
@@ -46,7 +46,6 @@ _cleanup() . ./common/rc . ./common/filter -_need_to_be_root _supported_fs btrfs _supported_os Linux _require_scratch
tests/btrfs/004 +0 -1
@@ -47,7 +47,6 @@ trap "_cleanup; exit \$status" 0 1 2 3 15 . ./common/filter # real QA test starts here -_need_to_be_root _supported_fs btrfs _supported_os Linux _require_scratch
tests/btrfs/007 +0 -1
@@ -47,7 +47,6 @@ trap "_cleanup; exit \$status" 0 1 2 3 15 . ./common/filter # real QA test starts here -_need_to_be_root _supported_fs btrfs _supported_os Linux _require_scratch
tests/btrfs/011 +0 -1
@@ -59,7 +59,6 @@ trap "_cleanup; exit \$status" 0 1 2 3 15 . ./common/filter # real QA test starts here -_need_to_be_root _supported_fs btrfs _require_scratch_nocheck _require_scratch_dev_pool 4
tests/btrfs/017 +0 -1
@@ -48,7 +48,6 @@ _cleanup() # real QA test starts here -_need_to_be_root _supported_fs btrfs _supported_os Linux _require_scratch
tests/btrfs/025 +0 -1
@@ -47,7 +47,6 @@ _cleanup() _supported_fs btrfs _supported_os Linux _require_scratch -_need_to_be_root rm -f $seqres.full
tests/btrfs/026 +0 -1
@@ -42,7 +42,6 @@ _cleanup() . ./common/filter # real QA test starts here -_need_to_be_root _supported_fs btrfs _supported_os Linux _require_scratch
tests/btrfs/029 +0 -1
@@ -55,7 +55,6 @@ _supported_os Linux _require_test _require_scratch _require_cp_reflink -_need_to_be_root reflink_test_dir=$TEST_DIR/test-$seq rm -rf $reflink_test_dir
tests/btrfs/030 +0 -1
@@ -54,7 +54,6 @@ _supported_fs btrfs _supported_os Linux _require_scratch _require_fssum -_need_to_be_root rm -f $seqres.full
tests/btrfs/031 +0 -1
@@ -52,7 +52,6 @@ _supported_os Linux _require_test _require_scratch _require_cp_reflink -_need_to_be_root _checksum_files() {
tests/btrfs/034 +0 -1
@@ -44,7 +44,6 @@ _cleanup() _supported_fs btrfs _supported_os Linux _require_scratch -_need_to_be_root rm -f $seqres.full
tests/btrfs/037 +0 -1
@@ -51,7 +51,6 @@ _cleanup() _supported_fs btrfs _supported_os Linux _require_scratch -_need_to_be_root rm -f $seqres.full
tests/btrfs/038 +0 -1
@@ -50,7 +50,6 @@ _supported_fs btrfs _supported_os Linux _require_scratch _require_fssum -_need_to_be_root rm -f $seqres.full
tests/btrfs/039 +0 -1
@@ -53,7 +53,6 @@ _supported_fs btrfs _supported_os Linux _require_scratch _require_fssum -_need_to_be_root rm -f $seqres.full
tests/btrfs/040 +0 -1
@@ -53,7 +53,6 @@ _supported_fs btrfs _supported_os Linux _require_scratch _require_fssum -_need_to_be_root rm -f $seqres.full
tests/btrfs/041 +0 -1
@@ -53,7 +53,6 @@ _supported_fs btrfs _supported_os Linux _require_test _require_scratch -_need_to_be_root rm -f $seqres.full mkdir $restore_dir
tests/btrfs/043 +0 -1
@@ -49,7 +49,6 @@ _supported_fs btrfs _supported_os Linux _require_scratch _require_fssum -_need_to_be_root rm -f $seqres.full
tests/btrfs/044 +0 -1
@@ -54,7 +54,6 @@ _supported_fs btrfs _supported_os Linux _require_scratch _require_fssum -_need_to_be_root rm -f $seqres.full
tests/btrfs/045 +0 -1
@@ -70,7 +70,6 @@ _supported_fs btrfs _supported_os Linux _require_scratch _require_fssum -_need_to_be_root rm -f $seqres.full
tests/btrfs/046 +0 -1
@@ -54,7 +54,6 @@ _supported_os Linux _require_test _require_scratch _require_fssum -_need_to_be_root rm -f $seqres.full rm -fr $send_files_dir
tests/btrfs/047 +0 -1
@@ -62,7 +62,6 @@ _require_scratch _require_fssum _require_xfs_io_command "fiemap" _require_btrfs_send_stream_version -_need_to_be_root send_files_dir=$TEST_DIR/btrfs-test-$seq
tests/btrfs/048 +0 -1
@@ -48,7 +48,6 @@ _supported_os Linux _require_test _require_scratch _require_btrfs "property" -_need_to_be_root send_files_dir=$TEST_DIR/btrfs-test-$seq
tests/btrfs/049 +0 -1
@@ -48,7 +48,6 @@ _cleanup() # real QA test starts here _supported_fs btrfs _supported_os Linux -_need_to_be_root _require_scratch _require_dm_target flakey
tests/btrfs/050 +0 -1
@@ -54,7 +54,6 @@ _supported_os Linux _require_test _require_scratch _require_fssum -_need_to_be_root send_files_dir=$TEST_DIR/btrfs-test-$seq
tests/btrfs/051 +0 -1
@@ -51,7 +51,6 @@ _supported_os Linux _require_test _require_scratch _require_fssum -_need_to_be_root send_files_dir=$TEST_DIR/btrfs-test-$seq
tests/btrfs/052 +0 -1
@@ -45,7 +45,6 @@ _supported_fs btrfs _supported_os Linux _require_scratch _require_cloner -_need_to_be_root rm -f $seqres.full
tests/btrfs/053 +0 -1
@@ -54,7 +54,6 @@ _require_test _require_scratch _require_fssum _require_attrs -_need_to_be_root # max(16384, PAGE_SIZE) is the default leaf/node size on btrfs-progs v3.12+. # Older versions just use max(4096, PAGE_SIZE).
tests/btrfs/054 +0 -1
@@ -60,7 +60,6 @@ _supported_fs btrfs _supported_os Linux _require_test _require_scratch -_need_to_be_root send_files_dir=$TEST_DIR/btrfs-test-$seq
tests/btrfs/055 +0 -1
@@ -51,7 +51,6 @@ _require_scratch _require_cloner _require_btrfs_fs_feature "no_holes" _require_btrfs_mkfs_feature "no-holes" -_need_to_be_root rm -f $seqres.full
tests/btrfs/056 +0 -1
@@ -56,7 +56,6 @@ _require_cloner _require_btrfs_fs_feature "no_holes" _require_btrfs_mkfs_feature "no-holes" _require_dm_target flakey -_need_to_be_root rm -f $seqres.full
tests/btrfs/057 +0 -1
@@ -42,7 +42,6 @@ trap "_cleanup; exit \$status" 0 1 2 3 15 . ./common/filter # real QA test starts here -_need_to_be_root _supported_fs btrfs _supported_os Linux _require_scratch
tests/btrfs/058 +0 -1
@@ -56,7 +56,6 @@ _require_scratch # Requiring flink command tests for the presence of the -T option used # to pass O_TMPFILE to open(2). _require_xfs_io_command "flink" -_need_to_be_root rm -f $seqres.full
tests/btrfs/059 +0 -1
@@ -51,7 +51,6 @@ _supported_os Linux _require_test _require_scratch _require_btrfs "property" -_need_to_be_root rm -f $seqres.full
tests/btrfs/076 +0 -1
@@ -50,7 +50,6 @@ _supported_fs btrfs _supported_os Linux _require_test _require_scratch -_need_to_be_root rm -f $seqres.full
tests/btrfs/077 +0 -1
@@ -58,7 +58,6 @@ _supported_fs btrfs _supported_os Linux _require_scratch _require_fssum -_need_to_be_root send_files_dir=$TEST_DIR/btrfs-test-$seq
tests/btrfs/078 +0 -1
@@ -48,7 +48,6 @@ _cleanup() . ./common/filter # real QA test starts here -_need_to_be_root _supported_fs btrfs _supported_os Linux _require_scratch
tests/btrfs/079 +0 -1
@@ -58,7 +58,6 @@ _cleanup() _supported_fs btrfs _supported_os Linux _require_scratch -_need_to_be_root # Since xfs_io's fiemap always use SYNC flag and can't be unset, # we must use filefrag to call fiemap without SYNC flag. _require_command "/usr/sbin/filefrag" filefrag
tests/btrfs/080 +0 -1
@@ -53,7 +53,6 @@ _cleanup() . ./common/filter # real QA test starts here -_need_to_be_root _supported_fs btrfs _supported_os Linux _require_scratch_nocheck
tests/btrfs/081 +0 -1
@@ -50,7 +50,6 @@ _cleanup() . ./common/filter # real QA test starts here -_need_to_be_root _supported_fs btrfs _supported_os Linux _require_scratch
tests/btrfs/083 +0 -1
@@ -52,7 +52,6 @@ _supported_fs btrfs _supported_os Linux _require_scratch _require_fssum -_need_to_be_root send_files_dir=$TEST_DIR/btrfs-test-$seq
tests/btrfs/084 +0 -1
@@ -51,7 +51,6 @@ _supported_fs btrfs _supported_os Linux _require_scratch _require_fssum -_need_to_be_root send_files_dir=$TEST_DIR/btrfs-test-$seq
tests/btrfs/085 +0 -1
@@ -55,7 +55,6 @@ _supported_fs btrfs _supported_os Linux _require_scratch _require_dm_target flakey -_need_to_be_root BTRFS_DEBUG_TREE_PROG="`set_prog_path btrfs-debug-tree`" _require_command "$BTRFS_DEBUG_TREE_PROG" btrfs-debug-tree
tests/btrfs/086 +0 -1
@@ -53,7 +53,6 @@ _supported_fs btrfs _supported_os Linux _require_scratch _require_cloner -_need_to_be_root rm -f $seqres.full
tests/btrfs/087 +0 -1
@@ -57,7 +57,6 @@ _supported_fs btrfs _supported_os Linux _require_scratch _require_fssum -_need_to_be_root send_files_dir=$TEST_DIR/btrfs-test-$seq
tests/btrfs/088 +0 -1
@@ -51,7 +51,6 @@ _supported_fs btrfs _supported_os Linux _require_scratch _require_fail_make_request -_need_to_be_root SYSFS_BDEV=`_sysfs_dev $SCRATCH_DEV`
tests/btrfs/089 +0 -1
@@ -46,7 +46,6 @@ _cleanup() # real QA test starts here # Modify as appropriate. -_need_to_be_root _supported_fs btrfs _supported_os Linux _require_scratch
tests/btrfs/091 +0 -1
@@ -43,7 +43,6 @@ _cleanup() # real QA test starts here -_need_to_be_root _supported_fs btrfs _supported_os Linux _require_scratch
tests/btrfs/092 +0 -1
@@ -56,7 +56,6 @@ _supported_fs btrfs _supported_os Linux _require_scratch _require_fssum -_need_to_be_root send_files_dir=$TEST_DIR/btrfs-test-$seq
tests/btrfs/093 +0 -1
@@ -50,7 +50,6 @@ _supported_fs btrfs _supported_os Linux _require_scratch _require_cloner -_need_to_be_root rm -f $seqres.full
tests/btrfs/094 +0 -1
@@ -56,7 +56,6 @@ _supported_fs btrfs _supported_os Linux _require_scratch _require_cloner -_need_to_be_root send_files_dir=$TEST_DIR/btrfs-test-$seq
tests/btrfs/095 +0 -1
@@ -48,7 +48,6 @@ _cleanup() . ./common/dmflakey # real QA test starts here -_need_to_be_root _supported_fs btrfs _supported_os Linux _require_scratch
tests/btrfs/096 +0 -1
@@ -40,7 +40,6 @@ _cleanup() . ./common/filter # real QA test starts here -_need_to_be_root _supported_fs btrfs _supported_os Linux _require_scratch
tests/btrfs/097 +0 -1
@@ -46,7 +46,6 @@ _supported_fs btrfs _supported_os Linux _require_scratch _require_cloner -_need_to_be_root send_files_dir=$TEST_DIR/btrfs-test-$seq
tests/btrfs/098 +0 -1
@@ -44,7 +44,6 @@ _cleanup() . ./common/dmflakey # real QA test starts here -_need_to_be_root _supported_fs btrfs _supported_os Linux _require_scratch
tests/btrfs/099 +0 -1
@@ -46,7 +46,6 @@ _cleanup() _supported_fs btrfs _supported_os Linux _require_scratch -_need_to_be_root # Use big blocksize to ensure there is still enough space left for metadata # space reserve.
tests/btrfs/100 +0 -1
@@ -44,7 +44,6 @@ _cleanup() _supported_fs btrfs _supported_os Linux -_need_to_be_root _require_scratch_dev_pool 3 _require_dm_target error
tests/btrfs/101 +0 -1
@@ -44,7 +44,6 @@ _cleanup() _supported_fs btrfs _supported_os Linux -_need_to_be_root _require_scratch_dev_pool 3 _require_btrfs_dev_del_by_devid _require_dm_target error
tests/btrfs/102 +0 -1
@@ -41,7 +41,6 @@ _cleanup() . ./common/filter # real QA test starts here -_need_to_be_root _supported_fs btrfs _supported_os Linux _require_scratch
tests/btrfs/103 +0 -1
@@ -41,7 +41,6 @@ _cleanup() . ./common/filter # real QA test starts here -_need_to_be_root _supported_fs btrfs _supported_os Linux _require_scratch
tests/btrfs/104 +0 -1
@@ -58,7 +58,6 @@ rm -f $seqres.full _supported_fs btrfs _supported_os Linux _require_scratch -_need_to_be_root rm -f $seqres.full
tests/btrfs/105 +1 -2
@@ -48,7 +48,6 @@ _cleanup() _supported_fs btrfs _supported_os Linux _require_scratch -_need_to_be_root send_files_dir=$TEST_DIR/btrfs-test-$seq
@@ -109,4 +108,4 @@ echo "File digest in the new filesystem:" md5sum $SCRATCH_MNT/mysnap2_ro/foo/bar | _filter_scratch status=0 -exit +exit
tests/btrfs/106 +0 -1
@@ -43,7 +43,6 @@ _cleanup() . ./common/filter # real QA test starts here -_need_to_be_root _supported_fs btrfs _supported_os Linux _require_scratch
tests/btrfs/107 +0 -1
@@ -50,7 +50,6 @@ rm -f $seqres.full _supported_fs btrfs _supported_os Linux _require_scratch -_need_to_be_root # Use 64K file size to match any sectorsize # And with a unaligned tailing range to ensure it will be at least 2 pages
tests/btrfs/108 +0 -1
@@ -47,7 +47,6 @@ _cleanup() _supported_fs btrfs _supported_os Linux _require_scratch -_need_to_be_root _require_cp_reflink _require_xfs_io_command "fpunch"
tests/btrfs/109 +0 -1
@@ -47,7 +47,6 @@ _cleanup() _supported_fs btrfs _supported_os Linux _require_scratch -_need_to_be_root _require_cp_reflink send_files_dir=$TEST_DIR/btrfs-test-$seq
tests/btrfs/110 +0 -1
@@ -46,7 +46,6 @@ _cleanup() _supported_fs btrfs _supported_os Linux _require_scratch -_need_to_be_root send_files_dir=$TEST_DIR/btrfs-test-$seq
tests/btrfs/111 +0 -1
@@ -46,7 +46,6 @@ _cleanup() _supported_fs btrfs _supported_os Linux _require_scratch -_need_to_be_root send_files_dir=$TEST_DIR/btrfs-test-$seq
tests/btrfs/112 +0 -1
@@ -42,7 +42,6 @@ _cleanup() . ./common/filter # real QA test starts here -_need_to_be_root _supported_fs btrfs _supported_os Linux _require_scratch
tests/btrfs/113 +0 -1
@@ -44,7 +44,6 @@ _cleanup() . ./common/filter # real QA test starts here -_need_to_be_root _supported_fs btrfs _supported_os Linux _require_scratch
tests/btrfs/116 +0 -1
@@ -44,7 +44,6 @@ _cleanup() . ./common/filter # real QA test starts here -_need_to_be_root _supported_fs btrfs _supported_os Linux _require_scratch
tests/btrfs/117 +0 -1
@@ -49,7 +49,6 @@ _supported_fs btrfs _supported_os Linux _require_scratch _require_cp_reflink -_need_to_be_root rm -f $seqres.full
tests/ext4/271 +0 -1
@@ -38,7 +38,6 @@ trap "rm -f $tmp.*; exit \$status" 0 1 2 3 15 # real QA test starts here _supported_fs ext4 _supported_os Linux -_need_to_be_root _require_scratch rm -f $seqres.full
tests/ext4/301 +0 -1
@@ -40,7 +40,6 @@ trap "rm -f $tmp.*; exit \$status" 0 1 2 3 15 # real QA test starts here _supported_os Linux _supported_fs ext4 -_need_to_be_root _require_scratch _require_defrag
tests/ext4/302 +0 -1
@@ -41,7 +41,6 @@ trap "rm -f $tmp.*; exit \$status" 0 1 2 3 15 # real QA test starts here _supported_os Linux _supported_fs ext4 -_need_to_be_root _require_scratch _require_defrag
tests/ext4/303 +0 -1
@@ -41,7 +41,6 @@ trap "rm -f $tmp.*; exit \$status" 0 1 2 3 15 # real QA test starts here _supported_os Linux _supported_fs ext4 -_need_to_be_root _require_scratch _require_defrag
tests/ext4/304 +0 -1
@@ -42,7 +42,6 @@ trap "rm -f $tmp.*; exit \$status" 0 1 2 3 15 # real QA test starts here _supported_os Linux _supported_fs ext4 -_need_to_be_root _require_scratch _require_defrag
tests/ext4/307 +0 -1
@@ -61,7 +61,6 @@ _workout() _supported_fs generic _supported_fs ext4 _supported_os Linux -_need_to_be_root _require_scratch _require_defrag _require_xfs_io_command "falloc"
tests/ext4/308 +0 -1
@@ -43,7 +43,6 @@ _cleanup() # real QA test starts here _supported_os Linux -_need_to_be_root _require_scratch _require_defrag _require_xfs_io_command "falloc"
tests/generic/019 +0 -1
@@ -37,7 +37,6 @@ status=1 # failure is the default! . ./common/filter _supported_fs generic _supported_os Linux -_need_to_be_root _require_scratch _require_fail_make_request
tests/generic/026 +0 -1
@@ -50,7 +50,6 @@ _supported_fs generic _supported_os Linux _require_test _require_scratch -_need_to_be_root _acl_setup_ids _require_acls _require_acl_get_max
tests/generic/034 +0 -1
@@ -50,7 +50,6 @@ trap "_cleanup; exit \$status" 0 1 2 3 15 # real QA test starts here _supported_fs generic _supported_os Linux -_need_to_be_root _require_scratch _require_dm_target flakey _require_metadata_journaling $SCRATCH_DEV
tests/generic/037 +0 -1
@@ -51,7 +51,6 @@ _cleanup() . ./common/attr # real QA test starts here -_need_to_be_root _supported_fs generic _supported_os Linux _require_scratch
tests/generic/038 +0 -1
@@ -65,7 +65,6 @@ _cleanup() . ./common/filter # real QA test starts here -_need_to_be_root _supported_fs generic _supported_os Linux _require_scratch
tests/generic/039 +0 -1
@@ -54,7 +54,6 @@ trap "_cleanup; exit \$status" 0 1 2 3 15 # real QA test starts here _supported_fs generic _supported_os Linux -_need_to_be_root _require_scratch _require_dm_target flakey _require_metadata_journaling $SCRATCH_DEV
tests/generic/040 +0 -1
@@ -59,7 +59,6 @@ trap "_cleanup; exit \$status" 0 1 2 3 15 # real QA test starts here _supported_fs generic _supported_os Linux -_need_to_be_root _require_scratch _require_dm_target flakey _require_metadata_journaling $SCRATCH_DEV
tests/generic/041 +0 -1
@@ -63,7 +63,6 @@ trap "_cleanup; exit \$status" 0 1 2 3 15 # real QA test starts here _supported_fs generic _supported_os Linux -_need_to_be_root _require_scratch _require_dm_target flakey _require_metadata_journaling $SCRATCH_DEV
tests/generic/056 +0 -1
@@ -52,7 +52,6 @@ trap "_cleanup; exit \$status" 0 1 2 3 15 # real QA test starts here _supported_fs generic _supported_os Linux -_need_to_be_root _require_scratch _require_dm_target flakey _require_metadata_journaling $SCRATCH_DEV
tests/generic/057 +0 -1
@@ -52,7 +52,6 @@ trap "_cleanup; exit \$status" 0 1 2 3 15 # real QA test starts here _supported_fs generic _supported_os Linux -_need_to_be_root _require_scratch _require_dm_target flakey _require_metadata_journaling $SCRATCH_DEV
tests/generic/059 +0 -1
@@ -57,7 +57,6 @@ trap "_cleanup; exit \$status" 0 1 2 3 15 # real QA test starts here _supported_fs generic _supported_os Linux -_need_to_be_root _require_scratch _require_dm_target flakey _require_metadata_journaling $SCRATCH_DEV
tests/generic/065 +0 -1
@@ -53,7 +53,6 @@ trap "_cleanup; exit \$status" 0 1 2 3 15 # real QA test starts here _supported_fs generic _supported_os Linux -_need_to_be_root _require_scratch _require_dm_target flakey _require_metadata_journaling $SCRATCH_DEV
tests/generic/066 +0 -1
@@ -57,7 +57,6 @@ trap "_cleanup; exit \$status" 0 1 2 3 15 # real QA test starts here _supported_fs generic _supported_os Linux -_need_to_be_root _require_scratch _require_dm_target flakey _require_attrs
tests/generic/071 +0 -1
@@ -45,7 +45,6 @@ trap "_cleanup; exit \$status" 0 1 2 3 15 # real QA test starts here _supported_fs generic _supported_os Linux -_need_to_be_root _require_scratch _require_xfs_io_command "falloc"
tests/generic/073 +0 -1
@@ -53,7 +53,6 @@ trap "_cleanup; exit \$status" 0 1 2 3 15 # real QA test starts here _supported_fs generic _supported_os Linux -_need_to_be_root _require_scratch _require_dm_target flakey _require_metadata_journaling $SCRATCH_DEV
tests/generic/090 +0 -1
@@ -51,7 +51,6 @@ trap "_cleanup; exit \$status" 0 1 2 3 15 # real QA test starts here _supported_fs generic _supported_os Linux -_need_to_be_root _require_scratch _require_dm_target flakey _require_metadata_journaling $SCRATCH_DEV
tests/generic/093 +0 -2
@@ -65,8 +65,6 @@ _require_attrs rm -f $seqres.full -_need_to_be_root - echo "QA output created by $seq" echo "" file=$TEST_DIR/$seq.file
tests/generic/098 +0 -1
@@ -46,7 +46,6 @@ _cleanup() . ./common/filter # real QA test starts here -_need_to_be_root _supported_fs generic _supported_os Linux _require_scratch
tests/generic/101 +0 -1
@@ -47,7 +47,6 @@ _cleanup() . ./common/dmflakey # real QA test starts here -_need_to_be_root _supported_fs generic _supported_os Linux _require_scratch
tests/generic/102 +0 -1
@@ -41,7 +41,6 @@ trap "exit \$status" 0 1 2 3 15 . ./common/filter # real QA test starts here -_need_to_be_root _supported_fs generic _supported_os Linux _require_scratch
tests/generic/104 +0 -1
@@ -45,7 +45,6 @@ _cleanup() . ./common/dmflakey # real QA test starts here -_need_to_be_root _supported_fs generic _supported_os Linux _require_scratch
tests/generic/106 +0 -1
@@ -44,7 +44,6 @@ _cleanup() . ./common/dmflakey # real QA test starts here -_need_to_be_root _supported_fs generic _supported_os Linux _require_scratch
tests/generic/107 +0 -1
@@ -47,7 +47,6 @@ _cleanup() . ./common/dmflakey # real QA test starts here -_need_to_be_root _supported_fs generic _supported_os Linux _require_scratch
tests/generic/177 +0 -1
@@ -48,7 +48,6 @@ _cleanup() . ./common/dmflakey # real QA test starts here -_need_to_be_root _supported_fs generic _supported_os Linux _require_scratch
tests/generic/193 +0 -1
@@ -72,7 +72,6 @@ _supported_os Linux _require_test _require_user -_need_to_be_root test_root=$TEST_DIR/$seq.$$.root test_user=$TEST_DIR/$seq.$$.user
tests/generic/230 +0 -1
@@ -45,7 +45,6 @@ _supported_os Linux #IRIX _require_scratch _require_quota _require_user -_need_to_be_root test_files() {
tests/generic/231 +0 -1
@@ -69,7 +69,6 @@ _supported_os Linux _require_scratch _require_quota _require_user -_need_to_be_root _scratch_mkfs >> $seqres.full 2>&1 _scratch_mount "-o usrquota,grpquota"
tests/generic/232 +0 -1
@@ -69,7 +69,6 @@ _supported_fs generic _supported_os Linux _require_scratch _require_quota -_need_to_be_root _scratch_mkfs > $seqres.full 2>&1 _scratch_mount "-o usrquota,grpquota"
tests/generic/233 +0 -1
@@ -74,7 +74,6 @@ _supported_os Linux _require_scratch _require_quota _require_user -_need_to_be_root _scratch_mkfs > $seqres.full 2>&1 _scratch_mount "-o usrquota,grpquota"
tests/generic/234 +0 -1
@@ -91,7 +91,6 @@ _supported_fs generic _supported_os Linux #IRIX _require_scratch _require_quota -_need_to_be_root # real QA test starts here rm -f $seqres.full
tests/generic/235 +0 -1
@@ -45,7 +45,6 @@ _supported_os Linux #IRIX _require_scratch _require_quota _require_user -_need_to_be_root # real QA test starts here rm -f $seqres.full
tests/generic/237 +0 -1
@@ -55,7 +55,6 @@ _require_test rm -f $seqres.full -_need_to_be_root _acl_setup_ids _require_acls
tests/generic/265 +0 -1
@@ -46,7 +46,6 @@ _cleanup() _supported_os Linux _require_scratch_reflink _require_cp_reflink -_need_to_be_root _require_dm_target error rm -f $seqres.full
tests/generic/266 +0 -1
@@ -46,7 +46,6 @@ _cleanup() _supported_os Linux _require_scratch_reflink _require_cp_reflink -_need_to_be_root _require_dm_target error rm -f $seqres.full
tests/generic/267 +0 -1
@@ -46,7 +46,6 @@ _cleanup() _supported_os Linux _require_scratch_reflink _require_cp_reflink -_need_to_be_root _require_dm_target error rm -f $seqres.full
tests/generic/268 +0 -1
@@ -47,7 +47,6 @@ _cleanup() _supported_os Linux _require_scratch_reflink _require_cp_reflink -_need_to_be_root _require_dm_target error rm -f $seqres.full
tests/generic/269 +0 -1
@@ -64,7 +64,6 @@ _workout() # real QA test starts here _supported_fs generic _supported_os Linux -_need_to_be_root _require_scratch rm -f $seqres.full
tests/generic/270 +0 -1
@@ -78,7 +78,6 @@ _supported_fs generic _supported_os Linux _require_quota _require_user -_need_to_be_root _require_scratch rm -f $seqres.full
tests/generic/271 +0 -1
@@ -46,7 +46,6 @@ _cleanup() _supported_os Linux _require_scratch_reflink _require_cp_reflink -_need_to_be_root _require_dm_target error _require_odirect
tests/generic/272 +0 -1
@@ -46,7 +46,6 @@ _cleanup() _supported_os Linux _require_scratch_reflink _require_cp_reflink -_need_to_be_root _require_dm_target error _require_odirect
tests/generic/276 +0 -1
@@ -46,7 +46,6 @@ _cleanup() _supported_os Linux _require_scratch_reflink _require_cp_reflink -_need_to_be_root _require_dm_target error _require_odirect
tests/generic/278 +0 -1
@@ -47,7 +47,6 @@ _cleanup() _supported_os Linux _require_scratch_reflink _require_cp_reflink -_need_to_be_root _require_dm_target error _require_odirect
tests/generic/279 +0 -1
@@ -46,7 +46,6 @@ _cleanup() _supported_os Linux _require_scratch_reflink _require_cp_reflink -_need_to_be_root _require_dm_target error rm -f $seqres.full
tests/generic/281 +0 -1
@@ -46,7 +46,6 @@ _cleanup() _supported_os Linux _require_scratch_reflink _require_cp_reflink -_need_to_be_root _require_dm_target error rm -f $seqres.full
tests/generic/282 +0 -1
@@ -46,7 +46,6 @@ _cleanup() _supported_os Linux _require_scratch_reflink _require_cp_reflink -_need_to_be_root _require_dm_target error rm -f $seqres.full
tests/generic/283 +0 -1
@@ -47,7 +47,6 @@ _cleanup() _supported_os Linux _require_scratch_reflink _require_cp_reflink -_need_to_be_root _require_dm_target error rm -f $seqres.full
tests/generic/299 +0 -1
@@ -41,7 +41,6 @@ trap "rm -f $tmp.*; exit \$status" 0 1 2 3 15 # real QA test starts here _supported_fs generic _supported_os Linux -_need_to_be_root _require_scratch _require_odirect
tests/generic/300 +0 -1
@@ -41,7 +41,6 @@ trap "rm -f $tmp.*; exit \$status" 0 1 2 3 15 # real QA test starts here _supported_fs generic _supported_os Linux -_need_to_be_root _require_scratch _require_odirect
tests/generic/311 +0 -1
@@ -53,7 +53,6 @@ trap "_cleanup; exit \$status" 0 1 2 3 15 # real QA test starts here _supported_fs generic _supported_os Linux -_need_to_be_root _require_scratch_nocheck _require_dm_target flakey _require_metadata_journaling $SCRATCH_DEV
tests/generic/314 +0 -1
@@ -46,7 +46,6 @@ _supported_fs generic _require_test _require_acls _require_user -_need_to_be_root rm -rf $TEST_DIR/$seq-dir
tests/generic/317 +0 -1
@@ -58,7 +58,6 @@ _supported_os Linux rm -f $seqres.full _require_scratch -_need_to_be_root _require_user _require_ugid_map _require_userns
tests/generic/318 +0 -1
@@ -58,7 +58,6 @@ _supported_os Linux rm -f $seqres.full _require_scratch -_need_to_be_root _acl_setup_ids _require_acls _require_ugid_map
tests/generic/319 +0 -1
@@ -52,7 +52,6 @@ _supported_os Linux _supported_fs generic _require_acls _require_scratch -_need_to_be_root rm -f $seqres.full
tests/generic/321 +0 -1
@@ -42,7 +42,6 @@ trap "_cleanup; exit \$status" 0 1 2 3 15 # real QA test starts here _supported_fs generic _supported_os Linux -_need_to_be_root _require_scratch_nocheck _require_dm_target flakey _require_metadata_journaling $SCRATCH_DEV
tests/generic/322 +0 -1
@@ -42,7 +42,6 @@ trap "_cleanup; exit \$status" 0 1 2 3 15 # real QA test starts here _supported_fs generic _supported_os Linux -_need_to_be_root _require_scratch_nocheck _require_dm_target flakey _require_metadata_journaling $SCRATCH_DEV
tests/generic/324 +0 -1
@@ -41,7 +41,6 @@ _cleanup() # real QA test starts here _supported_os Linux -_need_to_be_root _require_scratch _require_defrag _require_xfs_io_command "falloc"
tests/generic/325 +0 -1
@@ -52,7 +52,6 @@ trap "_cleanup; exit \$status" 0 1 2 3 15 # real QA test starts here _supported_fs generic _supported_os Linux -_need_to_be_root _require_scratch _require_dm_target flakey _require_metadata_journaling $SCRATCH_DEV
tests/shared/002 +0 -1
@@ -57,7 +57,6 @@ trap "_cleanup; exit \$status" 0 1 2 3 15 # less than 1000 xattrs with very small values. _supported_fs btrfs xfs _supported_os Linux -_need_to_be_root _require_scratch _require_dm_target flakey _require_attrs
tests/shared/051 +0 -1
@@ -76,7 +76,6 @@ _require_test rm -f $seqres.full -_need_to_be_root _acl_setup_ids _require_acls
tests/shared/272 +0 -1
@@ -84,7 +84,6 @@ chattr_opt: $chattr_opt" >>$seqres.full # real QA test starts here _supported_fs ext3 ext4 _supported_os Linux -_need_to_be_root _require_scratch rm -f $seqres.full
tests/xfs/003 +0 -2
@@ -35,8 +35,6 @@ here=`pwd` status=0 # success is the default! trap "rm -f $tmp.*; exit \$status" 0 1 2 3 15 -_need_to_be_root - # real QA test starts here _supported_fs xfs _supported_os IRIX Linux
tests/xfs/004 +0 -1
@@ -60,7 +60,6 @@ _populate_scratch() _supported_fs xfs _supported_os IRIX Linux -_need_to_be_root _require_scratch _require_no_large_scratch_dev
tests/xfs/067 +0 -1
@@ -40,7 +40,6 @@ trap "rm -f $tmp.*; exit \$status" 0 1 2 3 15 _supported_fs xfs _supported_os Linux -_need_to_be_root _require_attrs _require_acls _require_scratch
tests/xfs/114 +0 -1
@@ -309,7 +309,6 @@ _supported_os IRIX _require_scratch _require_attrs -_need_to_be_root rm -f $seqres.full
tests/xfs/189 +0 -1
@@ -236,7 +236,6 @@ _putback_scratch_fstab() _supported_fs xfs _supported_os Linux -_need_to_be_root _require_scratch _require_noattr2
Signature · 1 line
2.5.0
Re: [PATCH 16/16] xfstests: remove _need_to_be_root
Looks good,
While you're at it it would be nice to also remove the odd instruction of adding the '123456-fsgqa' test user in README.
Re: [PATCH 16/16] xfstests: remove _need_to_be_root
Quoted 6 lines · Christoph Hellwig
Looks good,
Reviewed-by Christoph Hellwig <[email protected]>While you're at it it would be nice to also remove the odd instruction of adding the '123456-fsgqa' test user in README.
I think that user is actually used for quota testing? Yeah, see xfs/138.
Cheers,
Dave.
Signature · 2 lines
Dave Chinner [email protected]