]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commit
qemu: Refactor qemuMonitorGetBlockInfo
authorJiri Denemark <jdenemar@redhat.com>
Wed, 18 Jan 2012 21:01:30 +0000 (22:01 +0100)
committerJiri Denemark <jdenemar@redhat.com>
Fri, 27 Jan 2012 12:07:56 +0000 (13:07 +0100)
commit65c27e29358a7af3c29a545d2434e2d6f463a51a
treeedd8cba12060141dc36460866b4bc4692942b80f
parentbc1edeb61182cd277d6f2fe5c50df2a2806d5e69
qemu: Refactor qemuMonitorGetBlockInfo

QEMU always sends details about all available block devices as an answer
for "info block"/"query-block" command. On the other hand, our
qemuMonitorGetBlockInfo was made for a single block devices queries
only. Thus, when asking for multiple devices, we asked qemu multiple
times to always get the same answer from which different parts were
filtered. This patch makes qemuMonitorGetBlockInfo return a hash table
of all block devices, which may later be used for getting details about
specific devices.
src/qemu/qemu_hotplug.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