Re: [Qemu-devel] [PATCH v2 06/21] qcow2: Helper for refcount array reallocation

2014-11-17 Thread Max Reitz
On 2014-11-15 at 17:50, Eric Blake wrote: On 11/14/2014 06:05 AM, Max Reitz wrote: Add a helper function for reallocating a refcount array, independently s/independently/independent/ of the refcount order. The newly allocated space is zeroed and the function handles failed reallocations grace

Re: [Qemu-devel] [PATCH v2 06/21] qcow2: Helper for refcount array reallocation

2014-11-15 Thread Eric Blake
On 11/14/2014 06:05 AM, Max Reitz wrote: > Add a helper function for reallocating a refcount array, independently s/independently/independent/ > of the refcount order. The newly allocated space is zeroed and the > function handles failed reallocations gracefully. This patch is doing two things:

[Qemu-devel] [PATCH v2 06/21] qcow2: Helper for refcount array reallocation

2014-11-14 Thread Max Reitz
Add a helper function for reallocating a refcount array, independently of the refcount order. The newly allocated space is zeroed and the function handles failed reallocations gracefully. Signed-off-by: Max Reitz --- block/qcow2-refcount.c | 121 +