[OpenAFS-devel] getcwd() on Linux 2.6.18+OpenAFS 1.4.2
bugs/errors.
Michael Loftis
mloftis@wgops.com
Thu, 08 Nov 2007 16:25:29 -0700
--On November 8, 2007 3:15:07 PM -0800 Russ Allbery <rra@stanford.edu>
wrote:
> Michael Loftis <mloftis@wgops.com> writes:
>> --On November 8, 2007 5:49:40 PM -0500 Jim Rees <rees@umich.edu> wrote:
>
>>> You've mounted a volume in two different places and now you're
>>> surprised that you can get to it from either mount point? I don't see
>>> what the problem is.
>
>> No. The problem is pwd (getcwd()) returns erroneous information. Worse
>> when you chroot it returns paths *outside* the chroot.
>
> This is probably the same as:
>
> http://rt.central.org/rt/Ticket/Display.html?id=3753
>
> which is a long-standing problem related to how the Linux kernel caches
> directory information (I think).
I've confirmed it as being present in 2.6.23.1-21.fc7 + OpenAFS1.4.5
(1.4.5-fc7.1) as well.
The behavior sounds identical to that, and matches what I was thinking
about the dentry cache being involved somehow. My Darwin/OSX (Leopard)
laptop with 1.4.5 doesn't see the same behavior (can't chroot mind you but
I can do pwd) so that matches that as well. Is there any ... timeline or
proposal for fixing?
It's somewhat fuzzy to me so i'm not 100% certain, but all the symptoms
indeed match that.
>
> --
> Russ Allbery (rra@stanford.edu) <http://www.eyrie.org/~eagle/>
>
--
"Genius might be described as a supreme capacity for getting its possessors
into trouble of all kinds."
-- Samuel Butler