All of lore.kernel.org
 help / color / mirror / Atom feed
From: Ian Kent <raven@themaw.net>
To: Jeff Moyer <jmoyer@redhat.com>
Cc: autofs mailing list <autofs@linux.kernel.org>
Subject: Re: [autofs4 patch] Use /proc/mounts instead of /etc/mtab
Date: Thu, 09 Nov 2006 11:29:11 +0800	[thread overview]
Message-ID: <1163042951.4475.5.camel@localhost> (raw)
In-Reply-To: <x49ac31nvxg.fsf@segfault.boston.devel.redhat.com>

On Wed, 2006-11-08 at 22:25 -0500, Jeff Moyer wrote:
> ==> On Thu, 09 Nov 2006 11:17:09 +0800, Ian Kent <raven@themaw.net> said:
> 
> Ian> On Wed, 2006-11-08 at 22:03 -0500, Jeff Moyer wrote: > Hi, Ian,
> Ian> list,
> Ian> > 
> Ian> > Here is a patch to consult /proc/mounts instead of /etc/mtab
> Ian> when > deciding if a path has already been mounted.  The problem
> Ian> with using > /etc/mtab, as you know, is that it sometimes does
> Ian> not get updated.  We > know that /proc/mounts will always be
> Ian> right, so why not use it?
> 
> Ian> Good for v4 but keep in mind that in v5 /proc/mounts can have a
> Ian> lot of entries compared to /etc/mtab. The cost of doing this can
> Ian> be quite high.  mount(8) must play well with mtab for v5.
> 
> It's not just mount(8), but also the caller's responsibility.  You
> have to be sure to check for the mtab not updated return value, and
> issue another mount call to try to update it.

Ya .. been there before.
I'll need to check that.

Ian

      reply	other threads:[~2006-11-09  3:29 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-11-09  3:03 [autofs4 patch] Use /proc/mounts instead of /etc/mtab Jeff Moyer
2006-11-09  3:17 ` Ian Kent
2006-11-09  3:25   ` Jeff Moyer
2006-11-09  3:29     ` 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=1163042951.4475.5.camel@localhost \
    --to=raven@themaw.net \
    --cc=autofs@linux.kernel.org \
    --cc=jmoyer@redhat.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.