qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH 6/8] block: add eject request callback


From: Kevin Wolf
Subject: Re: [Qemu-devel] [PATCH 6/8] block: add eject request callback
Date: Mon, 07 Nov 2011 15:12:55 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:7.0) Gecko/20110927 Thunderbird/7.0

Am 07.11.2011 14:56, schrieb Paolo Bonzini:
> On 11/07/2011 02:49 PM, Kevin Wolf wrote:
>>>  2. eject with -f should really never be needed, but it does whatever is
>>>  needed to be able to follow up with a "change" command.  It turns out it
>>>  is really "unlock" and "ask the guest to eject" combined, but that's the
>>>  implementation, not the model.
>>
>> Does this give different results than just asking the guest to eject
>> without forcefully unlocking? I would expect that a guest that responds
>> to the eject request would also unlock the drive. In which case I think
>> eject without -f should be enough?
> 
> Only if the guest is not buggy (e.g. locks the tray but stops polling 
> for eject requests) and has not crashed.

If the guest is broken, forcefully unlocking and doing an eject request
won't help either (the drive will be unlocked, but not ejected) and the
only way to do anything useful with the drive is sending another eject
command. This doesn't help with cleanly unmounting the medium, of course.

So I think this is actually a point for the eject -f = paperclip model.

Kevin



reply via email to

[Prev in Thread] Current Thread [Next in Thread]