xfs/128: allow larger margin for disk space usage
authorDarrick J. Wong <darrick.wong@oracle.com>
Mon, 21 Dec 2015 07:08:12 +0000 (18:08 +1100)
committerDave Chinner <david@fromorbit.com>
Mon, 21 Dec 2015 07:08:12 +0000 (18:08 +1100)
The free blocks count can vary from our calculations by up to 8% on a
1k-block filesystem, so permit that.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
tests/xfs/128

index 49652cb3255b37c60dbac845c28e42a0d431c0e7..f461c1a1a8196b0be6cead41180f4d33acfc16d0 100755 (executable)
@@ -59,7 +59,7 @@ FREE_BLOCKS0=$(stat -f "$TESTDIR" -c '%f')
 
 echo "Create the original file and reflink to file2, file3"
 BLKS=2000
-MARGIN=100
+MARGIN=160
 BLKSZ=65536
 REAL_BLKSZ="$(stat -f $TESTDIR -c '%S')"
 BLKSZ_FACTOR=$((BLKSZ / REAL_BLKSZ))