On 7/27/22 23:13, Stefan Hajnoczi wrote:
> On Mon, 11 Jul 2022 at 22:17, Sam Li wrote:
>> +int bdrv_co_zone_report(BlockDriverState *bs, int64_t offset,
>> +int64_t *nr_zones,
>> +BlockZoneDescriptor *zones)
>> +{
>> +BlockDriver *drv = bs->drv;
On Mon, 11 Jul 2022 at 22:17, Sam Li wrote:
> +int bdrv_co_zone_report(BlockDriverState *bs, int64_t offset,
> +int64_t *nr_zones,
> +BlockZoneDescriptor *zones)
> +{
> +BlockDriver *drv = bs->drv;
> +CoroutineIOCompletion co = {
> +
On 7/12/22 11:13, Sam Li wrote:
> Add zoned storage commands of the device: zone_open(zo), zone_close(zc),
> zone_reset(zs), zone_report(zp), zone_finish(zf).
>
> For example, it can be called by:
> ./build/qemu-io --image-opts driver=zoned_host_device, filename=/dev/nullb0
> -c "zone_report 0 0 1
On 7/12/22 04:13, Sam Li wrote:
Add zoned storage commands of the device: zone_open(zo), zone_close(zc),
zone_reset(zs), zone_report(zp), zone_finish(zf).
For example, it can be called by:
./build/qemu-io --image-opts driver=zoned_host_device, filename=/dev/nullb0
-c "zone_report 0 0 1"
Signed-
Add zoned storage commands of the device: zone_open(zo), zone_close(zc),
zone_reset(zs), zone_report(zp), zone_finish(zf).
For example, it can be called by:
./build/qemu-io --image-opts driver=zoned_host_device, filename=/dev/nullb0
-c "zone_report 0 0 1"
Signed-off-by: Sam Li
---
block/io.c