]> git.apps.os.sepia.ceph.com Git - xfstests-dev.git/commitdiff
xfs/104: use fixed log size
authorDave Chinner <dchinner@redhat.com>
Mon, 20 Jan 2014 06:22:36 +0000 (06:22 +0000)
committerRich Johnston <rjohnston@sgi.com>
Wed, 22 Jan 2014 13:21:19 +0000 (07:21 -0600)
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>
tests/xfs/104

index d31cf1646b89e3689a2470f41d3789fd35f27e83..e899acac7b1f61c6e17d9d7deaaf53b43786d7b7 100755 (executable)
@@ -84,7 +84,7 @@ nags=4
 size=`expr 120 \* 1048576`     # 120 megabytes initially
 sizeb=`expr $size / $dbsize`   # in data blocks
 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
 echo "*** using some initial space on scratch filesystem"