From: Olaf van der Spek Subject: Re: Atomic file data replace API Date: Wed, 29 Dec 2010 16:35:12 +0100 Message-ID: References: <20101228025937.GE10149@thunk.org> <4D1A351B.5080604@redhat.com> <4D1A6663.8000307@redhat.com> <4D1B542F.9070506@ontolinux.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Cc: linux-fsdevel , linux-ext4 , Ric Wheeler , Amir Goldstein To: Christian Stroetmann Return-path: Received: from mail-fx0-f46.google.com ([209.85.161.46]:52091 "EHLO mail-fx0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752132Ab0L2PfO (ORCPT ); Wed, 29 Dec 2010 10:35:14 -0500 In-Reply-To: <4D1B542F.9070506@ontolinux.com> Sender: linux-ext4-owner@vger.kernel.org List-ID: On Wed, Dec 29, 2010 at 4:30 PM, Christian Stroetmann wrote: > On the 29.12.2010 13:42, Olaf van der Spek wrote: >>>> Not really, unfortunately. Haven't seen a single link to code that >>>> shows how to do it properly. > > No, not this way. You were and still are asked for delivering the code. > Don't pervert the threat of the discussion. I'm talking about the code for temp file, fsync, rename. Not about O_ATOMIC code. >> Each app makes it's own decision about what API to use. Supporting >> atomic stuff doesn't change the behaviour of existing apps. > > Wrong, we are talking here in the first place about general atomic FS > operations. And to guarantee atomicity you have to change general FS > functions in such a way that in the end all other applications are affected, Why's that? > or otherwise you have to implement an own (larger part of an) FS. > At this point there is no discussion anymore without code from you, because > this subject is as well discussed to the maximum in information > processing/informatics/computer science. This subject? Exactly what subject? >> Maybe I should ask devs of some large apps on their take of this issue. > > Nonsense, because they are already using: > a) the functions available by an FS, Of course. Does that mean the situation can't be improved for them? > b) the functions available by a DBMS, or > c) a propritary special solution based on the available functions of the OS > and additional functionality that they develope and maintain themselves > for their comparable use cases since decades due to the cost vs. benefit > ratio. Olaf