Re: [PATCH v2 3/4] qcow2: add zoned emulation capability

2023-08-29 Thread Sam Li
Damien Le Moal 于2023年8月29日周二 15:14写道: > > On 8/29/23 15:27, Sam Li wrote: > > Damien Le Moal 于2023年8月29日周二 14:06写道: > >> > >> On 8/28/23 20:55, Sam Li wrote: > > +/* close one implicitly open zones to make it available */ > > +for (int i =

Re: [PATCH v2 3/4] qcow2: add zoned emulation capability

2023-08-29 Thread Damien Le Moal
On 8/29/23 15:27, Sam Li wrote: > Damien Le Moal 于2023年8月29日周二 14:06写道: >> >> On 8/28/23 20:55, Sam Li wrote: > +/* close one implicitly open zones to make it available */ > +for (int i = s->zoned_header.zone_nr_conv; > +i < bs->bl.nr_zones; ++i) {

Re: [PATCH v2 3/4] qcow2: add zoned emulation capability

2023-08-29 Thread Sam Li
Damien Le Moal 于2023年8月29日周二 14:06写道: > > On 8/28/23 20:55, Sam Li wrote: > >>> +/* close one implicitly open zones to make it available */ > >>> +for (int i = s->zoned_header.zone_nr_conv; > >>> +i < bs->bl.nr_zones; ++i) { > >>> +uint64_t *wp

Re: [PATCH v2 3/4] qcow2: add zoned emulation capability

2023-08-29 Thread Damien Le Moal
On 8/28/23 20:55, Sam Li wrote: >>> +/* close one implicitly open zones to make it available */ >>> +for (int i = s->zoned_header.zone_nr_conv; >>> +i < bs->bl.nr_zones; ++i) { >>> +uint64_t *wp = >wps->wp[i]; >>> +if

Re: [PATCH v2 3/4] qcow2: add zoned emulation capability

2023-08-28 Thread Sam Li
Stefan Hajnoczi 于2023年8月23日周三 03:48写道: > > On Mon, Aug 14, 2023 at 04:58:01PM +0800, Sam Li wrote: > > By adding zone operations and zoned metadata, the zoned emulation > > capability enables full emulation support of zoned device using > > a qcow2 file. The zoned device metadata includes zone

Re: [PATCH v2 3/4] qcow2: add zoned emulation capability

2023-08-22 Thread Stefan Hajnoczi
On Mon, Aug 14, 2023 at 04:58:01PM +0800, Sam Li wrote: > By adding zone operations and zoned metadata, the zoned emulation > capability enables full emulation support of zoned device using > a qcow2 file. The zoned device metadata includes zone type, > zoned device state and write pointer of each

Re: [PATCH v2 3/4] qcow2: add zoned emulation capability

2023-08-16 Thread Stefan Hajnoczi
On Mon, Aug 14, 2023 at 04:58:01PM +0800, Sam Li wrote: > By adding zone operations and zoned metadata, the zoned emulation > capability enables full emulation support of zoned device using > a qcow2 file. The zoned device metadata includes zone type, > zoned device state and write pointer of each

[PATCH v2 3/4] qcow2: add zoned emulation capability

2023-08-14 Thread Sam Li
By adding zone operations and zoned metadata, the zoned emulation capability enables full emulation support of zoned device using a qcow2 file. The zoned device metadata includes zone type, zoned device state and write pointer of each zone, which is stored to an array of unsigned integers. Each