• E
    getstats: prepare monitor collection for recursion · 7b11f5e5
    Eric Blake 提交于
    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: NEric Blake <eblake@redhat.com>
    7b11f5e5
qemu_monitor.h 37.3 KB