[libvirt] [PATCH] Fix ejecting cdroms with latest qemu syntax
Cole Robinson
crobinso at redhat.com
Mon Aug 25 17:41:24 UTC 2008
Originally, ejecting a cdrom from a qemu guest entailed
passing 'eject cdrom' to the monitor. But since qemu
added the -drive option, more than one cdrom can be
specified, so just using 'cdrom' isn't explicit enough.
The attached patch updates media change/eject to use
the current qemu syntax. The new generated commands
look something like "eject ide0-cd1", with the name
derived from device target and bus type.
While I was in there I added support for inserting/
ejecting media from scsi cdroms and floppy devices.
This is built around my previous two patches:
- Fix cd eject segfault
- Attempt to detect cdrom change failures
Thanks,
Cole
-------------- next part --------------
A non-text attachment was scrubbed...
Name: libvirt-qemu-eject-cdrom.patch
Type: text/x-patch
Size: 7288 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20080825/b8c1fa1b/attachment-0001.bin>
More information about the libvir-list
mailing list