Re: [PATCH v2 03/12] getstats: prepare monitor collection for recursion

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

 



On 12/16/14 09:04, Eric Blake wrote:
> A future patch will allow recursion into backing chains when
> collecting block stats.  This patch should not change behavior,
> but merely moves out the common code that will be reused once
> recursion is enabled, and adds the parameter that will turn on
> recursion.
> 
> * src/qemu/qemu_monitor.h (qemuMonitorGetAllBlockStatsInfo)
> (qemuMonitorBlockStatsUpdateCapacity): Add recursion parameter,
> although it is ignored for now.
> * src/qemu/qemu_monitor.h (qemuMonitorGetAllBlockStatsInfo)
> (qemuMonitorBlockStatsUpdateCapacity): Likewise.
> * src/qemu/qemu_monitor_json.h
> (qemuMonitorJSONGetAllBlockStatsInfo)
> (qemuMonitorJSONBlockStatsUpdateCapacity): Likewise.
> * src/qemu/qemu_monitor_json.c
> (qemuMonitorJSONGetAllBlockStatsInfo)
> (qemuMonitorJSONBlockStatsUpdateCapacity): Add parameter, and
> split...
> (qemuMonitorJSONGetOneBlockStatsInfo)
> (qemuMonitorJSONBlockStatsUpdateCapacityOne): ...into helpers.
> (qemuMonitorJSONGetBlockStatsInfo): Update caller.
> * src/qemu/qemu_driver.c (qemuDomainGetStatsBlock): Update caller.
> * src/qemu/qemu_migration.c (qemuMigrationCookieAddNBD): Likewise.
> 
> Signed-off-by: Eric Blake <eblake@xxxxxxxxxx>
> ---
>  src/qemu/qemu_driver.c       |   5 +-
>  src/qemu/qemu_migration.c    |   3 +-
>  src/qemu/qemu_monitor.c      |  24 ++--
>  src/qemu/qemu_monitor.h      |   6 +-
>  src/qemu/qemu_monitor_json.c | 257 +++++++++++++++++++++++++------------------
>  src/qemu/qemu_monitor_json.h |   6 +-
>  6 files changed, 175 insertions(+), 126 deletions(-)
> 

ACK,

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]