On Thu, 16 Aug 2012 09:40:22 EDT erik quanstrom <[email protected]> wrote:
> > What is more bizarre, with my scheme, is how to implement the meaning
> > of ".."? If classical clients have to be able to be used, the server
> > must create a fake name (as the penultimate component of the
> > dirpath), that triggers the correct answer from the server.
>
> see defmnt.c:/^fixdotdotname for where this is handled by the kernel,
> not the file server.
It pretty much has to. Consider what happens when you do
something like
% x=`{pwd}
% bind /sys/src tmp
% cd tmp
% cd ..
This gets you back to $x. If you leave ".." upto the
fileserver, you'd get back to /sys not $x. The server can't
know the right context.