[libvirt] [PATCH v2] qemu_hotplug: Rework media changing process

Eric Blake eblake at redhat.com
Fri Jan 25 23:07:34 UTC 2013


On 01/25/2013 07:53 AM, Michal Privoznik wrote:
> https://bugzilla.redhat.com/show_bug.cgi?id=892289
> 
> It seems like with new udev within guest OS, the tray is locked,
> so we need to:
> - 'eject'
> - wait for tray to open
> - 'change'
> 
> Moreover, even when doing bare 'eject', we should check for
> 'tray_open' as guest may have locked the tray. However, the
> waiting phase shouldn't be unbounded, so I've chosen 10 retries
> maximum, each per 500ms. This should give enough time for guest
> to eject a media and open the tray.
> ---
> 
> diff to v1:
> - listen to TRAY event instead of active polling
> 

ACK.

-- 
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 621 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20130125/a6d80f65/attachment-0001.sig>


More information about the libvir-list mailing list