[Top] [All Lists]

[PATCH 7/7] generic/204: use fixed log size for XFS

To: xfs@xxxxxxxxxxx
Subject: [PATCH 7/7] generic/204: use fixed log size for XFS
From: Dave Chinner <david@xxxxxxxxxxxxx>
Date: Mon, 20 Jan 2014 17:22:37 +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>
In changing the default log sizes in mkfs, the freespace
calculations in generic/204 are no longer valid and so it fails with
ENOSPC before ti has finished creating the necessary files.. Make
the test use a fixed log size of 5MB for XFS 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@xxxxxxxxxx>
 tests/generic/204 | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/tests/generic/204 b/tests/generic/204
index 598b805..13a762a 100755
--- a/tests/generic/204
+++ b/tests/generic/204
@@ -51,6 +51,10 @@ rm -f $seqres.full
 _scratch_mkfs 2> /dev/null | _filter_mkfs 2> $tmp.mkfs > /dev/null
 . $tmp.mkfs
+# For xfs, we need to handle the different default log sizes that different
+# versions of mkfs create. All should be valid with a 5MB log, so use that.
+[ $FSTYP = "xfs" ] && MKFS_OPTIONS="$MKFS_OPTIONS -l size=5m"
 SIZE=`expr 104 \* 1024 \* 1024`
 _scratch_mkfs_sized $SIZE $dbsize 2> /dev/null \
                | _filter_mkfs 2> $tmp.mkfs > /dev/null

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