From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Nbsbw-00078d-Lp for qemu-devel@nongnu.org; Mon, 01 Feb 2010 04:30:24 -0500 Received: from [199.232.76.173] (port=60959 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Nbsbv-00078C-56 for qemu-devel@nongnu.org; Mon, 01 Feb 2010 04:30:23 -0500 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1Nbsbs-0001JL-6a for qemu-devel@nongnu.org; Mon, 01 Feb 2010 04:30:22 -0500 Received: from verein.lst.de ([213.95.11.210]:45018) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_3DES_EDE_CBC_SHA1:24) (Exim 4.60) (envelope-from ) id 1Nbsbr-0001Iw-JV for qemu-devel@nongnu.org; Mon, 01 Feb 2010 04:30:19 -0500 Date: Mon, 1 Feb 2010 10:27:56 +0100 From: Christoph Hellwig Subject: Re: [Qemu-devel] Re: [PATCH] block: Enable fall-back to read-only for backing file Message-ID: <20100201092756.GA21616@lst.de> References: <4B65B4B7.2030700@redhat.com> <4B6694C8.4010703@redhat.com> <20100201090649.GA20918@lst.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Alexander Graf Cc: Kevin Wolf , Naphtali Sprei , Christoph Hellwig , Sheng Yang , "qemu-devel@nongnu.org" 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().