mirror of
https://github.com/linux-apfs/apfstests.git
synced 2026-05-01 15:01:44 -07:00
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:
committed by
Dave Chinner
parent
06d19b018d
commit
911efb0897
+1
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user