xfs/030: filter out extra repair noise for finobt enabled fs'

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>
This commit is contained in:
Brian Foster
2014-05-13 15:26:59 +10:00
committed by Dave Chinner
parent 995a459e7a
commit 2a52b8f3a6
+2 -1
View File
@@ -56,7 +56,8 @@ _check_ag()
do do
echo "Corrupting $structure - setting bits to $1" echo "Corrupting $structure - setting bits to $1"
_check_repair $1 "$structure" | _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 done
} }