Re: VFS + path walktrough

From: Al Viro
Date: Mon May 05 2008 - 13:41:00 EST


On Mon, May 05, 2008 at 07:33:00PM +0200, Miklos Szeredi wrote:

> > This is still wrong. We not just pass the pathname to filesystem (note
> > that you still need to deal with symlinks),
>
> Symlinks are easy: filesystem just needs to *stop* the resolution the
> moment it finds one.

That assumes you see types of objects as you do multi-step walk...

> > Take a look at 9P walk - it does *not* give
> > you anything resembling stat, you just get qids of intermediates.
>
> Which is exactly what's needed to populate the dentry tree, no?

No - you need inodes as well (i.e. as the absolute least you want
mode and ownership). Which is to say, you need to issue stat on
each component in such situation anyway. Not a win...
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/