util-linux.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Benno Schulenberg <bensberg@justemail.net>
To: "Util-Linux" <util-linux@vger.kernel.org>
Subject: when specifying multiple types, mount will mount
Date: Thu, 24 Jul 2014 22:31:11 +0200	[thread overview]
Message-ID: <1406233871.13212.145356397.0035B2A9@webmail.messagingengine.com> (raw)


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


             reply	other threads:[~2014-07-24 20:31 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-07-24 20:31 Benno Schulenberg [this message]
2014-07-25  8:32 ` when specifying multiple types, mount will mount Karel Zak
2014-07-25 11:11   ` 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=1406233871.13212.145356397.0035B2A9@webmail.messagingengine.com \
    --to=bensberg@justemail.net \
    --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;
as well as URLs for NNTP newsgroup(s).