From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NbsFJ-0005Cs-Q8 for qemu-devel@nongnu.org; Mon, 01 Feb 2010 04:07:01 -0500 Received: from [199.232.76.173] (port=36327 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NbsFI-0005C2-La for qemu-devel@nongnu.org; Mon, 01 Feb 2010 04:07:00 -0500 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1NbsFD-00072v-FR for qemu-devel@nongnu.org; Mon, 01 Feb 2010 04:07:00 -0500 Received: from verein.lst.de ([213.95.11.210]:36911) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_3DES_EDE_CBC_SHA1:24) (Exim 4.60) (envelope-from ) id 1NbsFC-00072l-W4 for qemu-devel@nongnu.org; Mon, 01 Feb 2010 04:06:55 -0500 Date: Mon, 1 Feb 2010 10:06:49 +0100 From: Christoph Hellwig Subject: Re: [Qemu-devel] Re: [PATCH] block: Enable fall-back to read-only for backing file Message-ID: <20100201090649.GA20918@lst.de> References: <4B65B4B7.2030700@redhat.com> <4B6694C8.4010703@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4B6694C8.4010703@redhat.com> List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Kevin Wolf Cc: Naphtali Sprei , qemu-devel@nongnu.org, Sheng Yang On Mon, Feb 01, 2010 at 09:46:00AM +0100, Kevin Wolf wrote: > > Is it better to always open the backing file with read-only mode ? this will be more consistent/predictable ? > > I would love to open them read-only unconditionally, but we can't. It > would break the commit monitor command. I think the read-only fallback > is appropriate for backing files. The clean way would be to require an explicit BACKING_WRITEABLE flag if we want to commit to it. But I suspect it's too late to refit that now.