public inbox for linux-xfs@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH]: [xfstests] Change test 202 to create a filesystem with small enough filesystem for a single AG
@ 2011-06-13 16:18 Chandra Seetharaman
  2011-06-16 21:41 ` Alex Elder
  0 siblings, 1 reply; 2+ messages in thread
From: Chandra Seetharaman @ 2011-06-13 16:18 UTC (permalink / raw)
  To: XFS Mailing List; +Cc: Eric Sandeen

Test 202 fails when the filesystem size is greater than 1TB with
not so clear message. 

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

Signed-Off-By: Chandra Seetharaman <sekharan@us.ibm.com>
---
diff --git a/202 b/202
index cbdcb57..f3030fc 100755
--- 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


_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs

^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-06-16 21:41 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-06-13 16:18 [PATCH]: [xfstests] Change test 202 to create a filesystem with small enough filesystem for a single AG Chandra Seetharaman
2011-06-16 21:41 ` Alex Elder

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox