xfs/104: use fixed log size

In changing the default log sizes in mkfs, the freespace
calculations in xfs/104 are no longer valid and so it fails with
ENOSPC before running any of the growfs tests. Make the test use a
fixed log size of 5MB so that freespace calculations remain valid
and the test passes regardless of whether we have a new or old mkfs
binary.

Signed-off-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Rich Johnston <rjohnston@sgi.com>
This commit is contained in:
Dave Chinner
2014-01-20 06:22:36 +00:00
committed by Rich Johnston
parent b04b0fd675
commit 3ed573ee4b
+1 -1
View File
@@ -84,7 +84,7 @@ nags=4
size=`expr 120 \* 1048576` # 120 megabytes initially size=`expr 120 \* 1048576` # 120 megabytes initially
sizeb=`expr $size / $dbsize` # in data blocks sizeb=`expr $size / $dbsize` # in data blocks
echo "*** creating scratch filesystem" echo "*** creating scratch filesystem"
_create_scratch -dsize=${size} -dagcount=${nags} _create_scratch -lsize=5m -dsize=${size} -dagcount=${nags}
fillsize=`expr 110 \* 1048576` # 110 megabytes of filling fillsize=`expr 110 \* 1048576` # 110 megabytes of filling
echo "*** using some initial space on scratch filesystem" echo "*** using some initial space on scratch filesystem"