Re: when specifying multiple types, mount will mount

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

 



On Thu, Jul 24, 2014 at 10:31:11PM +0200, Benno Schulenberg wrote:
> Current mount (2.25) will always mount a device when more
> than one type is given in a comma-separated list.  Older mount
> (2.17.2 for example) would not not do that but error out.

 We want to support list-of-types in fstab and on command line.

> For example, /dev/sda2 is of type ext4, but we are playing dumb,
> to see what mount will say:
> 
> $ sudo ./mount /dev/sda2 /place -t btrfs
> lt-mount: /dev/sda2: can't read superblock
> 
> $ sudo ./mount /dev/sda2 /place -t msdos
> lt-mount: wrong fs type, bad option, bad superblock on /dev/sda2,
>        missing codepage or helper program, or other error
> 
>        In some cases useful info is found in syslog - try
>        dmesg | tail or so.
> 
> $ sudo ./mount /dev/sda2 /place -t btrfs,msdos

this is bug, it continues with /{proc,etc}/filesystems when no found
anything useful in the list.

> $ ./mount | grep sda2
> /dev/sda2 on /place type ext4 (rw)
> 
> I find this surprising.  If -t does not support a comma-separated
> list, it should report an error.  If it does, it should, IMO, only
> try the specified types and not any others.

 yes, I'm just working on patch and regression test for all -t
 use-cases.

    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