xfs/030: filter out extra repair noise for finobt enabled fs'
authorBrian Foster <bfoster@redhat.com>
Tue, 13 May 2014 05:26:59 +0000 (15:26 +1000)
committerDave Chinner <david@fromorbit.com>
Tue, 13 May 2014 05:26:59 +0000 (15:26 +1000)
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@redhat.com>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
tests/xfs/030

index af0316620d75d8999cc5f17e3b8fa01f10406545..a43455f595ba3bb4eebac5b606cf7fa21a9b9362 100755 (executable)
@@ -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
 }