xfs/010,030: filter AG header CRC error warnings
authorDarrick J. Wong <darrick.wong@oracle.com>
Wed, 29 Jul 2020 02:51:19 +0000 (19:51 -0700)
committerEryu Guan <guaneryu@gmail.com>
Wed, 2 Sep 2020 15:36:56 +0000 (23:36 +0800)
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 <darrick.wong@oracle.com>
Reviewed-by: Eryu Guan <guaneryu@gmail.com>
Signed-off-by: Eryu Guan <guaneryu@gmail.com>
tests/xfs/010
tests/xfs/030

index e220a651a3a62b0474f2e9b25fc28e28504ce5b8..b65dd3baa054d40b676adeda540eb57cd39835f2 100755 (executable)
@@ -113,7 +113,12 @@ _check_scratch_fs
 # nuke the finobt root, repair will have to regenerate from the inobt
 _corrupt_finobt_root $SCRATCH_DEV
 
 # 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
 
 status=0
 exit
index efdb6a189137f28b69ba8ec1c87dcdf34eba047f..ebe4c92ad6562d12a06c16ed93f873f9c0eeed44 100755 (executable)
@@ -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 '/^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
                            -e '/^Missing reverse-mapping record.*/d' \
                            -e '/^unknown block state, ag AGNO, block.*/d'
        done