From: Karel Zak <kzak@redhat.com>
To: Phillip Susi <psusi@ubuntu.com>
Cc: Matthias Schniedermeyer <ms@citd.de>, util-linux@vger.kernel.org
Subject: Re: Filesystem specific mount options mixed with auto fs type
Date: Fri, 11 Oct 2013 10:37:42 +0200 [thread overview]
Message-ID: <20131011083742.GA14457@x2.net.home> (raw)
In-Reply-To: <5256E3EA.4000304@ubuntu.com>
On Thu, Oct 10, 2013 at 01:29:14PM -0400, Phillip Susi wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> On 10/10/2013 1:03 PM, Matthias Schniedermeyer wrote:
> > AFAIK "mount -s" is just for that case:
> >
> > - man mount - -s Tolerate sloppy mount options rather than failing.
> > This will ignore mount options not supported by a filesystem type.
> > Not all filesystems support this option. This option exists for
> > support of the Linux autofs-based automounter. - man mount -
>
> This doesn't seem to actually work. Trying to mount an ext2 fs with
> the utf8 option still fails with an unknown option error.
"sloppy" is userspace command line option and I guess it was introduced
for NFS (nfs4, nfs, ...) and if I good remember nothing else uses this
option.
There is also "silent" (MS_SILENT) kernel mount flag, but it's usually
used to avoid unwanted printk() when superblok not found.
Notes:
* the "auto" fs type is usually used with generic mount options or
with no options at all ("default" options)
* well designed filesystems allows to save the filesystem specific
options to the FS superblock by some tune util (e.g. tune2fs)
* for removable media users usually use udisks based solutions
* mount by FS identifier
LABEL=FOO /mnt/floppy vfat utf8
LABEL=BAR /mnt/floppy ext2 default
and then "mount LABEL= ... "
* for example NFS has nfsmount.conf where you can specify additional
options, but I don't think it's a good idea to introduce this for
all filesystems
Maybe we can improve mount(8) to test all entries from /etc/fstab
with the same mountpoint (if you want to mount-by-mountpoint)
until the filesystem will be mounted successfully. But I have doubts
that we really need to resolve this very old disadvantage.
Karel
--
Karel Zak <kzak@redhat.com>
http://karelzak.blogspot.com
next prev parent reply other threads:[~2013-10-11 8:37 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-10-10 14:21 Filesystem specific mount options mixed with auto fs type Phillip Susi
2013-10-10 17:03 ` Matthias Schniedermeyer
2013-10-10 17:29 ` Phillip Susi
2013-10-11 8:37 ` Karel Zak [this message]
2013-10-11 13:45 ` Phillip Susi
2013-10-11 14:09 ` Karel Zak
2013-10-11 14:40 ` Phillip Susi
2013-10-11 17:17 ` 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=20131011083742.GA14457@x2.net.home \
--to=kzak@redhat.com \
--cc=ms@citd.de \
--cc=psusi@ubuntu.com \
--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