Ian/Jeff,

I just tried your test below and I **was** able to touch the file
successfully, even though I was seeing my problem.  The problem I am seeing
seems to be limited to what the system thinks is the cwd.  Let me try to
restate the problem...

If I cd from directory to directory using a relative path for the argument
to cd, AND one of the cd's causes an automount to happen, AND I am running
(t)cshell, then once I have entered a subdirectory of the mount point pwd is
incorrect in that it is missing the mount point directory - that is it only
contains the fa�ade and the subdirectory of the mount point.  Not only does
pwd return the wrong value, but the /proc/$$/cwd symbolic link points to a
non-existent location.  Conversely, if you are running under /bin/sh or a
derivative, OR you jump directly past the mount point into the file system
in one cd, OR the file system is already mounted (i.e. the cd into the mount
point did not need to make the mount), all is well.  This happens with both
indirect and direct mounts; more of the path is missing if you have a direct
map entry that is more than one level down (e.g. /fa�ade/a/mnt_pt).

Here is an example.  I want to get to /fa�ade/mnt_pt/foo:
> cd /fa�ade
> pwd
/fa�ade
> cd mnt_pt
> pwd
/fa�ade/mnt_pt
> cd foo
> pwd
/fa�ade/foo

In fact if I do an "ls ../..", I get the correct listing of /fa�ade even
though according to pwd I should see the contents of /.

I sent this in mostly as a "have you seen this in the latest" just in case
it had not been fixed.

I know I am behind.  I have resisted compiling the kernel because the tool
vendors latch on to that as the cause of any problem you report and won't
talk to you until you can duplicate it on vanilla system, which, since all
the files and programs are automounted becomes something of a catch-22; not
insurmountable, but a royal pain none the less.  I will be rolling forward
soon when we apply RHEL 3 Update 2.  Did I read Jeff's note correctly that
the kernel patch will be in Update 3??  That would make my summer (I know, I
should get out more)!


Pete Harris
Tektronix, Inc. / Central Engineering / Technical Computing
Phone:  1-503-627-3989
Fax:    1-503-627-5587


-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Monday, July 12, 2004 08:59
To: Jeff Moyer
Cc: Harris, Peter A; autofs mailing list
Subject: Re: [autofs] csh/cd not getting the right cwd at the mount point


<snip>

I had some trouble understanding the problem dscription but thought it 
sounded like below.

The easiest way to demonstrate the problem that this fixes is to cd to 
an autofs directory and attempt to touch a file. It failed, a cd away and 
back sees the touch work OK. I was able to made this badness happen fairly 
easily.

<snip>

_______________________________________________
autofs mailing list
[EMAIL PROTECTED]
http://linux.kernel.org/mailman/listinfo/autofs

Reply via email to