[Top] [All Lists]

[xfs-masters] Re: request for patches: showing mount options

To: chuck.lever@xxxxxxxxxx
Subject: [xfs-masters] Re: request for patches: showing mount options
From: Miklos Szeredi <miklos@xxxxxxxxxx>
Date: Sat, 28 Jul 2007 07:37:09 +0200
Cc: miklos@xxxxxxxxxx, linux-fsdevel@xxxxxxxxxxxxxxx, linux-kernel@xxxxxxxxxxxxxxx, akpm@xxxxxxxxxxxxxxxxxxxx, kzak@xxxxxxxxxx, ericvh@xxxxxxxxx, lucho@xxxxxxxxxx, zippel@xxxxxxxxxxxxxx, hpa@xxxxxxxxx, raven@xxxxxxxxxx, rathamahata@xxxxxxx, dhowells@xxxxxxxxxx, sfrench@xxxxxxxxx, mhalcrow@xxxxxxxxxx, phillip@xxxxxxxxxxxxxxxxxxxx, hirofumi@xxxxxxxxxxxxxxxxxx, mikulas@xxxxxxxxxxxxxxxxxxxxxxxx, wli@xxxxxxxxxxxxxx, shaggy@xxxxxxxxxxxxxx, vandrove@xxxxxxxxxx, trond.myklebust@xxxxxxxxxx, aia21@xxxxxxxxxx, mark.fasheh@xxxxxxxxxx, kurt.hackel@xxxxxxxxxx, reiserfs-devel@xxxxxxxxxxxxxxx, bfennema@xxxxxxxxxxxxxxxxxxxxxx, dushistov@xxxxxxx, xfs-masters@xxxxxxxxxxx, arnd@xxxxxxxx, holzheu@xxxxxxxxxx
In-reply-to: <46AA51CA.7030105@oracle.com> (message from Chuck Lever on Fri, 27 Jul 2007 16:12:58 -0400)
References: <E1IEQ7q-0000qE-00@dorka.pomaz.szeredi.hu> <46AA4AC5.2050200@oracle.com> <E1IEW21-0001kL-00@dorka.pomaz.szeredi.hu> <46AA51CA.7030105@oracle.com>
Reply-to: xfs-masters@xxxxxxxxxxx
Sender: xfs-masters-bounce@xxxxxxxxxxx
> >> Some mount options are never passed to the kernel, and thus can't appear 
> >> in /proc/mounts.  Examples include user, users, and _netdev for NFS.
> > 
> > These options control *who* may mount and *when* to mount.  They are
> > not a property of the mount itself and are not added to /etc/mtab.
> > 
> > There's a "user=ID" option that is added to /etc/mtab in case of user
> > mounts.  This identifies the owner of the mount, so that it can be
> > unmounted by that user.  There are patches in -mm that enable the
> > kernel to store this info.
> > 
> > Do you have other examples in mind?
> [no]quota comes to mind;

These are passed to the kernel.

> also auto,

This controls when a filesystem is mounted, same category as '_netdev'

> [no]owner, [no]group,

These control who can mount the filesystem, same category as 'user' and 'users'

> quiet/loud,

I can't find these in the manual as universal options.  Quiet is
defined for a couple of filesystems but with different meaning for
each of them.

> Aside: It's a confusing artifact of the mount CLI that these options 
> control who/when but are passed to the mount command in the same way the 
> other options are.

Yes, slightly.  Actually most of these options are just ignored on the
command line.  They only have an affect in /etc/fstab.

The right behavior of mount(8) would probably be to error out on these
options, since they make no sense on the command line.  But this is
not a kernel issue.


<Prev in Thread] Current Thread [Next in Thread>