[libvirt] [PATCH 09/12] getstats: prepare for dynamic block.count stat
Peter Krempa
pkrempa at redhat.com
Mon Dec 8 14:26:59 UTC 2014
On 12/08/14 15:19, Peter Krempa wrote:
> On 12/06/14 09:14, Eric Blake wrote:
>> A coming patch will make it optionally possible to list backing
>> chain block stats; in this mode of operation, block.counts is no
>> longer the number of <disks> in the domain, but the number of
>> blocks in the array being reported. We still want block.count
>> listed first, but rather than iterate the tree twice (once to
>> count, and once to list stats), it's easier to just touch things
>> up after the fact.
>>
>> * src/qemu/qemu_driver.c (qemuDomainGetStatsBlock): Compute count
>> after the fact.
>>
>> Signed-off-by: Eric Blake <eblake at redhat.com>
>> ---
>> src/qemu/qemu_driver.c | 9 ++++++++-
>> 1 file changed, 8 insertions(+), 1 deletion(-)
>>
Compiler complains:
qemu/qemu_driver.c: In function 'qemuDomainGetStatsBlock':
qemu/qemu_driver.c:18630:46: error: 'i' may be used uninitialized in this function [-Werror=maybe-uninitialized]
record->params[count_index].value.ui = i;
^
CC lxc/libvirt_driver_lxc_impl_la-lxc_native.lo
CC lxc/libvirt_driver_lxc_impl_la-lxc_driver.lo
CC uml/libvirt_driver_uml_impl_la-uml_conf.lo
CC uml/libvirt_driver_uml_impl_la-uml_driver.lo
CC network/libvirt_driver_network_impl_la-bridge_driver.lo
CC network/libvirt_driver_network_impl_la-bridge_driver_platform.lo
>
> ACK,
>
if you fix the issue above.
> 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/20141208/76b24f03/attachment-0001.sig>
More information about the libvir-list
mailing list