Re: [Qemu-devel] [PATCH 07/21] qcow2: Helper for refcount array size calculation

2014-11-11 Thread Max Reitz
On 2014-11-11 at 09:37, Max Reitz wrote: On 2014-11-10 at 23:49, Eric Blake wrote: On 11/10/2014 06:45 AM, Max Reitz wrote: Add a helper function which correctly calculates the byte size of a refcount array for any refcount order, and use that function. Signed-off-by: Max Reitz --- block/qc

Re: [Qemu-devel] [PATCH 07/21] qcow2: Helper for refcount array size calculation

2014-11-11 Thread Max Reitz
On 2014-11-10 at 23:49, Eric Blake wrote: On 11/10/2014 06:45 AM, Max Reitz wrote: Add a helper function which correctly calculates the byte size of a refcount array for any refcount order, and use that function. Signed-off-by: Max Reitz --- block/qcow2-refcount.c | 39 ++

Re: [Qemu-devel] [PATCH 07/21] qcow2: Helper for refcount array size calculation

2014-11-10 Thread Eric Blake
On 11/10/2014 06:45 AM, Max Reitz wrote: > Add a helper function which correctly calculates the byte size of a > refcount array for any refcount order, and use that function. > > Signed-off-by: Max Reitz > --- > block/qcow2-refcount.c | 39 --- > 1 file change

[Qemu-devel] [PATCH 07/21] qcow2: Helper for refcount array size calculation

2014-11-10 Thread Max Reitz
Add a helper function which correctly calculates the byte size of a refcount array for any refcount order, and use that function. Signed-off-by: Max Reitz --- block/qcow2-refcount.c | 39 --- 1 file changed, 28 insertions(+), 11 deletions(-) diff --git a/bloc