But in that case, the file was opened using the hard link, then the link
was deleted. Fine. The user is trying to tell us it's ok to lose the
linked file. Whether or not it can be accessed through another path
is irrelevant.
> An MTA using such a construct and expecting fsync to do the right
> thing will *not* work if you follow the dcache chain on fsync as you
> propose here.
OK, this case where the walk to the root should fail is a "duh", and
exposes a corner case SUS didn't cover (at least not in the excerpts
I saw). But this case is a userland race, the right thing to do is
just stop the walk. This doesn't detract from the value of doing
the walk in the important case that the chain is intact.
> > We don't need all the paths, and not any specific path, just a path.
>
> Exactly, because fsync makes absolutely no gaurantees about the
> namespace. So a lost+found path is quite sufficient.
Dunno, I think that's a statement that should be held up for further
scrutiny.
-- Daniel - 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/