From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Nbt9l-0006wK-GF for qemu-devel@nongnu.org; Mon, 01 Feb 2010 05:05:21 -0500 Received: from [199.232.76.173] (port=55910 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Nbt9j-0006vz-Pu for qemu-devel@nongnu.org; Mon, 01 Feb 2010 05:05:19 -0500 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1Nbt9e-0004Vs-IP for qemu-devel@nongnu.org; Mon, 01 Feb 2010 05:05:19 -0500 Received: from cantor.suse.de ([195.135.220.2]:35703 helo=mx1.suse.de) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Nbt9e-0004Ve-7s for qemu-devel@nongnu.org; Mon, 01 Feb 2010 05:05:14 -0500 Message-ID: <4B66A757.4020707@suse.de> Date: Mon, 01 Feb 2010 11:05:11 +0100 From: Alexander Graf MIME-Version: 1.0 Subject: Re: [Qemu-devel] Re: [PATCH] block: Enable fall-back to read-only for backing file References: <4B65B4B7.2030700@redhat.com> <4B6694C8.4010703@redhat.com> <20100201090649.GA20918@lst.de> <20100201092756.GA21616@lst.de> In-Reply-To: <20100201092756.GA21616@lst.de> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Christoph Hellwig Cc: Kevin Wolf , Naphtali Sprei , "qemu-devel@nongnu.org" , Sheng Yang Christoph Hellwig wrote: > On Mon, Feb 01, 2010 at 10:25:52AM +0100, Alexander Graf wrote: > >> We don't know beforehand if a user will use the commit comnand during >> tje runtime of the vm. >> >> IMHO it'd be best to always open backing files read only and try to >> open them for write access on the commit command. That command can >> then fail gaciously. >> > > That's another option. Basically this means opening another > BlockDriverState for the backing device that is writeable inside > bdrv_commit(). > Or another function call hook to change the backing device state from RO to RW. Alex