Re: [RFC v4 1/9] block: add block layer APIs resembling Linux ZonedBlockDevice ioctls.

2022-07-12 Thread Stefan Hajnoczi
On Wed, Jul 13, 2022 at 07:12:17AM +0900, Damien Le Moal wrote: > On 7/13/22 00:49, Stefan Hajnoczi wrote: > > On Tue, Jul 12, 2022 at 10:13:37AM +0800, Sam Li wrote: > >> @@ -1801,6 +1809,130 @@ static off_t copy_file_range(int in_fd, off_t > >> *in_off, int out_fd, > >> } > >> #endif > >> >

Re: [RFC v4 1/9] block: add block layer APIs resembling Linux ZonedBlockDevice ioctls.

2022-07-12 Thread Stefan Hajnoczi
On Wed, Jul 13, 2022 at 08:51:45AM +0800, Sam Li wrote: > Stefan Hajnoczi 于2022年7月12日周二 23:49写道: > > > > On Tue, Jul 12, 2022 at 10:13:37AM +0800, Sam Li wrote: > > > diff --git a/block/file-posix.c b/block/file-posix.c > > > index 48cd096624..e7523ae2ed 100644 > > > --- a/block/file-posix.c > > >

Re: [RFC v4 1/9] block: add block layer APIs resembling Linux ZonedBlockDevice ioctls.

2022-07-12 Thread Sam Li
Damien Le Moal 于2022年7月12日周二 15:35写道: > > On 7/12/22 11:13, Sam Li wrote: > > By adding zone management operations in BlockDriver, storage > > controller emulation can use the new block layer APIs including > > zone_report and zone_mgmt(open, close, finish, reset). > > > > Signed-off-by: Sam Li >

Re: [RFC v4 1/9] block: add block layer APIs resembling Linux ZonedBlockDevice ioctls.

2022-07-12 Thread Sam Li
Stefan Hajnoczi 于2022年7月12日周二 23:49写道: > > On Tue, Jul 12, 2022 at 10:13:37AM +0800, Sam Li wrote: > > By adding zone management operations in BlockDriver, storage > > controller emulation can use the new block layer APIs including > > zone_report and zone_mgmt(open, close, finish, reset). > > > >

Re: [RFC v4 1/9] block: add block layer APIs resembling Linux ZonedBlockDevice ioctls.

2022-07-12 Thread Damien Le Moal
On 7/13/22 00:49, Stefan Hajnoczi wrote: > On Tue, Jul 12, 2022 at 10:13:37AM +0800, Sam Li wrote: >> By adding zone management operations in BlockDriver, storage >> controller emulation can use the new block layer APIs including >> zone_report and zone_mgmt(open, close, finish, reset). >> >> Signe

Re: [RFC v4 1/9] block: add block layer APIs resembling Linux ZonedBlockDevice ioctls.

2022-07-12 Thread Stefan Hajnoczi
On Tue, Jul 12, 2022 at 10:13:37AM +0800, Sam Li wrote: > By adding zone management operations in BlockDriver, storage > controller emulation can use the new block layer APIs including > zone_report and zone_mgmt(open, close, finish, reset). > > Signed-off-by: Sam Li > --- > block/block-backend.

Re: [RFC v4 1/9] block: add block layer APIs resembling Linux ZonedBlockDevice ioctls.

2022-07-12 Thread Damien Le Moal
On 7/12/22 11:13, Sam Li wrote: > By adding zone management operations in BlockDriver, storage > controller emulation can use the new block layer APIs including > zone_report and zone_mgmt(open, close, finish, reset). > > Signed-off-by: Sam Li > --- > block/block-backend.c| 41 +

Re: [RFC v4 1/9] block: add block layer APIs resembling Linux ZonedBlockDevice ioctls.

2022-07-11 Thread Sam Li
Hannes Reinecke 于2022年7月12日周二 14:10写道: > > On 7/12/22 04:13, Sam Li wrote: > > By adding zone management operations in BlockDriver, storage > > controller emulation can use the new block layer APIs including > > zone_report and zone_mgmt(open, close, finish, reset). > > > > Signed-off-by: Sam Li

Re: [RFC v4 1/9] block: add block layer APIs resembling Linux ZonedBlockDevice ioctls.

2022-07-11 Thread Hannes Reinecke
On 7/12/22 04:13, Sam Li wrote: By adding zone management operations in BlockDriver, storage controller emulation can use the new block layer APIs including zone_report and zone_mgmt(open, close, finish, reset). Signed-off-by: Sam Li --- block/block-backend.c| 41 ++ block/c

[RFC v4 1/9] block: add block layer APIs resembling Linux ZonedBlockDevice ioctls.

2022-07-11 Thread Sam Li
By adding zone management operations in BlockDriver, storage controller emulation can use the new block layer APIs including zone_report and zone_mgmt(open, close, finish, reset). Signed-off-by: Sam Li --- block/block-backend.c| 41 ++ block/coroutines.h | 5 + b