]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: monitor: return block stats data as a hash to avoid disk mixup
authorPeter Krempa <pkrempa@redhat.com>
Thu, 25 Sep 2014 08:12:15 +0000 (10:12 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Tue, 30 Sep 2014 09:01:55 +0000 (11:01 +0200)
commit96c0f57a82ef73ca924b7333d1001f05ecf5df86
tree973fe40277e60a3aea2d6af4910687daabebdf2e
parentf53bb1af90737205fdbfd26dc99865c02457d8c9
qemu: monitor: return block stats data as a hash to avoid disk mixup

The current block stats code matched up the disk name with the actual
stats by the order in the data returned from qemu. This unfortunately
isn't right as qemu may return the disks in any order. Fix this by
returning a hash of stats and index them by the disk alias.
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