]> git.apps.os.sepia.ceph.com Git - xfstests-dev.git/commitdiff
xfstests: limit size of created filesystem in test 202
authorChandra Seetharaman <sekharan@us.ibm.com>
Mon, 13 Jun 2011 16:18:25 +0000 (16:18 +0000)
committerAlex Elder <aelder@sgi.com>
Fri, 17 Jun 2011 17:10:08 +0000 (12:10 -0500)
Test 202 fails when the filesystem size is greater than 1TB with
a not so clear message.

Call mkfs with a small enough filesystem size to work even with
older versions of XFS.

Signed-off-by: Chandra Seetharaman <sekharan@us.ibm.com>
Signed-off-by: Alex Elder <aelder@sgi.com>
202

diff --git a/202 b/202
index cbdcb57ae4d07e4e73310cbb3459510ffd2e5313..f3030fcbd2e0f65490dabaca2d8379d0b53b39aa 100755 (executable)
--- a/202
+++ b/202
@@ -41,8 +41,14 @@ _supported_os Linux
 
 _require_scratch
 
+#
+# The AG size is limited to 1TB (or even less with historic xfsprogs),
+# so chose a small enough filesystem to make sure we can actually create
+# a single AG filesystem.
+#
 echo "== Creating single-AG filesystem =="
-_scratch_mkfs_xfs -d agcount=1 >/dev/null 2>&1
+_scratch_mkfs_xfs -d agcount=1 -d size=$((1024*1024*1024)) >/dev/null 2>&1 \
+ || _fail "!!! failed to make filesystem with single AG"
 
 echo "== Trying to repair it (should fail) =="
 _scratch_xfs_repair