From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MGfwS-0004gq-8z for qemu-devel@nongnu.org; Tue, 16 Jun 2009 17:11:40 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MGfwN-0004a0-J2 for qemu-devel@nongnu.org; Tue, 16 Jun 2009 17:11:39 -0400 Received: from [199.232.76.173] (port=47148 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MGfwN-0004Zp-FR for qemu-devel@nongnu.org; Tue, 16 Jun 2009 17:11:35 -0400 Received: from mx2.redhat.com ([66.187.237.31]:35833) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MGfwM-0001y6-VT for qemu-devel@nongnu.org; Tue, 16 Jun 2009 17:11:35 -0400 Message-ID: <4A380A7A.7080606@redhat.com> Date: Tue, 16 Jun 2009 23:11:22 +0200 From: Gerd Hoffmann MIME-Version: 1.0 Subject: Re: [Qemu-devel] Regression opening read-only cdroms References: <4A37896C.8050208@redhat.com> <20090616143259.GA29040@shareable.org> <4A37B23F.6040604@eu.citrix.com> <20090616145421.GD29040@shareable.org> <4A37C82B.5030805@codemonkey.ws> In-Reply-To: <4A37C82B.5030805@codemonkey.ws> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Anthony Liguori Cc: qemu-devel , Stefano Stabellini , Avi Kivity , Christoph Hellwig On 06/16/09 18:28, Anthony Liguori wrote: > Jamie Lokier wrote: >> What's missing is a "ro" sub-option to "-drive". > > It only is useful if we can expose that read-only attribute to the > guest. You can't do that consistently with all block devices so the > result would be that you'll fail write operations causing a guest to crash. Well, I think all except ide-disk can signal r/o medium to the guest. > This is not friendly to a user who expects that ro would Just Work. chmod a-w $diskimage And you'll run into the same issue today. cheers, Gerd