Re: [PATCH v2 04/12] getstats: perform recursion in monitor collection

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 12/16/14 09:04, Eric Blake wrote:
> When requested in a later patch, the QMP command results are now
> examined recursively.  As qemu_driver will eventually have to
> read items out of the hash table as stored by this patch, the
> computation of backing alias string is done in a shared location.
> 
> * src/qemu/qemu_domain.h (qemuDomainStorageAlias): New prototype.
> * src/qemu/qemu_domain.c (qemuDomainStorageAlias): Implement it.
> * src/qemu/qemu_monitor_json.c
> (qemuMonitorJSONGetOneBlockStatsInfo)
> (qemuMonitorJSONBlockStatsUpdateCapacityOne): Perform recursion.
> (qemuMonitorJSONGetAllBlockStatsInfo)
> (qemuMonitorJSONBlockStatsUpdateCapacity): Update callers.
> 
> Signed-off-by: Eric Blake <eblake@xxxxxxxxxx>
> ---
>  src/qemu/qemu_domain.c       | 16 +++++++++++++++
>  src/qemu/qemu_domain.h       |  1 +
>  src/qemu/qemu_monitor_json.c | 48 ++++++++++++++++++++++++++++++++------------
>  3 files changed, 52 insertions(+), 13 deletions(-)
> 

ACK,

finally code that grabs the data from the monitor.

Peter

Attachment: signature.asc
Description: OpenPGP digital signature

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list

[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]