]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commit
qemu: Fix failure path in disk hotplug
authorJiri Denemark <jdenemar@redhat.com>
Thu, 20 Sep 2012 20:28:35 +0000 (22:28 +0200)
committerJiri Denemark <jdenemar@redhat.com>
Fri, 21 Sep 2012 10:23:01 +0000 (12:23 +0200)
commit8125113cdb61bb4352af8e80e66573282be9cf83
tree124ac8d3dd8f9c7e8f6aa7050190a1cca8e2e822
parent98be861b4da5b1e2d228b7d041df74f797ed2596
qemu: Fix failure path in disk hotplug

Disk hotplug is a two phase action: qemuMonitorAddDrive followed by
qemuMonitorAddDevice. When the first part succeeds but the second one
fails, we need to rollback the drive addition.
src/qemu/qemu_hotplug.c