Re: [Qemu-devel] [PATCH v9 08/10] qcow2: Invoke refcount order amendment function

2015-08-06 Thread Eric Blake
On 08/06/2015 09:10 AM, Alberto Garcia wrote: > On Mon 27 Jul 2015 05:51:38 PM CEST, Max Reitz wrote: > >> +if (refcount_bits <= 0 || refcount_bits > 64 || >> +!is_power_of_2(refcount_bits)) >> +{ >> +error_report("Refcount width must be a po

Re: [Qemu-devel] [PATCH v9 08/10] qcow2: Invoke refcount order amendment function

2015-08-06 Thread Alberto Garcia
On Mon 27 Jul 2015 05:51:38 PM CEST, Max Reitz wrote: > +if (refcount_bits <= 0 || refcount_bits > 64 || > +!is_power_of_2(refcount_bits)) > +{ > +error_report("Refcount width must be a power of two and may " > + "

Re: [Qemu-devel] [PATCH v9 08/10] qcow2: Invoke refcount order amendment function

2015-07-27 Thread Eric Blake
On 07/27/2015 09:51 AM, Max Reitz wrote: > Make use of qcow2_change_refcount_order() to support changing the > refcount order with qemu-img amend. > > Signed-off-by: Max Reitz > --- > block/qcow2.c | 44 +++- > 1 file changed, 35 insertions(+), 9 deletions

[Qemu-devel] [PATCH v9 08/10] qcow2: Invoke refcount order amendment function

2015-07-27 Thread Max Reitz
Make use of qcow2_change_refcount_order() to support changing the refcount order with qemu-img amend. Signed-off-by: Max Reitz --- block/qcow2.c | 44 +++- 1 file changed, 35 insertions(+), 9 deletions(-) diff --git a/block/qcow2.c b/block/qcow2.c index 8