From: Olaf van der Spek Subject: Re: Atomic file data replace API Date: Mon, 27 Dec 2010 16:53:49 +0100 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Cc: linux-fsdevel , linux-ext4@vger.kernel.org To: Amir Goldstein Return-path: In-Reply-To: Sender: linux-fsdevel-owner@vger.kernel.org List-Id: linux-ext4.vger.kernel.org On Mon, Dec 27, 2010 at 2:20 PM, Amir Goldstein wrote: > So as I wrote you on the previous thread, in Ext4 you can probably FS-specific code should of course be avoided in normal apps. > It is a more granular version of the exchangedata() BSD API mentioned > in the previous thread: > http://www.manpagez.com/man/2/exchangedata/ > > So the atomic update is: write(tempfd); fdatasync(tempfd); > exchangedata(tempfd, fd) Except exchangedata is not (widely) implemented? Don't you agree it's undesirable to lose meta-data? Olaf