public inbox for linux-xfs@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] xfs/073: filter out finobt warning from mkfs.xfs
@ 2016-03-16 11:53 Eryu Guan
  2016-03-16 12:04 ` Christoph Hellwig
  2016-03-16 15:04 ` [PATCH v2] xfs/073: avoid finobt warning from mkfs Eryu Guan
  0 siblings, 2 replies; 6+ messages in thread
From: Eryu Guan @ 2016-03-16 11:53 UTC (permalink / raw)
  To: fstests; +Cc: Eryu Guan, xfs

When testing xfs/073 with MKFS_OPTIONS="-m crc=1,finobt=1" set, it fails
due to extra warning about disabling finobt feature:

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

Because xfs/073 disables crc unconditionally and finobt can not be
enabled either.

Signed-off-by: Eryu Guan <eguan@redhat.com>
---
 tests/xfs/073 | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/tests/xfs/073 b/tests/xfs/073
index e1335df..909231b 100755
--- a/tests/xfs/073
+++ b/tests/xfs/073
@@ -61,6 +61,11 @@ _filter_path()
 	sed -e "s,$1,<MNTPATH>,g" | LC_COLLATE=POSIX sort
 }
 
+filter_finobt_warn()
+{
+	sed -e "s/warning: finobt .*without CRC.*disabled.//"
+}
+
 _populate_scratch()
 {
 	POSIXLY_CORRECT=yes \
@@ -138,7 +143,8 @@ _require_loop
 
 rm -f $seqres.full
 
-_scratch_mkfs_xfs -m crc=0 -dsize=41m,agcount=2 | _filter_mkfs 2>/dev/null
+_scratch_mkfs_xfs -m crc=0 -dsize=41m,agcount=2 2>&1 | filter_finobt_warn | \
+	_filter_mkfs 2>/dev/null
 _scratch_mount 2>/dev/null || _fail "initial scratch mount failed"
 
 echo
-- 
2.5.0

_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs

^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2016-03-17  3:28 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-03-16 11:53 [PATCH] xfs/073: filter out finobt warning from mkfs.xfs Eryu Guan
2016-03-16 12:04 ` Christoph Hellwig
2016-03-16 14:54   ` Eryu Guan
2016-03-16 20:00     ` Dave Chinner
2016-03-17  3:28       ` Eryu Guan
2016-03-16 15:04 ` [PATCH v2] xfs/073: avoid finobt warning from mkfs Eryu Guan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox