public inbox for util-linux@vger.kernel.org
 help / color / mirror / Atom feed
From: Benno Schulenberg <bensberg@justemail.net>
To: Karel Zak <kzak@redhat.com>
Cc: "Util-Linux" <util-linux@vger.kernel.org>
Subject: umount: --types does not limit
Date: Tue, 15 Jul 2014 11:02:04 +0200	[thread overview]
Message-ID: <1405414924.13201.141769101.02687AE4@webmail.messagingengine.com> (raw)
In-Reply-To: <20140715080234.GP30288@x2.net.home>


On Tue, Jul 15, 2014, at 10:02, Karel Zak wrote:
>    umount -t <type>
> 
>  the <type> is filesystem type (so you can force umount to use for
>  example /sbin/umount.<type>).

Hmm.  But it's not working for me, the --types option does not limit
umount in any way.  In the man page it says: "Indicate  that the
actions should *only* be taken on filesystems of the specified type."

But, for example, here Suse is of type ext4 and gets mounted:

# ./mount -t ext4 /suse
# ./mount | grep suse
/dev/sda2 on /suse type ext4 (rw,noatime,noexec,nosuid,nodev,user)

Now I want to unmount all btrfs systems:

# ./umount -t btrfs /suse /zero /other
# ./mount | grep suse

It just unmounts everything that is mentioned, the -t has no
limiting effect.  So it is useful only with -a.

Benno

-- 
http://www.fastmail.fm - Faster than the air-speed velocity of an
                          unladen european swallow


  reply	other threads:[~2014-07-15  9:02 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-07-14  9:57 mount: what is the point of 'nouser' on the command line? Benno Schulenberg
2014-07-14 14:57 ` Karel Zak
2014-07-14 15:24   ` Benno Schulenberg
2014-07-15  8:02     ` Karel Zak
2014-07-15  9:02       ` Benno Schulenberg [this message]
2014-07-15  9:56         ` umount: --types does not limit 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=1405414924.13201.141769101.02687AE4@webmail.messagingengine.com \
    --to=bensberg@justemail.net \
    --cc=kzak@redhat.com \
    --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