mount(8): Add an 'ignore' option.
authorSascha Wildner <saw@online.de>
Wed, 10 Jun 2009 17:09:29 +0000 (19:09 +0200)
committerSascha Wildner <saw@online.de>
Wed, 10 Jun 2009 17:10:43 +0000 (19:10 +0200)
commit5b5993715687ebe260d77ff5cbc8528e6af1e807
tree6b4077bd4c973b3d8bc4200fcf3fb76bdc78689c
parent3617b2c950b0b82d00cabaead003a6eb8bfb7241
mount(8): Add an 'ignore' option.

The actual infrustructure was already in place (MNT_IGNORE) but it
couldn't be set, i.e. df(1) already had code to ignore MNT_IGNORE
mounts and an option to also show ignored mounts (-a), but the user
couldn't set the ignored option.

This is useful for procfs, amd, nullfs, filebacked fs, etc.
To test it with procfs you also need to recompile mount_std(8).

Some systems call the option 'hidden', but it doesn't seem any better
(both aren't very good), but at least 'ignore' corresponds to
MNT_IGNORE.

Submitted-by: Andreas Hauser <andy@splashground.de>
Dragonfly-bug: <http://bugs.dragonflybsd.org/issue200>
bin/df/df.1
sbin/mount/mntopts.h
sbin/mount/mount.8
sbin/mount/mount.c
sbin/mount/mount_ufs.c