]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: Do not start with source for removable disks if tray is open
authorOsier Yang <jyang@redhat.com>
Wed, 14 Mar 2012 15:26:48 +0000 (23:26 +0800)
committerOsier Yang <jyang@redhat.com>
Fri, 23 Mar 2012 15:11:54 +0000 (23:11 +0800)
commitad7db4391306916e57b3cb147c49ba77dcb24f70
tree062189becf31a74316e4b3d1860a885ab2a7bdf6
parentb22eaa75388600174320d5515ac7d9ca4321f0d9
qemu: Do not start with source for removable disks if tray is open

This is similiar with physical world, one will be surprised if the
box starts with medium exists while the tray is open.

New tests are added, tests disk-{cdrom,floppy}-tray are for the qemu
supports "-device" flag, and disk-{cdrom,floppy}-no-device-cap are
for old qemu, i.e. which doesn't support "-device" flag.
src/qemu/qemu_command.c
tests/qemuxml2argvdata/qemuxml2argv-disk-cdrom-tray-no-device-cap.args [new file with mode: 0644]
tests/qemuxml2argvdata/qemuxml2argv-disk-cdrom-tray-no-device-cap.xml [new file with mode: 0644]
tests/qemuxml2argvdata/qemuxml2argv-disk-cdrom-tray.args [new file with mode: 0644]
tests/qemuxml2argvdata/qemuxml2argv-disk-cdrom-tray.xml [new file with mode: 0644]
tests/qemuxml2argvdata/qemuxml2argv-disk-floppy-tray-no-device-cap.args [new file with mode: 0644]
tests/qemuxml2argvdata/qemuxml2argv-disk-floppy-tray-no-device-cap.xml [new file with mode: 0644]
tests/qemuxml2argvdata/qemuxml2argv-disk-floppy-tray.args [new file with mode: 0644]
tests/qemuxml2argvdata/qemuxml2argv-disk-floppy-tray.xml [new file with mode: 0644]
tests/qemuxml2argvtest.c