[libvirt] [PATCHv5 8/8] qemu: bulk stats: add block allocation information

Peter Krempa pkrempa at redhat.com
Mon Sep 15 12:23:53 UTC 2014


On 09/15/14 10:48, Francesco Romani wrote:
> Management software wants to be able to allocate disk space on demand.
> To support this they need keep track of the space occupation
> of the block device.
> This information is reported by qemu as part of block stats.
> 
> This patch extend the block information in the bulk stats with
> the allocation information.
> 
> To keep the same behaviour a helper is extracted from
> qemuMonitorJSONGetBlockExtent in order to get per-device
> allocation information.
> 
> Signed-off-by: Francesco Romani <fromani at redhat.com>
> ---
>  src/libvirt.c                |  2 +
>  src/qemu/qemu_driver.c       | 18 +++++++++
>  src/qemu/qemu_monitor.h      |  1 +
>  src/qemu/qemu_monitor_json.c | 91 ++++++++++++++++++++++++++++++++++----------
>  4 files changed, 92 insertions(+), 20 deletions(-)
> 

ACK stands

Peter


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20140915/0aeb15a1/attachment-0001.sig>


More information about the libvir-list mailing list