Thread (50 messages) 50 messages, 6 authors, 2025-11-05

Re: [PATCH v3 11/15] block: introduce BLKREPORTZONESV2 ioctl

From: Chaitanya Kulkarni <hidden>
Date: 2025-11-04 04:12:32
Also in: dm-devel, linux-btrfs, linux-nvme, linux-scsi, linux-xfs

On 11/3/25 17:31, Damien Le Moal wrote:
Introduce the new BLKREPORTZONESV2 ioctl command to allow user
applications access to the fast zone report implemented by
blkdev_report_zones_cached(). This new ioctl is defined as number 142
and is documented in include/uapi/linux/fs.h.

Unlike the existing BLKREPORTZONES ioctl, this new ioctl uses the flags
field of struct blk_zone_report also as an input. If the user sets the
BLK_ZONE_REP_CACHED flag as an input, then blkdev_report_zones_cached()
is used to generate the zone report using cached zone information. If
this flag is not set, then BLKREPORTZONESV2 behaves in the same manner
as BLKREPORTZONES and the zone report is generated by accessing the
zoned device.

Signed-off-by: Damien Le Moal<dlemoal@kernel.org>
Reviewed-by: Christoph Hellwig<hch@lst.de>

Looks good.

Reviewed-by: Chaitanya Kulkarni <kch@nvidia.com>

-ck

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help