]> git.ipfire.org Git - thirdparty/libvirt.git/commit
latency: Update monitor functions for new latency fields
authorOsier Yang <jyang@redhat.com>
Mon, 5 Sep 2011 08:22:17 +0000 (16:22 +0800)
committerOsier Yang <jyang@redhat.com>
Tue, 6 Sep 2011 04:02:51 +0000 (12:02 +0800)
commit2f58ba89960fa7d63a3cae0c4580990b63137736
tree9c7aa931542f18c8467762ae9fa05c7bbd21641b
parentefa7fc9f7507a5cdb9ce66078d25c0ef2906ad1d
latency: Update monitor functions for new latency fields

The mainly changes are:

1) Update qemuMonitorGetBlockStatsInfo and it's children (Text/JSON)
   functions to return the value of new latency fields.
2) Add new function qemuMonitorGetBlockStatsParamsNumber, which is
   to count how many parameters the underlying QEMU supports.
3) Update virDomainBlockStats in src/qemu/qemu_driver.c to be
   compatible with the changes by 1).
src/qemu/qemu_driver.c
src/qemu/qemu_monitor.c
src/qemu/qemu_monitor.h
src/qemu/qemu_monitor_json.c
src/qemu/qemu_monitor_json.h
src/qemu/qemu_monitor_text.c
src/qemu/qemu_monitor_text.h