Re: VFS + path walktrough

From: Al Viro
Date: Mon May 05 2008 - 09:13:20 EST


On Mon, May 05, 2008 at 03:06:23PM +0200, Enrico Weigelt wrote:

> We could just add another call vector to struct file_operations,
> as replacement for link_path_walk() - if it's zero, the original
> function is used. This way an filesystem can do the walktrough
> by it's own, but doesn't need to.
>
>
> What do you think about this ?

That you have quite forgotten about mounts. And we *REALLY* don't
want to shift the entire logics of link_path_walk() into filesystems -
this is insane. Even "let's follow that symlink" part alone, not to
mention mountpoint handling, populating dcache, etc.
--
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/