Re: [Qemu-devel] [RFC v2 5/8] qcow2: add bdrv_measure() support

2017-03-15 Thread Stefan Hajnoczi
On Thu, Mar 16, 2017 at 02:57:13AM +0100, Max Reitz wrote: > On 15.03.2017 10:29, Stefan Hajnoczi wrote: > > Use qcow2_calc_prealloc_size() to get the required file size. > > > > Signed-off-by: Stefan Hajnoczi > > --- > > TODO: > > * Query block status and only count allocated clusters if in_bs

Re: [Qemu-devel] [RFC v2 5/8] qcow2: add bdrv_measure() support

2017-03-15 Thread Max Reitz
On 15.03.2017 10:29, Stefan Hajnoczi wrote: > Use qcow2_calc_prealloc_size() to get the required file size. > > Signed-off-by: Stefan Hajnoczi > --- > TODO: > * Query block status and only count allocated clusters if in_bs != NULL > * Exclude backing file clusters if in_bs != NULL and -o backin

[Qemu-devel] [RFC v2 5/8] qcow2: add bdrv_measure() support

2017-03-15 Thread Stefan Hajnoczi
Use qcow2_calc_prealloc_size() to get the required file size. Signed-off-by: Stefan Hajnoczi --- TODO: * Query block status and only count allocated clusters if in_bs != NULL * Exclude backing file clusters if in_bs != NULL and -o backing_file= is given --- block/qcow2.c | 53 ++