From: Sebastian Chlad <sebastianchlad@gmail.com>
To: linux-block@vger.kernel.org
Cc: Shin'ichiro Kawasaki <shinichiro.kawasaki@wdc.com>,
Sebastian Chlad <sebastian.chlad@suse.com>
Subject: [PATCH 2/2] nvme/039: skip cleanly when debugfs is not mounted
Date: Thu, 16 Jul 2026 11:06:26 +0200 [thread overview]
Message-ID: <20260716090626.27558-2-sebastian.chlad@suse.com> (raw)
In-Reply-To: <20260716090626.27558-1-sebastian.chlad@suse.com>
_nvme_err_inject_setup() reads/writes files under
/sys/kernel/debug/<dev>/fault_inject/, which don't exist if debugfs
isn't mounted even though FAULT_INJECTION_DEBUG_FS is enabled in the
kernel config (e.g. SLE, where sys-kernel-debug.mount isn't started
by default).
Call _have_debugfs() from requires() to skip cleanly instead.
---
tests/nvme/039 | 1 +
1 file changed, 1 insertion(+)
diff --git a/tests/nvme/039 b/tests/nvme/039
index 8c70c5c..b634008 100755
--- a/tests/nvme/039
+++ b/tests/nvme/039
@@ -15,6 +15,7 @@ QUICK=1
requires() {
_have_program nvme
_have_kernel_options FAULT_INJECTION FAULT_INJECTION_DEBUG_FS
+ _have_debugfs
}
device_requires() {
--
2.51.0
next prev parent reply other threads:[~2026-07-16 9:06 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-07-16 9:06 [PATCH 1/2] common/rc: add _have_debugfs() Sebastian Chlad
2026-07-16 9:06 ` Sebastian Chlad [this message]
2026-07-16 10:05 ` Daniel Wagner
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=20260716090626.27558-2-sebastian.chlad@suse.com \
--to=sebastianchlad@gmail.com \
--cc=linux-block@vger.kernel.org \
--cc=sebastian.chlad@suse.com \
--cc=shinichiro.kawasaki@wdc.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox