[libvirt] [PATCH] Attempt to detect cdrom change failures

Cole Robinson crobinso at redhat.com
Mon Aug 25 15:41:08 UTC 2008


If a 'change' or 'eject' qemu monitor command fails,
an error message is printed to the monitor of the
form "device {not found, is locked, is not 
removable"}. This is really the only indication we
have that the command errored out, so scrape the
monitor reply for "\ndevice " and fail if it is
found.

Thanks,
Cole
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: libvirt-detect-cdrom-eject-errors-patch
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20080825/072a5993/attachment-0001.ksh>


More information about the libvir-list mailing list