From: Damien Le Moal <dlemoal@kernel.org>
To: Christoph Hellwig <hch@lst.de>, axboe@kernel.dk
Cc: linux-block@vger.kernel.org, aalbersh@redhat.com
Subject: Re: [PATCH for-6.19] block: make the new blkzoned UAPI constants discoverable
Date: Thu, 22 Jan 2026 16:52:39 +1100 [thread overview]
Message-ID: <dd97dbe8-5f8a-4d05-adb0-00c0189132bc@kernel.org> (raw)
In-Reply-To: <20260121073203.234429-1-hch@lst.de>
On 2026/01/21 18:31, Christoph Hellwig wrote:
> The Linux 6.19 merge window added the new BLKREPORTZONESV2 ioctl, and
> with it the new BLK_ZONE_REP_CACHED and BLK_ZONE_COND_ACTIVE constants.
>
> The two constants are defined as part of enums, which makes it very
> painful for userspace to discover if they are present in the installed
> system headers.
>
> Use the #define to the same name trick to make them trivially
> discoverable using CPP directives.
>
> Fixes: 0bf0e2e46668 ("block: track zone conditions")
> Fixes: b30ffcdc0c15 ("block: introduce BLKREPORTZONESV2 ioctl")
> Reported-by: Andrey Albershteyn <aalbersh@redhat.com>
> Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Damien Le Moal <dlemoal@kernel.org>
--
Damien Le Moal
Western Digital Research
prev parent reply other threads:[~2026-01-22 5:52 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-01-21 7:31 [PATCH for-6.19] block: make the new blkzoned UAPI constants discoverable Christoph Hellwig
2026-01-21 8:16 ` Johannes Thumshirn
2026-01-21 14:48 ` Jens Axboe
2026-01-22 5:52 ` Damien Le Moal [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=dd97dbe8-5f8a-4d05-adb0-00c0189132bc@kernel.org \
--to=dlemoal@kernel.org \
--cc=aalbersh@redhat.com \
--cc=axboe@kernel.dk \
--cc=hch@lst.de \
--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