xfs
[Top] [All Lists]

[PATCH 1/5] xfs/030: filter out extra repair noise for finobt enabled fs

To: xfs@xxxxxxxxxxx
Subject: [PATCH 1/5] xfs/030: filter out extra repair noise for finobt enabled fs'
From: Brian Foster <bfoster@xxxxxxxxxx>
Date: Fri, 2 May 2014 13:13:58 -0400
Delivered-to: xfs@xxxxxxxxxxx
In-reply-to: <1399050842-19633-1-git-send-email-bfoster@xxxxxxxxxx>
References: <1399050842-19633-1-git-send-email-bfoster@xxxxxxxxxx>
xfs/030 nukes various on-disk data structures to test for repair. This
can result in extra output when testing finobt enabled filesystems. For
example, xfs_repair detects an invalid free inode btree root block when
the agi is zeroed.

Filter this output directly in xfs/030 such that the test passes for
finobt and non-finobt filesystems.

Signed-off-by: Brian Foster <bfoster@xxxxxxxxxx>
---
 tests/xfs/030 | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/tests/xfs/030 b/tests/xfs/030
index af03166..a43455f 100755
--- a/tests/xfs/030
+++ b/tests/xfs/030
@@ -56,7 +56,8 @@ _check_ag()
        do
                echo "Corrupting $structure - setting bits to $1"
                _check_repair $1 "$structure" |
-                       sed -e '/^error following ag 0 unlinked list$/d'
+                       sed -e '/^error following ag 0 unlinked list$/d' \
+                           -e '/^bad agbno AGBNO for finobt/d'
        done
 }
 
-- 
1.8.3.1

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