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