Re: ramfs problem... (unlink of sparse file in "D" state)

Alexander Viro (viro@math.psu.edu)
Mon, 8 Jan 2001 14:07:31 -0500 (EST)


On Mon, 8 Jan 2001, Marc Lehmann wrote:

> On Mon, Jan 08, 2001 at 01:33:50PM -0500, Alexander Viro <viro@math.psu.edu> wrote:
> > And prefix would be what? "/"? Besides, I said that you don't have
> > read permissions on /foo, not search ones.
>
> You do not need read permissions on /foo to make pathconf on it. This
> makes sense: you are not reading the directory...

Exactly. You do need them for open(). You need successful open() to
be able to use fpathconf(). Ergo, there are cases when pathconf()
can't be implemented via fpathconf(). QED.

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