Skip to contentSkip to conversation

Added 'access' option to -drive flag

PATCH Anthony Liguori 3 participants 3 messages Jan 5, 2010 – Jan 6, 2010 2 messages not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

A message that is not in the archive (sent off-list or not yet received): [email protected]

#2 lore raw
Quoted 9 lines · Markus Armbruster
Quoted 7 lines · Naphtali Sprei

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

Quoted 6 lines
Quoted 3 lines

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

#3 lore raw
Quoted 15 lines · Anthony Liguori
Quoted 14 lines · Markus Armbruster
Quoted 12 lines · Naphtali Sprei

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.

Quoted 7 lines
Quoted 4 lines
Quoted 1 line

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

#4 lore raw
Quoted 13 lines · Jamie Lokier
Quoted 12 lines · Anthony Liguori
Quoted 11 lines · Markus Armbruster
Quoted 9 lines · Naphtali Sprei

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

Quoted 8 lines
Quoted 8 lines
Quoted 6 lines
Quoted 4 lines

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.

Quoted 5 lines

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.

Quoted 5 lines

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

-- Jamie