]> xenbits.xensource.com Git - libvirt.git/commit
qemu: hotplug: Remove rest of source backend if hotplug fails
authorPeter Krempa <pkrempa@redhat.com>
Thu, 28 Mar 2019 14:59:38 +0000 (15:59 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Wed, 26 Jun 2019 06:59:37 +0000 (08:59 +0200)
commit04c7fc08099c03e6f55c9d5fe630b84847b069bc
tree3c5f9e86f105cca5bda4b629d87e96e230806bc1
parent9237a81c13eca0b965d3e8772a22666c0fe9b148
qemu: hotplug: Remove rest of source backend if hotplug fails

When changing media using blockdev-add we need to remove the leftovers
if we didn't succeed plugging in the full chain or closing the tray.
Otherwise the data structures will be freed and thus the backing chain
members will never be unplugged.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
src/qemu/qemu_hotplug.c