From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Jyaoa-0000Bi-84 for qemu-devel@nongnu.org; Tue, 20 May 2008 19:00:16 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JyaoX-00008g-PS for qemu-devel@nongnu.org; Tue, 20 May 2008 19:00:14 -0400 Received: from [199.232.76.173] (port=58926 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JyaoX-00008U-Ey for qemu-devel@nongnu.org; Tue, 20 May 2008 19:00:13 -0400 Received: from ecfrec.frec.bull.fr ([129.183.4.8]:33728) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JyaoX-0005FW-BS for qemu-devel@nongnu.org; Tue, 20 May 2008 19:00:13 -0400 Subject: Re: [Qemu-devel] Re: [PATCH][v2] Align file accesses with cache=off (O_DIRECT) From: Laurent Vivier In-Reply-To: <200805202352.17807.paul@codesourcery.com> References: <1211283126.4314.70.camel@frecb07144> <48332AB9.3010707@codemonkey.ws> <20080520223602.GE27853@shareable.org> <200805202352.17807.paul@codesourcery.com> Content-Type: text/plain; charset=utf-8 Date: Wed, 21 May 2008 00:59:54 +0200 Message-Id: <1211324394.4217.2.camel@frecb07144> Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Paul Brook Cc: Blue Swirl , qemu-devel@nongnu.org, Kevin Wolf Le mardi 20 mai 2008 =C3=A0 23:52 +0100, Paul Brook a =C3=A9crit : > > When sector-aligned guest offsets are converted to sector-unaligned > > writes (e.g. due to qcow2 etc.), that property is no longer satisfied= , > > and power failure of the host disk can cause more damage than the > > guest is designed to be resistant to. >=20 > Seems like the easiest solution would be to have qcow always align its = writes. > We don't do on the fly compression, so it should be fairly easy to make= this=20 > happen with minimal overhead. I did the patch you describe and post it to the mailing list on Tue, 22 Jan 2008 11:17:09 +0100, it was called=20 "[PATCH] snapshot=3Don and cache=3Doff compatibility" but was never commented. Regards, Laurent --=20 ------------- Laurent.Vivier@bull.net --------------- "The best way to predict the future is to invent it." - Alan Kay