Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757070AbZC2UQ7 (ORCPT ); Sun, 29 Mar 2009 16:16:59 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753704AbZC2UQt (ORCPT ); Sun, 29 Mar 2009 16:16:49 -0400 Received: from hawking.rebel.net.au ([203.20.69.83]:47545 "EHLO hawking.rebel.net.au" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753029AbZC2UQs (ORCPT ); Sun, 29 Mar 2009 16:16:48 -0400 Message-ID: <49CFD72A.5010107@davidnewall.com> Date: Mon, 30 Mar 2009 06:46:42 +1030 From: David Newall User-Agent: Thunderbird 2.0.0.12 (X11/20080227) MIME-Version: 1.0 To: linux-kernel@vger.kernel.org CC: linux-ext4@vger.kernel.org Subject: Re: Zero length files - an alternative approach? References: <87bprka9sg.fsf@newton.gmurray.org.uk> <49CF636A.3030400@ursus.ath.cx> <20090329134901.GB13737@elf.ucw.cz> In-Reply-To: <20090329134901.GB13737@elf.ucw.cz> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 881 Lines: 18 Pavel Machek wrote: > fsync() is easy. But some people _want_ to have either newdata _or_ > olddata, but don't care which one, and would prefer to avoid > fsync. That's where replace() should help... Most people, I wager, care more about their code being portable than they do about leaping through a Linux-specific hoop. They're not going to use replace; not ever; that's what link/unlink is for. If you think it's reasonable to modify every instance in applications where a sudden crash would cause data loss, why not make a mount-time flag that does all of that in FS; and for the other 99% of users, it doesn't, but runs faster? -- 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/