Re: [Qemu-devel] [PATCH v2 2/6] VMDK: add twoGbMaxExtentSparse support

2011-08-04 Thread Stefan Hajnoczi
On Thu, Aug 4, 2011 at 11:38 AM, Fam Zheng wrote: > On Thu, Aug 4, 2011 at 6:34 PM, Stefan Hajnoczi wrote: >> On Thu, Aug 4, 2011 at 4:09 AM, Fam Zheng wrote: >>> +static void vmdk_free_last_extent(BlockDriverState *bs) >>> +{ >>> +    BDRVVmdkState *s = bs->opaque; >>> + >>> +    if (s->num_ext

Re: [Qemu-devel] [PATCH v2 2/6] VMDK: add twoGbMaxExtentSparse support

2011-08-04 Thread Fam Zheng
On Thu, Aug 4, 2011 at 6:34 PM, Stefan Hajnoczi wrote: > On Thu, Aug 4, 2011 at 4:09 AM, Fam Zheng wrote: >> +static void vmdk_free_last_extent(BlockDriverState *bs) >> +{ >> +    BDRVVmdkState *s = bs->opaque; >> + >> +    if (s->num_extents == 0) { >> +        return; >> +    } >> +    s->num_e

Re: [Qemu-devel] [PATCH v2 2/6] VMDK: add twoGbMaxExtentSparse support

2011-08-04 Thread Stefan Hajnoczi
On Thu, Aug 4, 2011 at 4:09 AM, Fam Zheng wrote: > +static void vmdk_free_last_extent(BlockDriverState *bs) > +{ > +    BDRVVmdkState *s = bs->opaque; > + > +    if (s->num_extents == 0) { > +        return; > +    } > +    s->num_extents--; > +    s->extents = qemu_realloc(s->extents, s->num_exte