Skip to contentSkip to conversation

xfs/288: filter out extra mkfs warning

PATCH Superseded Zorro Lang 1 participant 1 message May 25, 2017

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore

Zorro Lang

author
#0 lore raw

PATCH 1/1 xfs/288: filter out extra mkfs warning

If we use MKFS_OPTIONS="-m crc=1,finobt=1", xfs/288 will print one more line:

"warning: finobt not supported without CRC support, disabled."

That breaks the golden image, so filter it out.

---
 tests/xfs/288 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tests/xfs/288 +1 -1
index 6266dd8..0635001 100755
@@ -58,7 +58,7 @@ if [ -z "$XFS_MKFS_HAS_NO_META_SUPPORT" ]; then
 	mkfs_opts="-m crc=0"
 fi
 # get block size ($dbsize) from the mkfs output
-_scratch_mkfs_xfs $mkfs_opts | _filter_mkfs 2>$tmp.mkfs >/dev/null
+_scratch_mkfs_xfs $mkfs_opts 2>/dev/null | _filter_mkfs 2>$tmp.mkfs >/dev/null
 . $tmp.mkfs
 
 _scratch_mount
Signature · 1 line
2.7.4