From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:44000) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ttb0H-0002jF-JY for qemu-devel@nongnu.org; Fri, 11 Jan 2013 04:34:23 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Ttb0C-0001bu-T8 for qemu-devel@nongnu.org; Fri, 11 Jan 2013 04:34:21 -0500 Received: from mx3-phx2.redhat.com ([209.132.183.24]:56097) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ttb0C-0001bm-LR for qemu-devel@nongnu.org; Fri, 11 Jan 2013 04:34:16 -0500 Date: Fri, 11 Jan 2013 04:34:13 -0500 (EST) From: Paolo Bonzini Message-ID: <1738190588.4885859.1357896853370.JavaMail.root@redhat.com> In-Reply-To: <50EFD597.90106@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [PATCH] sheepdog: implement direct write semantics List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Liu Yuan Cc: Kevin Wolf , Stefan Hajnoczi , qemu-devel@nongnu.org, MORITA Kazutaka ----- Messaggio originale ----- > Da: "Liu Yuan" > A: "Paolo Bonzini" > Cc: "Kevin Wolf" , "Stefan Hajnoczi" , qemu-devel@nongnu.org, "MORITA Kazutaka" > > Inviato: Venerd=C3=AC, 11 gennaio 2013 10:04:23 > Oggetto: Re: [Qemu-devel] [PATCH] sheepdog: implement direct write semant= ics >=20 > On 01/11/2013 05:00 PM, Paolo Bonzini wrote: > > That's not correct. Try hdparm with an IDE disk, or sysfs with a > > SCSI disk (recent kernels will also support sysfs with an IDE or > > virtio-blk disk) and you'll see that it changes. >=20 > Okay, at least at startup, even with cache=3Dwritehtough set, I saw > bdrv_enable_write_cache() returns true from sd_open(). So you mean > this will be reset later (after sd_open())? It is always true for the protocol. It is not always true for the format. This is correct. qcow2 can do some writes in writeback mode, but they will always be followed by a flush before the write is reported to the guest. It is a bit faster, and does not lose any correctness. Paolo