From: Christoph Hellwig <hch@lst.de>
To: fstests@vger.kernel.org
Subject: [PATCH 2/3] shared/011: run for all block device based file systems
Date: Mon, 15 Jul 2019 10:25:22 +0200 [thread overview]
Message-ID: <20190715082523.18387-2-hch@lst.de> (raw)
In-Reply-To: <20190715082523.18387-1-hch@lst.de>
Cgroupv2 writeback support can't be easily detected. But it is
kindof expected from block based file systems and can be easily
added, so just assume support and fail if it doesn't work.
Signed-off-by: Christoph Hellwig <hch@lst.de>
---
tests/shared/011 | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/tests/shared/011 b/tests/shared/011
index a0ac375d..b4cdc5ed 100755
--- a/tests/shared/011
+++ b/tests/shared/011
@@ -39,11 +39,14 @@ rm -f $seqres.full
# real QA test starts here
# Modify as appropriate.
-_supported_fs ext4 btrfs
+_supported_fs generic
_supported_os Linux
_require_scratch
_require_cgroup2 io
+# cgroup v2 writeback is only support on block devices so far
+_require_block_device $SCRATCH_DEV
+
smajor=$((0x`stat -L -c %t $SCRATCH_DEV`))
sminor=$((0x`stat -L -c %T $SCRATCH_DEV`))
cgdir=$CGROUP2_PATH
--
2.20.1
next prev parent reply other threads:[~2019-07-15 8:25 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-07-15 8:25 [PATCH 1/3] common/cgroup2: better error message if cgroup2 fs is not mounted Christoph Hellwig
2019-07-15 8:25 ` Christoph Hellwig [this message]
2019-07-15 8:25 ` [PATCH 3/3] shared/011: move to generic/ Christoph Hellwig
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=20190715082523.18387-2-hch@lst.de \
--to=hch@lst.de \
--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