From 43d4800333ec7bcc3ba47628ace2db84cbff2e9d Mon Sep 17 00:00:00 2001 From: "Darrick J. Wong" Date: Tue, 28 Jul 2020 19:51:19 -0700 Subject: [PATCH] xfs/010,030: filter AG header CRC error warnings Filter out the new AG header CRC verification warnings in xfs_repair since these tests were built before that existed. Signed-off-by: Darrick J. Wong Reviewed-by: Eryu Guan Signed-off-by: Eryu Guan --- tests/xfs/010 | 7 ++++++- tests/xfs/030 | 2 ++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/tests/xfs/010 b/tests/xfs/010 index e220a651..b65dd3ba 100755 --- a/tests/xfs/010 +++ b/tests/xfs/010 @@ -113,7 +113,12 @@ _check_scratch_fs # nuke the finobt root, repair will have to regenerate from the inobt _corrupt_finobt_root $SCRATCH_DEV -_scratch_xfs_repair 2>&1 | _filter_repair_lostblocks +filter_finobt_repair() { + sed -e '/^agi has bad CRC/d' | \ + _filter_repair_lostblocks +} + +_scratch_xfs_repair 2>&1 | filter_finobt_repair status=0 exit diff --git a/tests/xfs/030 b/tests/xfs/030 index efdb6a18..ebe4c92a 100755 --- a/tests/xfs/030 +++ b/tests/xfs/030 @@ -42,6 +42,8 @@ _check_ag() -e '/^bad agbno AGBNO for finobt/d' \ -e '/^bad agbno AGBNO for rmapbt/d' \ -e '/^bad agbno AGBNO for refcntbt/d' \ + -e '/^agf has bad CRC/d' \ + -e '/^agi has bad CRC/d' \ -e '/^Missing reverse-mapping record.*/d' \ -e '/^unknown block state, ag AGNO, block.*/d' done -- 2.30.2