public inbox for util-linux@vger.kernel.org
 help / color / mirror / Atom feed
* when specifying multiple types, mount will mount
@ 2014-07-24 20:31 Benno Schulenberg
  2014-07-25  8:32 ` Karel Zak
  0 siblings, 1 reply; 3+ messages in thread
From: Benno Schulenberg @ 2014-07-24 20:31 UTC (permalink / raw)
  To: Util-Linux


Hi,

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.

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

$ ./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.

Benno

-- 
http://www.fastmail.fm - Accessible with your email software
                          or over the web


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2014-07-25 11:11 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-07-24 20:31 when specifying multiple types, mount will mount Benno Schulenberg
2014-07-25  8:32 ` Karel Zak
2014-07-25 11:11   ` Karel Zak

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox