mirror of
https://github.com/linux-apfs/apfstests.git
synced 2026-05-01 15:01:44 -07:00
xfstests: filter new repair/mkfs output for CRCs
This patch it to ensure that xfstests passes on non-crc filesystems with a CRC enabled userspace. Filter out the mkfs/xfs_info CRC line from tests that capture the output of these commands. Filter out new error noise from xfs_repair that occurs for xfs_repair as a result of the CRC changes. Signed-off-by: Dave Chinner <dchinner@redhat.com> Reviewed-by: Rich Johnston <rjohnston@sgi.com> Signed-off-by: Rich Johnston <rjohnston@sgi.com>
This commit is contained in:
committed by
Rich Johnston
parent
4f092a2e68
commit
ab2273a397
@@ -85,6 +85,7 @@ _mkfs_filter()
|
||||
-e '/inode-paths/d' \
|
||||
-e 's/\(log[ ]*=\).*bsize/\1LOG bsize/' \
|
||||
-e 's/\(realtime[ ]*=\).*extsz/\1REALTIME extsz/' \
|
||||
-e '/.*crc=/d' \
|
||||
-e 's/ *$//' \
|
||||
| grep -v parent
|
||||
}
|
||||
|
||||
@@ -77,7 +77,8 @@ echo "=== mkfs.xfs ==="
|
||||
mkfs.xfs -f -bsize=4096 -dagsize=76288719b,size=3905982455b -llazy-count=0 $tmpfile \
|
||||
| sed -e "s,^meta-data=.*isize,meta-data=FILE isize,g" \
|
||||
-e "s/\(^log.*blocks=\)\([0-9]*,\)/\1XXXXX,/" \
|
||||
-e "s/, projid32bit=[0-9]//"
|
||||
-e "s/, projid32bit=[0-9]//" \
|
||||
-e "/.*crc=/d"
|
||||
|
||||
mount -o loop $tmpfile $tmpdir || _fail "!!! failed to loopback mount"
|
||||
|
||||
@@ -85,13 +86,15 @@ mount -o loop $tmpfile $tmpdir || _fail "!!! failed to loopback mount"
|
||||
echo "=== xfs_growfs ==="
|
||||
xfs_growfs $tmpdir \
|
||||
| sed -e "s,^meta-data=.*isize,meta-data=FILE isize,g" \
|
||||
-e "s/\(^log.*blocks=\)\([0-9]*,\)/\1XXXXX,/"
|
||||
-e "s/\(^log.*blocks=\)\([0-9]*,\)/\1XXXXX,/" \
|
||||
-e "/.*crc=/d"
|
||||
|
||||
# and double-check the new geometry
|
||||
echo "=== xfs_info ==="
|
||||
xfs_info $tmpdir \
|
||||
| sed -e "s,^meta-data=.*isize,meta-data=FILE isize,g" \
|
||||
-e "s/\(^log.*blocks=\)\([0-9]*,\)/\1XXXXX,/"
|
||||
-e "s/\(^log.*blocks=\)\([0-9]*,\)/\1XXXXX,/" \
|
||||
-e "/.*crc=/d"
|
||||
|
||||
# _cleanup cleans up for us
|
||||
|
||||
|
||||
@@ -77,6 +77,9 @@ s/\s+- \d+:\d\d:\d\d:.*\n//g;
|
||||
/^agi_/ && next; # remove agi counts
|
||||
/^sb_/ && next; # remove sb counts
|
||||
/^agi unlinked/ && next; # remove agi unlinked bucket warning
|
||||
# crc enabled filesystem output
|
||||
/XFS_CORRUPTION_ERROR/ && next;
|
||||
/^bad uuid/ && next;
|
||||
print;'
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user