]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: hotplug: Extract legacy disk media changing bits
authorPeter Krempa <pkrempa@redhat.com>
Fri, 13 Jul 2018 15:44:32 +0000 (17:44 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Fri, 20 Jul 2018 12:23:09 +0000 (14:23 +0200)
commit22480cf9508e85578408b03bfc071fc6ef751324
tree5c5d24d04209cf4fe2431a3a9cfd4709a9c430c1
parent36e9b1ec5070b616ef1ac2ad92357c701160e046
qemu: hotplug: Extract legacy disk media changing bits

Prepare for the -blockdev implementation of ejectable media changing by
splitting up the old bits.

Additionally since both callers make sure that the device is a cdrom or
floppy the check is no longer necessary.

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