From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Jycbd-0000ZP-Hr for qemu-devel@nongnu.org; Tue, 20 May 2008 20:55:01 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JycbY-0000YX-Kp for qemu-devel@nongnu.org; Tue, 20 May 2008 20:55:00 -0400 Received: from [199.232.76.173] (port=56488 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JycbY-0000YU-D4 for qemu-devel@nongnu.org; Tue, 20 May 2008 20:54:56 -0400 Received: from mail.codesourcery.com ([65.74.133.4]:35868) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1JycbX-0005vJ-Tm for qemu-devel@nongnu.org; Tue, 20 May 2008 20:54:56 -0400 From: Paul Brook Subject: Re: [Qemu-devel] Re: [PATCH][v2] Align file accesses with cache=off (O_DIRECT) Date: Wed, 21 May 2008 01:54:52 +0100 References: <1211283126.4314.70.camel@frecb07144> <200805202352.17807.paul@codesourcery.com> <1211324394.4217.2.camel@frecb07144> In-Reply-To: <1211324394.4217.2.camel@frecb07144> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200805210154.52667.paul@codesourcery.com> Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Blue Swirl , Laurent Vivier , Kevin Wolf > > 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 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 > "[PATCH] snapshot=on and cache=off compatibility" > but was never commented. That patch that patch messes with O_DIRECT on an open file descriptor, which was generally agreed to be a bad idea. Paul