Re: [RFC v4 2/9] qemu-io: add zoned block device operations.

2022-07-27 Thread Damien Le Moal
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;

Re: [RFC v4 2/9] qemu-io: add zoned block device operations.

2022-07-27 Thread Stefan Hajnoczi
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 = { > +

Re: [RFC v4 2/9] qemu-io: add zoned block device operations.

2022-07-12 Thread Damien Le Moal
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

Re: [RFC v4 2/9] qemu-io: add zoned block device operations.

2022-07-11 Thread Hannes Reinecke
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-

[RFC v4 2/9] qemu-io: add zoned block device operations.

2022-07-11 Thread Sam Li
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