On 7/11/22 16:11, Damien Le Moal wrote:
Do you have these cases: 1) host-managed disks: SWR zones are *mandatory* so there is at least one. Thus read capacity will return either 0 if there are no conventional zones (they are optional) or the total capacity of the set of contiguous conventional zones starting at lba 0. In either case, read capacity does not give you the actual total capacity and you have to look at the report zones reply max lba field.
Does the scsi_debug driver allow to create a host-managed disk with one or more conventional zones and one or more sequential write required zones?
Note that anyway, there are no drives out there that use RC BASIS = 0. I had to hack a drive FW to implement it to test this code...
A JEDEC member is telling me that I should use RC BASIS = 0 for host-managed zoned storage devices that only have sequential write required zones. That sounds weird to me so I decided to take a look at how the sd_zbc.c code handles RC BASIS.
Bart.