Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965045AbWHNXKv (ORCPT ); Mon, 14 Aug 2006 19:10:51 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S965046AbWHNXKu (ORCPT ); Mon, 14 Aug 2006 19:10:50 -0400 Received: from shawidc-mo1.cg.shawcable.net ([24.71.223.10]:57057 "EHLO pd2mo1so.prod.shaw.ca") by vger.kernel.org with ESMTP id S965045AbWHNXKu (ORCPT ); Mon, 14 Aug 2006 19:10:50 -0400 Date: Mon, 14 Aug 2006 17:09:07 -0600 From: Robert Hancock Subject: Re: Getting 'sync' to flush disk cache? In-reply-to: To: Jens Axboe , linux-kernel Cc: Arjan van de Ven Message-id: <44E10293.7000508@shaw.ca> MIME-version: 1.0 Content-type: text/plain; charset=ISO-8859-1; format=flowed Content-transfer-encoding: 7bit References: User-Agent: Thunderbird 1.5.0.5 (Windows/20060719) Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1378 Lines: 31 Jens Axboe wrote: > On Mon, Aug 14 2006, Arjan van de Ven wrote: >> On Mon, 2006-08-14 at 14:39 -0400, Jeff Garzik wrote: >>> So... has anybody given any thought to enabling fsync(2), fdatasync(2), >>> and sync_file_range(2) issuing a [FLUSH|SYNCHRONIZE] CACHE command? >>> >>> This has bugged me for _years_, that Linux does not do this. Looking at >>> forums on the web, it bugs a lot of other people too. >> eh afaik 2.6.17 and such do this if you have barriers enabled... > > That is correct, but it only works on reiserfs and XFS and user space > really cannot tell whether it did the right thing or not. File system > developers really should take this more seriously... > I was under the impression that this just worked under recent kernels. I'm disappointed to hear that it doesn't. It always annoys me that issues like this sometimes just seem to stick around forever in the kernel without getting the attention they should (and tend not to be well documented either..) -- Robert Hancock Saskatoon, SK, Canada To email, remove "nospam" from hancockr@nospamshaw.ca Home Page: http://www.roberthancock.com/ - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/