Re: [libvirt] [PATCH 10/10] qemu: hotplug: Remove rest of source backend if hotplug fails

2019-06-25 Thread Ján Tomko
On Mon, Jun 24, 2019 at 05:38:55PM +0200, Peter Krempa wrote: 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 un

[libvirt] [PATCH 10/10] qemu: hotplug: Remove rest of source backend if hotplug fails

2019-06-24 Thread Peter Krempa
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 --- src/qemu/qemu_hotplu