Re: VFS + path walktrough

From: Miklos Szeredi
Date: Mon May 05 2008 - 13:03:51 EST


> > > * Al Viro <viro@xxxxxxxxxxxxxxxxxx> wrote:
> > > > That you have quite forgotten about mounts.
> > >
> > > hmm, I though this would be done before the link_path_walk()
> > > call happens ;-o
> >
> > How on the earth...? You don't know where will pathname resolution
> > get you, so how could you possibly handle mountpoint transitions prior
> > to it?
>
> One way this could be done cleanly, is to pass the rest of the path
> (as hint) to the filesystem in its lookup function. Most filesystems
> would just ignore it, but those which have the capabilities can use it
> to do the lookup in one go, and internally

Better, the filesystem can just populate the dcache with the result.
The entry being looked up is locked, so noone can get at it, and so it
should be quite safe to build a tree below.

Miklos
--
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/