From: Amir Goldstein <amir73il@gmail.com>
To: Eryu Guan <eguan@redhat.com>
Cc: Miklos Szeredi <miklos@szeredi.hu>,
linux-unionfs@vger.kernel.org, fstests@vger.kernel.org
Subject: [PATCH 2/2] generic/{159,160}: require chattr instead of lsattr
Date: Sun, 6 May 2018 09:36:08 +0300 [thread overview]
Message-ID: <1525588568-1714-3-git-send-email-amir73il@gmail.com> (raw)
In-Reply-To: <1525588568-1714-1-git-send-email-amir73il@gmail.com>
The tests _require_test_lsattr, but don't actually use lsattr.
They use chattr +i/-i, so require the appropriate command.
_require_test_lsattr checks the FS_IOC_GETFLAGS ioctl on a directory
and that is not supported in overlayfs. _require_chattr checks the
ioctl on a file, which is supported in overlayfs, so this change makes
the tests run and pass on overlayfs.
Signed-off-by: Amir Goldstein <amir73il@gmail.com>
---
tests/generic/159 | 2 +-
tests/generic/160 | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/tests/generic/159 b/tests/generic/159
index 7e52d5c..f517b55 100755
--- a/tests/generic/159
+++ b/tests/generic/159
@@ -43,7 +43,7 @@ _cleanup()
# real QA test starts here
_supported_os Linux
-_require_test_lsattr
+_require_chattr i
_require_test_reflink
rm -f $seqres.full
diff --git a/tests/generic/160 b/tests/generic/160
index 409b15e..cd1044d 100755
--- a/tests/generic/160
+++ b/tests/generic/160
@@ -43,7 +43,7 @@ _cleanup()
# real QA test starts here
_supported_os Linux
-_require_test_lsattr
+_require_chattr i
_require_test_dedupe
rm -f $seqres.full
--
2.7.4
prev parent reply other threads:[~2018-05-06 6:34 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-05-06 6:36 [PATCH 0/2] Improve generic test coverage for overlayfs Amir Goldstein
2018-05-06 6:36 ` [PATCH 1/2] common/rc: decouple xfs_io flink check from xfs_io -T check Amir Goldstein
2018-05-06 6:36 ` Amir Goldstein [this message]
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=1525588568-1714-3-git-send-email-amir73il@gmail.com \
--to=amir73il@gmail.com \
--cc=eguan@redhat.com \
--cc=fstests@vger.kernel.org \
--cc=linux-unionfs@vger.kernel.org \
--cc=miklos@szeredi.hu \
/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