From: Shinichiro Kawasaki <shinichiro.kawasaki@wdc.com>
To: John Pittman <jpittman@redhat.com>
Cc: "linux-block@vger.kernel.org" <linux-block@vger.kernel.org>
Subject: Re: [PATCH blktests 2/2] block/042: check sysfs values prior to running
Date: Fri, 16 Jan 2026 13:03:22 +0000 [thread overview]
Message-ID: <aWo2phhtvibIfQ1D@shinmob> (raw)
In-Reply-To: <20260114210809.2195262-3-jpittman@redhat.com>
On Jan 14, 2026 / 16:08, John Pittman wrote:
> In testing some older kernels recently, block/042 has failed due
> to dma_alignment and virt_boundary_mask not being present.
>
> Running block/042
> +cat: '.../queue/dma_alignment': No such file or directory
> +cat: '.../queue/virt_boundary_mask': No such file or directory
> +dio-offsets: test_dma_aligned: failed to write buf: Invalid argument
>
> To ensure we skip if this is the case, check all sysfs values prior
> to run.
>
> Signed-off-by: John Pittman <jpittman@redhat.com>
John, thank you for this series.
> ---
> tests/block/042 | 4 +++-
> 1 file changed, 3 insertions(+), 1 deletion(-)
>
> diff --git a/tests/block/042 b/tests/block/042
> index 28ac4a2..bbf13fd 100644
> --- a/tests/block/042
> +++ b/tests/block/042
> @@ -11,7 +11,9 @@ DESCRIPTION="Test unusual direct-io offsets"
> QUICK=1
>
> device_requires() {
> - _require_test_dev_sysfs
> + _require_test_dev_sysfs "" "queue/max_segments" "queue/dma_alignment" \
Do we need the first argument "" ? It looks useless.
Nit: spaces are used for indent. I suggest to replace them with a space.
> + "queue/virt_boundary_mask" "queue/logical_block_size" \
> + "queue/max_sectors_kb"
> }
>
> test_device() {
> --
> 2.51.1
>
next prev parent reply other threads:[~2026-01-16 13:03 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-01-14 21:08 [PATCH blktests 0/2] blktests: add ability for multiple dev sysfs checks John Pittman
2026-01-14 21:08 ` [PATCH blktests 1/2] common/rc: support multiple arguments for _require_test_dev_sysfs() John Pittman
2026-01-16 13:04 ` Shinichiro Kawasaki
2026-01-14 21:08 ` [PATCH blktests 2/2] block/042: check sysfs values prior to running John Pittman
2026-01-16 13:03 ` Shinichiro Kawasaki [this message]
2026-01-20 16:16 ` John Pittman
2026-01-21 1:38 ` Shinichiro Kawasaki
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=aWo2phhtvibIfQ1D@shinmob \
--to=shinichiro.kawasaki@wdc.com \
--cc=jpittman@redhat.com \
--cc=linux-block@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