]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commit
qemu: bulk stats: add block allocation information
authorFrancesco Romani <fromani@redhat.com>
Mon, 15 Sep 2014 15:42:52 +0000 (17:42 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Wed, 1 Oct 2014 08:58:33 +0000 (10:58 +0200)
commit7557ddf8be79f9687bc8f69946aba71c4c29d7d5
treef2fd5dded7205c72a7cce5f466f4b1489f70b484
parent8caded6b8ec567eadf5a339ba221d5de3b03a509
qemu: bulk stats: add block allocation information

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@redhat.com>
Signed-off-by: Peter Krempa <pkrempa@redhat.com>
src/libvirt.c
src/qemu/qemu_driver.c
src/qemu/qemu_monitor.h
src/qemu/qemu_monitor_json.c