Re: [Qemu-devel] [PATCH v2 13/17] vmdk: Implement .bdrv_co_pwritev() interface

2016-04-29 Thread Pavel Butsykin
On 29.04.2016 12:49, Kevin Wolf wrote: Am 29.04.2016 um 10:49 hat Pavel Butsykin geschrieben: On 29.04.2016 06:08, Fam Zheng wrote: On Thu, 04/28 15:16, Kevin Wolf wrote: static int vmdk_write_compressed(BlockDriverState *bs, int64_t sector_num,

Re: [Qemu-devel] [PATCH v2 13/17] vmdk: Implement .bdrv_co_pwritev() interface

2016-04-29 Thread Kevin Wolf
Am 29.04.2016 um 10:49 hat Pavel Butsykin geschrieben: > On 29.04.2016 06:08, Fam Zheng wrote: > >On Thu, 04/28 15:16, Kevin Wolf wrote: > >> static int vmdk_write_compressed(BlockDriverState *bs, > >> int64_t sector_num, > >> con

Re: [Qemu-devel] [PATCH v2 13/17] vmdk: Implement .bdrv_co_pwritev() interface

2016-04-29 Thread Kevin Wolf
Am 29.04.2016 um 05:08 hat Fam Zheng geschrieben: > On Thu, 04/28 15:16, Kevin Wolf wrote: > > +typedef struct VmdkWriteCompressedCo { > > +BlockDriverState *bs; > > +int64_t sector_num; > > +const uint8_t *buf; > > +int nb_sectors; > > +int ret; > > +} VmdkWriteCompressedCo; >

Re: [Qemu-devel] [PATCH v2 13/17] vmdk: Implement .bdrv_co_pwritev() interface

2016-04-29 Thread Pavel Butsykin
On 29.04.2016 06:08, Fam Zheng wrote: On Thu, 04/28 15:16, Kevin Wolf wrote: +typedef struct VmdkWriteCompressedCo { +BlockDriverState *bs; +int64_t sector_num; +const uint8_t *buf; +int nb_sectors; +int ret; +} VmdkWriteCompressedCo; + +static void vmdk_co_write_compressed(v

Re: [Qemu-devel] [PATCH v2 13/17] vmdk: Implement .bdrv_co_pwritev() interface

2016-04-28 Thread Fam Zheng
On Thu, 04/28 15:16, Kevin Wolf wrote: > +typedef struct VmdkWriteCompressedCo { > +BlockDriverState *bs; > +int64_t sector_num; > +const uint8_t *buf; > +int nb_sectors; > +int ret; > +} VmdkWriteCompressedCo; > + > +static void vmdk_co_write_compressed(void *opaque) > +{ > +

[Qemu-devel] [PATCH v2 13/17] vmdk: Implement .bdrv_co_pwritev() interface

2016-04-28 Thread Kevin Wolf
Signed-off-by: Kevin Wolf --- block/vmdk.c | 209 ++- 1 file changed, 135 insertions(+), 74 deletions(-) diff --git a/block/vmdk.c b/block/vmdk.c index 6c447ad..f243527 100644 --- a/block/vmdk.c +++ b/block/vmdk.c @@ -1016,27 +1016,26 @@ st