login
Header Space

 
 

Re: VFS + path walktrough

Score:
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Miklos Szeredi <miklos@...>
Cc: <weigelt@...>, <linux-kernel@...>
Date: Monday, May 5, 2008 - 1:14 pm

On Mon, May 05, 2008 at 06:43:57PM +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), but we make that filesystem
to populate dentry tree.  Take a look at 9P walk - it does *not* give
you anything resembling stat, you just get qids of intermediates.  Which
is bloody useful when you want to do intelligent revalidation (do local
cached walk, then issue a single protocol request that will both do
bulk revalidate *and* tell you where in the path you've got the first
invalid one - just compare qids with what you've got stored locally).
However, it's just about useless for cutting corners in cold-cache
lookup.

It _is_ a useful thing, no arguments about that.  However, to use it
a sane way we need to massage the pathname resolution loop, taking
the "simple pass without symlinks or mountpoints" part into a new
helper, turning the current __link_path_walk() into a loop calling that
one and then folding it into callers.  Would also allow to kill the
last remnants of recursion in symlink handling for normal fs case...

_Then_ we can do saner logics for revalidate, allowing it on such segments.
Which, BTW, would deal with -ESTALE in a saner way, rather than "repeat
full pathname resolution from the very beginning".  And that's where
9P multi-step walk(5) would do very nicely, indeed.

And fuck the "hints" of all kinds, pardon the rudeness.  We already have
more than enough of that crap and it already makes cleaning the logics
up bloody painful.
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
VFS + path walktrough, Enrico Weigelt, (Mon May 5, 8:40 am)
Re: VFS + path walktrough, Enrico Weigelt, (Mon May 5, 9:06 am)
Re: VFS + path walktrough, Al Viro, (Mon May 5, 9:13 am)
Re: VFS + path walktrough, Enrico Weigelt, (Mon May 5, 9:43 am)
Re: VFS + path walktrough, Al Viro, (Mon May 5, 11:35 am)
Re: VFS + path walktrough, Miklos Szeredi, (Mon May 5, 12:43 pm)
Re: VFS + path walktrough, Al Viro, (Mon May 5, 1:14 pm)
Re: VFS + path walktrough, Miklos Szeredi, (Mon May 5, 1:33 pm)
Re: VFS + path walktrough, Al Viro, (Mon May 5, 1:40 pm)
Re: VFS + path walktrough, Enrico Weigelt, (Mon May 5, 2:23 pm)
Re: VFS + path walktrough, Al Viro, (Mon May 5, 2:34 pm)
Re: VFS + path walktrough, Enrico Weigelt, (Mon May 5, 3:02 pm)
Re: VFS + path walktrough, Al Viro, (Mon May 5, 3:09 pm)
Re: VFS + path walktrough, Miklos Szeredi, (Mon May 5, 2:03 pm)
Re: VFS + path walktrough, Enrico Weigelt, (Mon May 5, 2:50 pm)
Re: VFS + path walktrough, Miklos Szeredi, (Mon May 5, 2:31 pm)
Re: VFS + path walktrough, Trond Myklebust, (Mon May 5, 4:16 pm)
Re: VFS + path walktrough, Miklos Szeredi, (Mon May 5, 4:35 pm)
Re: VFS + path walktrough, Miklos Szeredi, (Mon May 5, 1:03 pm)
speck-geostationary