[Top] [All Lists]

Failure of xfstests test case 202

To: XFS Mailing List <xfs@xxxxxxxxxxx>
Subject: Failure of xfstests test case 202
From: Chandra Seetharaman <sekharan@xxxxxxxxxx>
Date: Fri, 10 Jun 2011 13:39:47 -0700
Organization: IBM
Reply-to: sekharan@xxxxxxxxxx
Hi all,

Test case 202 tries to create a single AG filesystem and runs xfs_repair
on it expecting it to fail.

But, when I run the test with a filesystem that is bigger than 1TB it
fails (not pleasantly) since the max AG size is 1TB.

I am thinking of the following solution, please let me know if there is
any other elegant fix.

diff --git a/202 b/202
index cbdcb57..b871d8b 100755
--- a/202
+++ b/202
@@ -42,10 +42,12 @@ _supported_os Linux
 echo "== Creating single-AG filesystem =="
-_scratch_mkfs_xfs -d agcount=1 >/dev/null 2>&1
+_scratch_mkfs_xfs -d agcount=1 >/dev/null 2>&1 \
+ || _scratch_mkfs_xfs -d agcount=1 -d size=268435455b >/dev/null 2>&1 
+ || _fail "!!! failed to make filesystem"
 echo "== Trying to repair it (should fail) =="
+_scratch_xfs_repair && _fail "!!! xfs_repair of single AG filesystem
 echo "== Trying to repair it with -o force_geometry =="
 _scratch_xfs_repair -o force_geometry 2>&1 | _filter_repair

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