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 <hch@lst.de>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
This commit is contained in:
Christoph Hellwig
2016-02-08 09:27:15 +11:00
committed by Dave Chinner
parent 06d19b018d
commit 911efb0897
11 changed files with 11 additions and 11 deletions
+1 -1
View File
@@ -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"
+1 -1
View File
@@ -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
+1 -1
View File
@@ -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
+1 -1
View File
@@ -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
+1 -1
View File
@@ -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))
+1 -1
View File
@@ -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
+1 -1
View File
@@ -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
+1 -1
View File
@@ -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
+1 -1
View File
@@ -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
+1 -1
View File
@@ -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
+1 -1
View File
@@ -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