[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20090423112105.GA1589@shareable.org>
Date: Thu, 23 Apr 2009 12:21:05 +0100
From: Jamie Lokier <jamie@...reable.org>
To: Andrew Morton <akpm@...ux-foundation.org>
Cc: Valerie Aurora Henson <vaurora@...hat.com>,
linux-fsdevel@...r.kernel.org, linux-kernel@...r.kernel.org,
Chris Mason <chris.mason@...cle.com>,
Theodore Tso <tytso@....edu>,
Eric Sandeen <sandeen@...hat.com>,
Ric Wheeler <rwheeler@...hat.com>
Subject: Re: [RFC PATCH] fpathconf() for fsync() behavior
Andrew Morton wrote:
> Would it be better to implement new syscall(s) with finer-grained control
> and better semantics? Then userspace would just need to to:
>
> fsync_on_steroids(fd, FSYNC_BEFORE_RENAME);
>
> and that all gets down into the filesystem which can then work out what
> it needs to do to implement the command.
+1 from me. Several flags come to mind for discussion.
FSYNC_HARDWARE. FSYNC_ORDER_ONLY, FSYNC_FLUSH.
FSYNC_DATA_BEFORE_SIZE. FSYNC_BEFORE_NEW_FILE.
Nick Piggin was working on fsync_range().
Maybe it's time to do fsync properly?
-- Jamie
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists