]> git.ipfire.org Git - thirdparty/libvirt.git/commit
blockjob: return appropriate event and info
authorEric Blake <eblake@redhat.com>
Fri, 12 Oct 2012 20:06:10 +0000 (14:06 -0600)
committerEric Blake <eblake@redhat.com>
Sat, 27 Oct 2012 13:43:38 +0000 (07:43 -0600)
commitedecd45c788a2dc60a80d8a3f65051fbc766e2c4
tree443d3d9e6d0711b0661e43bd3511b267e0f4d844
parentb3822ed04aefaf413a390f66a7f3cea799dfbe23
blockjob: return appropriate event and info

Handle the new type of block copy event and info.  Of course,
this patch does nothing until a later patch actually allows the
creation/abort of a block copy job.

* include/libvirt/libvirt.h.in (VIR_DOMAIN_BLOCK_JOB_READY): New
block job status.
* src/libvirt.c (virDomainBlockRebase): Document the event.
* src/qemu/qemu_monitor_json.c (eventHandlers): New event.
(qemuMonitorJSONHandleBlockJobReady): New function.
(qemuMonitorJSONGetBlockJobInfoOne): Translate new job type.
(qemuMonitorJSONHandleBlockJobImpl): Handle new event and job type.
* src/qemu/qemu_process.c (qemuProcessHandleBlockJob): Recognize
the event to minimize snooping.
* src/qemu/qemu_driver.c (qemuDomainBlockJobImpl): Snoop a successful
info query to save effort on a pivot request.
include/libvirt/libvirt.h.in
src/libvirt.c
src/qemu/qemu_driver.c
src/qemu/qemu_monitor_json.c
src/qemu/qemu_process.c