[OpenAFS-devel] getcwd() on Linux 2.6.18+OpenAFS 1.4.2 bugs/errors.

Russ Allbery rra@stanford.edu
Thu, 08 Nov 2007 15:46:16 -0800


Jim Rees <rees@umich.edu> writes:

> It sounds like what you want is for the kernel to keep track not only of
> the files and directories you have open, but the paths by which you got
> to them.  Not impossible, but I think it would require changes to the
> kernel outside afs.  And it would change the semantics of the file
> system.

> I'll admit that what you've seen can be surprising.  That's why most
> file systems prohibit loops.  It would be nice if afs could do this but
> it would be hard to implement.  And if we did, you would lose your
> /afs/mw shortcut.

The issue is with multiple paths to the same directory, which doesn't
require a loop.

Does the same problem happen with bind mounts?  And if not, can we use
whatever solution was used for bind mounts to fix this problem?

-- 
Russ Allbery (rra@stanford.edu)             <http://www.eyrie.org/~eagle/>