public inbox for fstests@vger.kernel.org
 help / color / mirror / Atom feed
From: Eric Sandeen <sandeen@redhat.com>
To: fstests <fstests@vger.kernel.org>
Subject: [PATCH] xfs/186: fix test for crc=0, ftype=1
Date: Fri, 17 Jun 2016 12:54:43 -0500	[thread overview]
Message-ID: <cf27c5c1-65ea-ef8b-c06c-cf4af1520d39@redhat.com> (raw)

Test 186 won't run when crcs are enabled, because
attrv1 is not allowed with crc=1.

However, ftype is still allowed with crc=0, so
this creates v3 directories, and xfs_db prints
them as such (along with the filetype), which
breaks the test output.

We can filter & replace to fix up the test in
this case.

Signed-off-by: Eric Sandeen <sandeen@redhat.com>
---

diff --git a/tests/xfs/186 b/tests/xfs/186
index 8e18975..cf66623 100755
--- a/tests/xfs/186
+++ b/tests/xfs/186
@@ -76,12 +76,17 @@ _rmv_eas()
 	done
 }
 
+# If filetype is available (-n ftype=1) will get v3 dirs;
+# just filter/replace to make this look teh same as if we
+# had v2 dirs, as we are not interested in this info.
 _filter_inode()
 {
 	tee -a $seqres.full | \
 		sed -e "s/core.forkoff/forkoff/g" | \
-		egrep '^u.sfdir2|^a.sfattr|forkoff' | \
-		egrep -v 'inumber|parent'
+		egrep '^u.sfdir2|^u.sfdir3|^a.sfattr|forkoff' | \
+		egrep -v 'inumber|parent' | \
+		sed -e s/sfdir3/sfdir2/g | \
+		grep -v filetype
 }
 
 _filter_version()



             reply	other threads:[~2016-06-17 17:54 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-06-17 17:54 Eric Sandeen [this message]
2016-06-21 12:01 ` [PATCH] xfs/186: fix test for crc=0, ftype=1 Eryu Guan

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=cf27c5c1-65ea-ef8b-c06c-cf4af1520d39@redhat.com \
    --to=sandeen@redhat.com \
    --cc=fstests@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox