Re: ext3-2.4-0.9.4

Chris Mason
2001-07-30T18:00:48Z

On Monday, July 30, 2001 01:49:12 PM -0400 Lawrence Greenfield
<leg+@andrew.cmu.edu> wrote:

> Date: Tue, 31 Jul 2001 05:38:13 +1200
> From: Chris Wedgwood <cw@f00f.org>
>
> On Mon, Jul 30, 2001 at 02:25:51PM -0300, Rik van Riel wrote:
>
> Note that this is very different from the "link() should be
> synchronous()" mantra we've been hearing over the last days.
>
> These fsync() semantics make lots of sense to me, I'm all
> for it.
>
> And what if the file has hundreds or thousands of links? How do we
> cleanly keep track of all those?
>
> You don't have to keep track of all of them, just the uncommitted
> ones.

Well, the idea is to get it done in the VFS layer. reiserfs, ext3, and
probably the other journaled filesystems could keep track of the last
transacation and inode was involved with, making the softupdate style
fsync(file) to commit a rename easy.

But, ext2 and the normal filesystems don't have it quite so good.

-chris