linux-nfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Karel Zak <kzak@redhat.com>
To: NeilBrown <neilb@suse.com>
Cc: Ian Kent <raven@themaw.net>,
	autofs mailing list <autofs@vger.kernel.org>,
	linux-nfs@vger.kernel.org, util-linux@vger.kernel.org
Subject: Re: [autofs PATCH] Add -c option when calling /bin/umount - if supported.
Date: Wed, 7 Jun 2017 17:52:02 +0200	[thread overview]
Message-ID: <20170607155202.5zyzuvy6l3fsawkl@ws.net.home> (raw)
In-Reply-To: <87d1agd4cu.fsf@notabene.neil.brown.name>

On Wed, Jun 07, 2017 at 10:32:49AM +1000, NeilBrown wrote:
> 
> The "-c" option has been supported by umount since util-linux 2.17.
> It tells umount that the path name is "canonical", meaning no
> symlinks or ".." etc.
> This is appropriate for autofs to use and it always uses canonical
> path names.
> The advantage of "-c" is that it means umount doesn't need to
> 'lstat()' the path so much.

It would be also nice to force systemd to use "umount -c" on shutdown
to avoid automount storm...

    Karel

-- 
 Karel Zak  <kzak@redhat.com>
 http://karelzak.blogspot.com

  reply	other threads:[~2017-06-07 15:52 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-06-07  0:32 [autofs PATCH] Add -c option when calling /bin/umount - if supported NeilBrown
2017-06-07 15:52 ` Karel Zak [this message]
2017-06-07 15:55   ` Karel Zak

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=20170607155202.5zyzuvy6l3fsawkl@ws.net.home \
    --to=kzak@redhat.com \
    --cc=autofs@vger.kernel.org \
    --cc=linux-nfs@vger.kernel.org \
    --cc=neilb@suse.com \
    --cc=raven@themaw.net \
    --cc=util-linux@vger.kernel.org \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).