From: Christoph Hellwig Date: Sun, 7 Feb 2016 22:27:15 +0000 (+1100) Subject: reflink: change to relative margins X-Git-Tag: v2022.05.01~2656 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=911efb0897a247a0fb944465459f375bb51a9c1f;p=xfstests-dev.git reflink: change to relative margins NFS uses 32K blocks and thus the numbers used for sanity checking various reflink operations are way off. Change to relative margings and increase them a bit to make NFS happy. Signed-off-by: Christoph Hellwig Reviewed-by: Dave Chinner Signed-off-by: Dave Chinner --- diff --git a/tests/generic/150 b/tests/generic/150 index f3a63114..90ac46b7 100755 --- a/tests/generic/150 +++ b/tests/generic/150 @@ -57,7 +57,7 @@ mkdir "$testdir" echo "Create the original file blocks" blksz="$(stat -f $testdir -c '%S')" blks=2000 -margin=100 +margin='15%' sz=$((blksz * blks)) nr=7 _pwrite_byte 0x61 0 $sz "$testdir/file1" >> "$seqres.full" diff --git a/tests/generic/151 b/tests/generic/151 index 286b9ec7..c67a12cd 100755 --- a/tests/generic/151 +++ b/tests/generic/151 @@ -61,7 +61,7 @@ mkdir "$testdir" echo "Create the original file blocks" blksz="$(stat -f "$testdir" -c '%S')" blks=2000 -margin=100 +margin='15%' sz=$((blksz * blks)) free_blocks0=$(stat -f "$testdir" -c '%f') nr=7 diff --git a/tests/generic/152 b/tests/generic/152 index 506a7544..cdb2bf98 100755 --- a/tests/generic/152 +++ b/tests/generic/152 @@ -62,7 +62,7 @@ mkdir "$testdir" echo "Create the original file blocks" blksz="$(stat -f "$testdir" -c '%S')" blks=2000 -margin=100 +margin='15%' sz=$((blksz * blks)) free_blocks0=$(stat -f "$testdir" -c '%f') nr=4 diff --git a/tests/generic/153 b/tests/generic/153 index 011879e9..b2f4022f 100755 --- a/tests/generic/153 +++ b/tests/generic/153 @@ -62,7 +62,7 @@ mkdir "$testdir" echo "Create the original file blocks" blksz="$(stat -f "$testdir" -c '%S')" blks=2000 -margin=100 +margin='15%' sz=$((blksz * blks)) free_blocks0=$(stat -f "$testdir" -c '%f') nr=4 diff --git a/tests/generic/154 b/tests/generic/154 index 474c578b..579f78bf 100755 --- a/tests/generic/154 +++ b/tests/generic/154 @@ -61,7 +61,7 @@ mkdir "$testdir" echo "Create the original file blocks" blksz="$(stat -f "$testdir" -c '%S')" blks=2000 -margin=100 +margin='15%' free_blocks0=$(stat -f "$testdir" -c '%f') nr=4 sz=$((blks * blksz)) diff --git a/tests/generic/155 b/tests/generic/155 index 611cf1ab..56d29128 100755 --- a/tests/generic/155 +++ b/tests/generic/155 @@ -65,7 +65,7 @@ mkdir $testdir echo "Create the original file blocks" blksz="$(stat -f "$testdir" -c '%S')" blks=2000 -margin=100 +margin='15%' sz=$((blksz * blks)) free_blocks0=$(stat -f "$testdir" -c '%f') nr=4 diff --git a/tests/generic/156 b/tests/generic/156 index 7194e875..9fea9886 100755 --- a/tests/generic/156 +++ b/tests/generic/156 @@ -73,7 +73,7 @@ mkdir "$testdir" echo "Create the original file blocks" blksz="$(stat -f "$testdir" -c '%S')" blks=2000 -margin=100 +margin='15%' sz=$((blksz * blks)) free_blocks0=$(stat -f "$testdir" -c '%f') nr=4 diff --git a/tests/generic/157 b/tests/generic/157 index a5b84fce..01508661 100755 --- a/tests/generic/157 +++ b/tests/generic/157 @@ -63,7 +63,7 @@ mkdir "$testdir2" echo "Create the original files" blksz="$(stat -f $testdir1 -c '%S')" blks=1000 -margin=50 +margin='7%' sz=$((blksz * blks)) free_blocks0=$(stat -f $testdir1 -c '%f') nr=4 diff --git a/tests/generic/158 b/tests/generic/158 index 58b70900..807c247f 100755 --- a/tests/generic/158 +++ b/tests/generic/158 @@ -63,7 +63,7 @@ mkdir "$testdir2" echo "Create the original files" blksz="$(stat -f $testdir1 -c '%S')" blks=1000 -margin=50 +margin='7%' sz=$((blksz * blks)) free_blocks0=$(stat -f $testdir1 -c '%f') nr=4 diff --git a/tests/generic/159 b/tests/generic/159 index 14baf64b..88a0c7ee 100755 --- a/tests/generic/159 +++ b/tests/generic/159 @@ -56,7 +56,7 @@ mkdir "$testdir1" echo "Create the original files" blksz="$(stat -f $testdir1 -c '%S')" blks=1000 -margin=50 +margin='7%' sz=$((blksz * blks)) free_blocks0=$(stat -f $testdir1 -c '%f') nr=4 diff --git a/tests/generic/160 b/tests/generic/160 index acd2c4e8..83325d5b 100755 --- a/tests/generic/160 +++ b/tests/generic/160 @@ -56,7 +56,7 @@ mkdir "$testdir1" echo "Create the original files" blksz="$(stat -f $testdir1 -c '%S')" blks=1000 -margin=50 +margin='7%' sz=$((blksz * blks)) free_blocks0=$(stat -f $testdir1 -c '%f') nr=4