All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Darrick J. Wong" <djwong@kernel.org>
To: djwong@kernel.org, zlang@redhat.com
Cc: linux-xfs@vger.kernel.org, fstests@vger.kernel.org, guan@eryu.me
Subject: [PATCH 1/1] xfs/018: make sure that larp mode actually works
Date: Mon, 25 Sep 2023 14:42:46 -0700	[thread overview]
Message-ID: <169567816694.2269819.8230834804621611518.stgit@frogsfrogsfrogs> (raw)
In-Reply-To: <169567816120.2269819.5620379594030200785.stgit@frogsfrogsfrogs>

From: Darrick J. Wong <djwong@kernel.org>

Skip this test if larp mode doesn't work.

Signed-off-by: Darrick J. Wong <djwong@kernel.org>
---
 tests/xfs/018 |   13 +++++++++++++
 1 file changed, 13 insertions(+)


diff --git a/tests/xfs/018 b/tests/xfs/018
index 1ef51a2e61..73040edc92 100755
--- a/tests/xfs/018
+++ b/tests/xfs/018
@@ -71,6 +71,17 @@ create_test_file()
 	done
 }
 
+require_larp()
+{
+	touch $SCRATCH_MNT/a
+
+	# Set attribute, being careful not to include the trailing newline
+	# in the attr value.
+	echo -n "attr_value" | ${ATTR_PROG} -s "attr_name" $SCRATCH_MNT/a 2>&1 | \
+		grep 'Operation not supported' && \
+		_notrun 'LARP not supported on this filesystem'
+}
+
 # real QA test starts here
 _supported_fs xfs
 
@@ -112,6 +123,8 @@ _scratch_mount
 testdir=$SCRATCH_MNT/testdir
 mkdir $testdir
 
+require_larp
+
 # empty, inline
 create_test_file empty_file1 0
 test_attr_replay empty_file1 "attr_name" $attr64 "s" "larp"


  reply	other threads:[~2023-09-25 21:42 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-09-25 21:42 [PATCHSET 0/1] fstests: disallow LARP on old fses Darrick J. Wong
2023-09-25 21:42 ` Darrick J. Wong [this message]
2023-09-29  5:17   ` [PATCH 1/1] xfs/018: make sure that larp mode actually works Zorro Lang

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=169567816694.2269819.8230834804621611518.stgit@frogsfrogsfrogs \
    --to=djwong@kernel.org \
    --cc=fstests@vger.kernel.org \
    --cc=guan@eryu.me \
    --cc=linux-xfs@vger.kernel.org \
    --cc=zlang@redhat.com \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.