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

Hannes Reinecke hare at suse.de
Tue Nov 4 23:11:12 PST 2025


On 11/4/25 02: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 at kernel.org>
> Reviewed-by: Christoph Hellwig <hch at lst.de>
> ---
>   block/blk-zoned.c             | 25 ++++++++++++++++++++++---
>   block/ioctl.c                 |  1 +
>   include/uapi/linux/blkzoned.h | 32 +++++++++++++++++++++++++++-----
>   include/uapi/linux/fs.h       |  2 +-
>   4 files changed, 51 insertions(+), 9 deletions(-)
> 
Reviewed-by: Hannes Reinecke <hare at suse.de>

Cheers,

Hannes
-- 
Dr. Hannes Reinecke                  Kernel Storage Architect
hare at suse.de                                +49 911 74053 688
SUSE Software Solutions GmbH, Frankenstr. 146, 90461 Nürnberg
HRB 36809 (AG Nürnberg), GF: I. Totev, A. McDonald, W. Knoblich



More information about the Linux-nvme mailing list