[Top] [All Lists]

[PATCH 6/7] xfs/104: use fixed log size

To: xfs@xxxxxxxxxxx
Subject: [PATCH 6/7] xfs/104: use fixed log size
From: Dave Chinner <david@xxxxxxxxxxxxx>
Date: Mon, 20 Jan 2014 17:22:36 +1100
Delivered-to: xfs@xxxxxxxxxxx
In-reply-to: <1390198957-17184-1-git-send-email-david@xxxxxxxxxxxxx>
References: <1390198957-17184-1-git-send-email-david@xxxxxxxxxxxxx>
From: Dave Chinner <dchinner@xxxxxxxxxx>

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

Signed-off-by: Dave Chinner <dchinner@xxxxxxxxxx>
 tests/xfs/104 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/xfs/104 b/tests/xfs/104
index d31cf16..e899aca 100755
--- a/tests/xfs/104
+++ b/tests/xfs/104
@@ -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"

<Prev in Thread] Current Thread [Next in Thread>