Re: [Qemu-devel] [PATCH v4 09/26] qcow2: Helper for refcount array reallocation

2014-12-11 Thread Stefan Hajnoczi
On Wed, Dec 03, 2014 at 02:37:29PM +0100, Max Reitz wrote: > Add a helper function for reallocating a refcount array, independent of > the refcount order. The newly allocated space is zeroed and the function > handles failed reallocations gracefully. > > The helper function will always align the b

Re: [Qemu-devel] [PATCH v4 09/26] qcow2: Helper for refcount array reallocation

2014-12-03 Thread Eric Blake
On 12/03/2014 06:37 AM, Max Reitz wrote: > Add a helper function for reallocating a refcount array, independent of > the refcount order. The newly allocated space is zeroed and the function > handles failed reallocations gracefully. > > The helper function will always align the buffer size to a cl

[Qemu-devel] [PATCH v4 09/26] qcow2: Helper for refcount array reallocation

2014-12-03 Thread Max Reitz
Add a helper function for reallocating a refcount array, independent of the refcount order. The newly allocated space is zeroed and the function handles failed reallocations gracefully. The helper function will always align the buffer size to a cluster boundary; if storing the refcounts in such an