Re: [PATCH] 2.4.8-pre3 fsync entire path (+reiserfs fsync semantic

Alexander Viro (viro@math.psu.edu)
Sat, 4 Aug 2001 01:48:56 -0400 (EDT)


On Sat, 4 Aug 2001, Matthias Andree wrote:

> On Fri, 03 Aug 2001, Alexander Viro wrote:
>
> > It has nothing to bindings/mount/etc. fsync /a/b/c. While c is written
> > out, mv a/b/c /a/d/c. While d is written out, mv a/d/c a/b/c && mv a/d e/d
> > Through all these renames /a remained the grandparent of c. You won't sync it -
> > you sync c, then d, then e, then root.
>
> Which looks like the right thing, what used to be a/b/c is now e/d/c --
> and you synced c, d, and e.

Like hell it is.

/ /a /a/b /a/b/c /a/d /e
^^^^^^
/ /a /a/b /a/d/c /a/d /e
^^^^^^
/ /a /a/b /a/b/c /a/d /e
^^^^
/ /a /a/b /a/b/c /e/d /e
^^^^
/ /a /a/b /a/b/c /e/d /e
^^
/ /a /a/b /a/b/c /e/d /e
^

Result of these renames is the same as mv /a/d /e/d. See above for names
and currently synced inode during that sequence...

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/