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
@@ -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