Re: umount: --types does not limit

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

 



On Tue, Jul 15, 2014 at 11:02:04AM +0200, Benno Schulenberg wrote:
> 
> 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.

 grrr... you're right, I see.. libmount always overwrites the setting 
 by stuff from mtab.
 
 IMHO it would be nice to restrict the all the umount actions (like
 --recursive, --all-targets or when more mountpoints specified) by the
 pattern. I'll add this to the TODO file for v2.26.
 
 Thanks!
 
    Karel

-- 
 Karel Zak  <kzak@xxxxxxxxxx>
 http://karelzak.blogspot.com
--
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