Re: [RFC v1] Adding block layer APIs resembling Linux ZoneBlockDevice ioctls.

2022-06-13 Thread Damien Le Moal
On 6/13/22 18:12, Sam Li wrote: [...] >>> +}; >>> + >>> +/** >>> + * Zone device information data structure. >>> + * Provide information on a device. >>> + */ >>> +typedef struct zbd_dev { >>> +enum zone_model model; >>> +uint32_t block_size; >>> +uint32_t write_granularity; >>> +ui

Re: [RFC v1] Adding block layer APIs resembling Linux ZoneBlockDevice ioctls.

2022-06-13 Thread Sam Li
Damien Le Moal 于2022年6月13日周一 14:24写道: > > On 6/13/22 13:09, Sam Li wrote: > > By adding zone management operations in BlockDriver, storage > > controller emulation can use the new block layer APIs including > > zone_report, zone_reset, zone_open, zone_close, and zone_finish. > > Like a real review

Re: [RFC v1] Adding block layer APIs resembling Linux ZoneBlockDevice ioctls.

2022-06-12 Thread Damien Le Moal
On 6/13/22 13:09, Sam Li wrote: > By adding zone management operations in BlockDriver, storage > controller emulation can use the new block layer APIs including > zone_report, zone_reset, zone_open, zone_close, and zone_finish. Like a real review, commenting inline below. > > Signed-off-by: Sam

[RFC v1] Adding block layer APIs resembling Linux ZoneBlockDevice ioctls.

2022-06-12 Thread Sam Li
By adding zone management operations in BlockDriver, storage controller emulation can use the new block layer APIs including zone_report, zone_reset, zone_open, zone_close, and zone_finish. Signed-off-by: Sam Li --- block/block-backend.c | 20 block/coroutines.h