qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] Regression opening read-only cdroms


From: Jamie Lokier
Subject: Re: [Qemu-devel] Regression opening read-only cdroms
Date: Tue, 16 Jun 2009 15:54:21 +0100
User-agent: Mutt/1.5.13 (2006-08-11)

Stefano Stabellini wrote:
> Jamie Lokier wrote:
> 
> > Avi Kivity wrote:
> >> qemu used to be quite happy opening read-only cdrom images, and I was 
> >> quite happy feeding kvm-autotest a library of read-only iso images.
> > 
> > 1. While we're here, an _option_ to open an image read-only even when
> >    you have write permission would be useful, for those occasions when
> >    you want to boot from some valuable image and be certain you aren't
> >    modifying it - without having to chmod back and forth in
> >    Qemu-wrapper scripts, or copy the image first.
> 
> 
> Indeed.
> I have a patch that adds bdrv_set_read_only that set bs->read_only = 1
> so that bdrv_open2 can check if the flag is set and act accordingly.
> The problem is that in xen we read whether the device should be opened
> read only in the VM config file, I don't think the user can specify to
> open a drive read-only in qemu.

What's missing is a "ro" sub-option to "-drive".

-- Jamie




reply via email to

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