umount: --types does not limit

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

--
To unsubscribe from this list: send the line "unsubscribe util-linux" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux