All of lore.kernel.org
 help / color / mirror / Atom feed
From: Ian Kent <raven@themaw.net>
To: Jim Dennis <jdennis@cadence.com>
Cc: "'autofs@linux.kernel.org'" <autofs@linux.kernel.org>
Subject: Re: /tmp/autoXXXXXX artifacts in /etc/mtab
Date: Thu, 04 Jun 2009 12:21:08 +0800	[thread overview]
Message-ID: <4A274BB4.2080500@themaw.net> (raw)
In-Reply-To: <3BE3DD53E8C764428441BEFE7FE94F163DF67D2B@MAILSJ4.global.cadence.com>

Jim Dennis wrote:
> 
>  All,
> 
>  Running autofs version 5 (versions from RHEL4u7, RHEL5 and the upstream 5.0.4 with almost
>  all of the patches applied) we're seeing quite a few issues with stray /tmp/auto* entries being
>  left in the /etc/mtab file.

But what OS are you using for this and what autofs v5 revisions are you
using?

We know RHEL-4 has a broken move mount and a util-linux dependency has
been added in later revisions. RHEL-4 U7 will be a problem with
autofs-5.0.4 without an updated util-linux.

Anyway, you can check.

From the bug for this:

Steps to Reproduce:
1. mkdir /tmp/mnt /tmp/tmp
2. mount <server>:/<path> /tmp/tmp
3. mount --move /tmp/tmp /tmp/mnt

Actual results:
After the steps above /etc/matb has:
<server>:/<path> /tmp/tmp nfs ....
/tmp/tmp /tmp/mnt none ...

but /proc/mounts has:
<server>:/<path> /tmp/mnt nfs ....

Expected results:
/etc/matb should have a single entry
<server>:/<path> /tmp/mnt nfs ....

> 
>  The symptom is lots of error messages from df commands.
> 
>  Looking through the sources I see that autofs version 5 seems to implement its own internal
>  mount handling (it's not just spawning process to run the /sbin/mount external command
>  for any of the types of mounts for which it has a .so module).  I noticed that there are  three
>  different places in the code which use tempfile template strings matching /tmp/autoXXXXXX.
> 
>  I haven't get been able to track the issue down further ... but I suspect there's a bug in the
>  code that's updating /etc/mtab and which is supposed to be cleaning out these entries.
>  We have a horrendously busy and complex automount infrastucture and we've uncovered
>  locking issues on /etc/mtab in the past (from the /sbin/mount code as well as during the
>  period of time when autofs4 was trying to wrap its own locking around its calls to the external
>  mount command.
> 
>  I'll try to get a more detailed formal bug report together in the next week or so.  However, I
>  figured I should put out an early message in case others are seeing this or already working on it.
> 
> 
> --
> Jim Dennis,
> Senior Staff Linux Engineer, IT
> Cadence Design Systems, Inc.
> 
> _______________________________________________
> autofs mailing list
> autofs@linux.kernel.org
> http://linux.kernel.org/mailman/listinfo/autofs

      reply	other threads:[~2009-06-04  4:21 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-06-04  1:18 /tmp/autoXXXXXX artifacts in /etc/mtab Jim Dennis
2009-06-04  4:21 ` 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=4A274BB4.2080500@themaw.net \
    --to=raven@themaw.net \
    --cc=autofs@linux.kernel.org \
    --cc=jdennis@cadence.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.