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

Michal Privoznik mprivozn at redhat.com
Sun Jan 27 08:04:13 UTC 2013


On 26.01.2013 00:07, Eric Blake wrote:
> 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.
> 
> 

Thanks, pushed.

Michal




More information about the libvir-list mailing list