From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MiFoc-0000cZ-OB for qemu-devel@nongnu.org; Mon, 31 Aug 2009 18:57:34 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MiFoX-0000Yx-Tq for qemu-devel@nongnu.org; Mon, 31 Aug 2009 18:57:34 -0400 Received: from [199.232.76.173] (port=45100 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MiFoX-0000Ys-KZ for qemu-devel@nongnu.org; Mon, 31 Aug 2009 18:57:29 -0400 Received: from verein.lst.de ([213.95.11.210]:37648) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_3DES_EDE_CBC_SHA1:24) (Exim 4.60) (envelope-from ) id 1MiFoX-0002KC-2V for qemu-devel@nongnu.org; Mon, 31 Aug 2009 18:57:29 -0400 Date: Tue, 1 Sep 2009 00:57:27 +0200 From: Christoph Hellwig Subject: Re: [Qemu-devel] [PATCH 2/4] block: use fdatasync instead of fsync Message-ID: <20090831225727.GA10220@lst.de> References: <20090831201627.GA4811@lst.de> <20090831201709.GB4874@lst.de> <20090831215138.GA24318@shareable.org> <20090831215525.GA8135@lst.de> <20090831224819.GE24318@shareable.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20090831224819.GE24318@shareable.org> List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Jamie Lokier Cc: Christoph Hellwig , qemu-devel@nongnu.org On Mon, Aug 31, 2009 at 11:48:19PM +0100, Jamie Lokier wrote: > > fdatasync is defined to provide that guarantee, and modulo the whole > > clusterfuck around volatile write caches it does the right thing > > thing on common Linux filesystems. > > That's good to know. I'm not sure about other hosts though. It's > specified to update the metadata, but I think I've encountered people > saying it doesn't - specifically when extending a file, that it > doesn't guarantee the file size is extended on some OSes. But that > might be an urban myth. Those would be typical bugs for really naive implementations. I'm pretty sure those existed for a short time in a lot of places, but I would be extremly surprised if they continued to exist for longer time in any major operating system.