All of lore.kernel.org
 help / color / mirror / Atom feed
From: Ian Kent <raven@themaw.net>
To: "michael@kmaclub.com" <michael@kmaclub.com>
Cc: autofs@linux.kernel.org
Subject: Re: autofs changes process's current working directory
Date: Tue, 15 Dec 2009 09:18:15 +0800	[thread overview]
Message-ID: <4B26E3D7.9070807@themaw.net> (raw)
In-Reply-To: <4B26B73A.3030402@kmaclub.com>

michael@kmaclub.com wrote:
> On 12/14/2009 11:14 AM, Ian Kent wrote:
>> Leonardo Chiquitto wrote:
>>>>> I'm experiencing a problem with autofs. It seems that when a process
>>>>> is inside an automounted nfs filesystem, if I restart the automount
>>>>> daemon the current working directory of the process is changed and a
>>>>> few leading directory are removed leading to a non-existent cwd.
>>>> That's right.
>>>>
>>>> It's because, with older user space and kernel, the mount is detached
>>>> from the mount tree by a "umount -l" at restart when trying to cleanup
>>>> stale mounts.
>>>>
>>>> Note that this is a non-trivial problem and took a long time to fix.
>>>>
>>>> What autofs and kernel are you using?
>>>
>>> Ian,
>>>
>>> I'm also getting this problem on 2.6.31 with autofs-5.0.4. Please, do
>>> you
>>> remember when the fix was committed? Is this related to some (new)
>>> configuration option?
>>
>> Have a look at your init script and the installed autofs configuration.
>>
>> Basically you need /dev/autofs to exist (created when the autofs4 kernel
>> module is loaded) and that's about it. But the init script may be
>> removing it because it thinks you don't want to use it.
> 
> 
> Hi Ian,
> 
> Are you aware of any work to back port these changes into ~2.6.16?  I am
> using an enterprise distribution and this issue is causing us problems.

Not sure but the patches are in the 5.0.4 tar.
There are a couple of bug fixes but nothing major.

It's present in RHEL-5.4.

Ian

      reply	other threads:[~2009-12-15  1:18 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-09-07 11:36 autofs changes process's current working directory Antonio Messina
2009-10-09  5:58 ` Ian Kent
2009-12-14 17:28   ` Leonardo Chiquitto
2009-12-14 18:14     ` Ian Kent
2009-12-14 19:22       ` Leonardo Chiquitto
2009-12-14 22:07       ` michael
2009-12-15  1:18         ` Ian Kent [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4B26E3D7.9070807@themaw.net \
    --to=raven@themaw.net \
    --cc=autofs@linux.kernel.org \
    --cc=michael@kmaclub.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.