Re: [Qemu-devel] [PATCH v6 07/24] qcow2: Helper for refcount array reallocation

2015-02-11 Thread Eric Blake
On 02/10/2015 01:28 PM, 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 v6 07/24] qcow2: Helper for refcount array reallocation

2015-02-10 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