[PATCHv3 1/5] block: add capacity field to zone descriptors
Hannes Reinecke
hare at suse.de
Tue Jun 23 02:15:15 EDT 2020
On 6/22/20 6:25 PM, Keith Busch wrote:
> From: Matias Bjørling <matias.bjorling at wdc.com>
>
> In the zoned storage model, the sectors within a zone are typically all
> writeable. With the introduction of the Zoned Namespace (ZNS) Command
> Set in the NVM Express organization, the model was extended to have a
> specific writeable capacity.
>
> Extend the zone descriptor data structure with a zone capacity field to
> indicate to the user how many sectors in a zone are writeable.
>
> Introduce backward compatibility in the zone report ioctl by extending
> the zone report header data structure with a flags field to indicate if
> the capacity field is available.
>
> Reviewed-by: Chaitanya Kulkarni <chaitanya.kulkarni at wdc.com>
> Reviewed-by: Javier González <javier.gonz at samsung.com>
> Reviewed-by: Daniel Wagner <dwagner at suse.de>
> Reviewed-by: Johannes Thumshirn <johannes.thumshirn at wdc.com>
> Reviewed-by: Martin K. Petersen <martin.petersen at oracle.com>
> Signed-off-by: Matias Bjørling <matias.bjorling at wdc.com>
> ---
> block/blk-zoned.c | 1 +
> drivers/block/null_blk_zoned.c | 2 ++
> drivers/scsi/sd_zbc.c | 1 +
> include/uapi/linux/blkzoned.h | 15 +++++++++++++--
> 4 files changed, 17 insertions(+), 2 deletions(-)
>
Reviewed-by: Hannes Reinecke <hare at suse.de>
Cheers,
Hannes
--
Dr. Hannes Reinecke Teamlead Storage & Networking
hare at suse.de +49 911 74053 688
SUSE Software Solutions GmbH, Maxfeldstr. 5, 90409 Nürnberg
HRB 36809 (AG Nürnberg), Geschäftsführer: Felix Imendörffer
More information about the Linux-nvme
mailing list