From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ted Ts'o Subject: Re: Atomic non-durable file write API Date: Thu, 23 Dec 2010 17:47:40 -0500 Message-ID: <20101223224740.GE12763@thunk.org> References: <4D0A7278.3080506@gmail.com> <1292710543.17128.14.camel@nayuki> <20101223224309.GH18264@dastard> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Olaf van der Spek , linux-fsdevel@vger.kernel.org, linux-ext4@vger.kernel.org To: Dave Chinner Return-path: Content-Disposition: inline In-Reply-To: <20101223224309.GH18264@dastard> Sender: linux-ext4-owner@vger.kernel.org List-Id: linux-fsdevel.vger.kernel.org On Fri, Dec 24, 2010 at 09:43:09AM +1100, Dave Chinner wrote: > > So you are looking for something like: > > http://developer.apple.com/library/mac/#DOCUMENTATION/Darwin/Reference/ManPages/man2/exchangedata.2.html > It doesn't look like the man page for exchangedata() states what happens if the system crashes. It says "atomic" the same way the rename() system call says it is "atomic".... i.e., from the perspective of processes running on the system see either the pre-exchange or post-exchange state. - Ted