030: fix for new xfs_repair versions
authorMark Tinguely <tinguely@sgi.com>
Wed, 23 May 2012 17:21:28 +0000 (12:21 -0500)
committerEric Sandeen <sandeen@sandeen.net>
Wed, 23 May 2012 17:21:28 +0000 (12:21 -0500)
Given that we now drop invalid unlinked inode lists there is no message
to capture.  Also add a sed expression to avoid failures on old repair
versions.

Signed-off-by: Mark Tinguely <tinguely@sgi.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Eric Sandeen <sandeen@redhat.com>
030
030.out.linux

diff --git a/030 b/030
index 74147d416d9add366ccb544d6e28d6ada986a4a5..fe573729accfa4f8145f060647a7d27ea7f68776 100755 (executable)
--- a/030
+++ b/030
@@ -55,7 +55,8 @@ _check_ag()
        for structure in 'sb 0' 'agf 0' 'agi 0' 'agfl 0'
        do
                echo "Corrupting $structure - setting bits to $1"
-               _check_repair $1 "$structure"
+               _check_repair $1 "$structure" |
+                       sed -e '/^error following ag 0 unlinked list$/d'
        done
 }
 
index 5990901584baf438c6c158392dc91e0f146a8417..cf3259f65705acb7f97e9c7875674e78851d2fab 100644 (file)
@@ -85,7 +85,6 @@ bad agbno AGBNO for inobt root, agno 0
 root inode chunk not found
 Phase 3 - for each AG...
         - scan and clear agi unlinked lists...
-error following ag 0 unlinked list
         - process known inodes and perform inode discovery...
         - process newly discovered inodes...
 Phase 4 - check for duplicate blocks...