Thread (38 messages) 38 messages, 8 authors, 2020-06-29

Re: [PATCHv3 1/5] block: add capacity field to zone descriptors

From: Hannes Reinecke <hare@suse.de>
Date: 2020-06-23 06:15:21

On 6/22/20 6:25 PM, Keith Busch wrote:
From: Matias Bjørling <redacted>

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 <redacted>
Reviewed-by: Javier González <redacted>
Reviewed-by: Daniel Wagner <redacted>
Reviewed-by: Johannes Thumshirn <redacted>
Reviewed-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Matias Bjørling <redacted>
---
  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@suse.de>

Cheers,

Hannes
-- 
Dr. Hannes Reinecke            Teamlead Storage & Networking
hare@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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help