]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemuMonitorJSONBlockStatsUpdateCapacity: Don't skip disks
authorMichal Privoznik <mprivozn@redhat.com>
Mon, 1 Dec 2014 14:31:51 +0000 (15:31 +0100)
committerMichal Privoznik <mprivozn@redhat.com>
Tue, 2 Dec 2014 16:51:57 +0000 (17:51 +0100)
commita714533b2bd2de81b9319bb753e74cc9210ca647
tree67cf6dcaff4cb75da0613f2cfe58b59b89250498
parent5ab746b83aec0fa6674250c1575984e116d45371
qemuMonitorJSONBlockStatsUpdateCapacity: Don't skip disks

The function queries the block devices visible to qemu
('query-block') and parses the qemu's output. The info is
returned in a hash table which is expected to be pre-filled by
qemuMonitorJSONGetAllBlockStatsInfo(). However, in the next patch
we are not going to call the latter function at all, so we should
make the former function add devices into the hash table if not
found there.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
src/qemu/qemu_monitor_json.c