qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] PATCH: v3 Allow control over drive file open mode


From: Daniel P. Berrange
Subject: Re: [Qemu-devel] PATCH: v3 Allow control over drive file open mode
Date: Fri, 1 Aug 2008 17:15:29 +0100
User-agent: Mutt/1.4.1i

On Fri, Aug 01, 2008 at 10:10:09AM -0500, Anthony Liguori wrote:
> Daniel P. Berrange wrote:
> >This is version 3 of the patch.
> >  
> 
> Allowing the user to specify what mode we use to open a file is IMHO not 
> a good interface for a user.  A user should only be concerned with how 
> we expose a disk to the guest, not the underlying implementation of how 
> we support this.  It has subtle side-effects that a user is not going to 
> expect unless they are intimately familiar with how QEMU is implemented 
> (like snapshotting breaking).

So if I'm understanding you correctly, you'd be OK with a mode=ro, which 
would make the emulated drive itself read-only - independant of what 
open() flags we use for opening the file on the host ?  

So my next question would be, what IDE / SCSI / USB drives have a
concept of 'read only' ? A CDROM clearly is clearly readonly, and
floppy disks probably be to but can you mark general disks as read
only ?

Daniel
-- 
|: Red Hat, Engineering, London   -o-   http://people.redhat.com/berrange/ :|
|: http://libvirt.org  -o-  http://virt-manager.org  -o-  http://ovirt.org :|
|: http://autobuild.org       -o-         http://search.cpan.org/~danberr/ :|
|: GnuPG: 7D3B9505  -o-  F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B 9505 :|




reply via email to

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