qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* Re: [Qemu-devel] [PATCH] Added 'access' option to -drive flag
       [not found] ` <m3ljgsbux8.fsf@crossbow.pond.sub.org>
@ 2010-01-04 20:49   ` Anthony Liguori
  2010-01-06  0:19     ` Jamie Lokier
  0 siblings, 1 reply; 3+ messages in thread
From: Anthony Liguori @ 2010-01-04 20:49 UTC (permalink / raw)
  To: Markus Armbruster; +Cc: Naphtali Sprei, qemu-devel

On 12/24/2009 03:09 AM, Markus Armbruster wrote:
> Naphtali Sprei<nsprei@redhat.com>  writes:
>
>> Added 'access' option to -drive flag
>>
>> The new option is: access=[rw|ro|auto]
>> rw: open the drive's file with Read and Write permission, don't continue if failed
>> ro: open the file only with Read permission
>> auto: open the file with Read and Write permission, if failed, try only Read permision
>>
>> For compatibility reasons, the default is 'auto'. Should be changed later on.
>>
>> This option is to replace the 'readonly' options added lately.
>
> Can we take the readonly parameter away?  It's undocumented, for
> whatever that's worth...

readonly made 0.12.   Semantics, readonly makes it to the disk emulation 
whereas this effects how the file is opened.

Regards,

Anthony Liguori

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [Qemu-devel] [PATCH] Added 'access' option to -drive flag
  2010-01-04 20:49   ` [Qemu-devel] [PATCH] Added 'access' option to -drive flag Anthony Liguori
@ 2010-01-06  0:19     ` Jamie Lokier
  2010-01-06  7:47       ` Naphtali Sprei
  0 siblings, 1 reply; 3+ messages in thread
From: Jamie Lokier @ 2010-01-06  0:19 UTC (permalink / raw)
  To: Anthony Liguori; +Cc: Naphtali Sprei, Markus Armbruster, qemu-devel

Anthony Liguori wrote:
> On 12/24/2009 03:09 AM, Markus Armbruster wrote:
> >Naphtali Sprei<nsprei@redhat.com>  writes:
> >
> >>Added 'access' option to -drive flag
> >>
> >>The new option is: access=[rw|ro|auto]
> >>rw: open the drive's file with Read and Write permission, don't continue 
> >>if failed
> >>ro: open the file only with Read permission
> >>auto: open the file with Read and Write permission, if failed, try only 
> >>Read permision
> >>
> >>For compatibility reasons, the default is 'auto'. Should be changed later 
> >>on.
> >>
> >>This option is to replace the 'readonly' options added lately.
> >
> >Can we take the readonly parameter away?  It's undocumented, for
> >whatever that's worth...
> 
> readonly made 0.12.   Semantics, readonly makes it to the disk emulation 
> whereas this effects how the file is opened.

With readonly in 0.12, if you _don't specify readonly, and the file is
opened readonly because it applies qemu's fallback behaviour - does
*that* read-only property make it to the disk emulation?  Or do guests
still see unexplained I/O errors in that case?

Btw, wasn't the access=[rw|ro|auto] option supposed to affect disk
emulation too?

-- Jamie

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [Qemu-devel] [PATCH] Added 'access' option to -drive flag
  2010-01-06  0:19     ` Jamie Lokier
@ 2010-01-06  7:47       ` Naphtali Sprei
  0 siblings, 0 replies; 3+ messages in thread
From: Naphtali Sprei @ 2010-01-06  7:47 UTC (permalink / raw)
  To: Jamie Lokier; +Cc: Markus Armbruster, qemu-devel

Jamie Lokier wrote:
> Anthony Liguori wrote:
>> On 12/24/2009 03:09 AM, Markus Armbruster wrote:
>>> Naphtali Sprei<nsprei@redhat.com>  writes:
>>>
>>>> Added 'access' option to -drive flag
>>>>
>>>> The new option is: access=[rw|ro|auto]
>>>> rw: open the drive's file with Read and Write permission, don't continue 
>>>> if failed
>>>> ro: open the file only with Read permission
>>>> auto: open the file with Read and Write permission, if failed, try only 
>>>> Read permision
>>>>
>>>> For compatibility reasons, the default is 'auto'. Should be changed later 
>>>> on.
>>>>
>>>> This option is to replace the 'readonly' options added lately.
>>> Can we take the readonly parameter away?  It's undocumented, for
>>> whatever that's worth...
>> readonly made 0.12.   Semantics, readonly makes it to the disk emulation 
>> whereas this effects how the file is opened.

I'm not sure I understand this semantic difference. The implementation of both versions (readonly and access) affects both
the disk emulation and the file access/open.
I did meant that 'access' to replace the 'readonly', and I do understand that I did it in bad timing.

> 
> With readonly in 0.12, if you _don't specify readonly, and the file is
> opened readonly because it applies qemu's fallback behaviour - does
> *that* read-only property make it to the disk emulation?  Or do guests
> still see unexplained I/O errors in that case?

The implementation of both 'readonly' and 'access' pass the information to the Guest, through the device API.
Indeed, only for supporting devices.
> 
> Btw, wasn't the access=[rw|ro|auto] option supposed to affect disk
> emulation too?
> 
> -- Jamie

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2010-01-06  7:47 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <4B320927.8020702@redhat.com>
     [not found] ` <m3ljgsbux8.fsf@crossbow.pond.sub.org>
2010-01-04 20:49   ` [Qemu-devel] [PATCH] Added 'access' option to -drive flag Anthony Liguori
2010-01-06  0:19     ` Jamie Lokier
2010-01-06  7:47       ` Naphtali Sprei

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).