From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MIjc8-0006G9-0F for qemu-devel@nongnu.org; Mon, 22 Jun 2009 09:31:12 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MIjc3-0006CM-8B for qemu-devel@nongnu.org; Mon, 22 Jun 2009 09:31:11 -0400 Received: from [199.232.76.173] (port=49990 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MIjc2-0006CG-Qo for qemu-devel@nongnu.org; Mon, 22 Jun 2009 09:31:06 -0400 Received: from mx2.redhat.com ([66.187.237.31]:53665) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MIjc2-00051i-C0 for qemu-devel@nongnu.org; Mon, 22 Jun 2009 09:31:06 -0400 Message-ID: <4A3F8756.6090505@redhat.com> Date: Mon, 22 Jun 2009 15:29:58 +0200 From: Kevin Wolf MIME-Version: 1.0 Subject: Re: [Qemu-devel] [PATCH] block-raw: Make cache=off default again References: <1245669483-7076-1-git-send-email-kwolf@redhat.com> <4A3F8238.8010903@codemonkey.ws> <4A3F85EE.5030109@redhat.com> In-Reply-To: <4A3F85EE.5030109@redhat.com> 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: dlaor@redhat.com Cc: qemu-devel@nongnu.org Dor Laor schrieb: > On 06/22/2009 04:08 PM, Anthony Liguori wrote: >> Kevin Wolf wrote: >>> Since the patch that suggested it woudl revert qcow2 to writeback >>> caching, in >>> fact none of the drivers has had cache=off as default any more. This >>> patch >>> restores the desired behaviour. >> When has cache=off ever been the default? >> >> Moreover, why would we want to make it the default? A patch with this >> drastic of a change really need a more > > It should be the default (or at least O_DSYNC) since plain users are not > aware that writeback might > cause their image to get corrupted on host crash. Anthony is right, I was confused. writeback isn't the default, it's writethrough and it actually works. The code is just not explicit enough when you're convinced that caching is meant be off by default because this is what everyone is talking about. Kevin