diff options
author | jkoshy <jkoshy@FreeBSD.org> | 1999-05-07 05:22:08 +0000 |
---|---|---|
committer | jkoshy <jkoshy@FreeBSD.org> | 1999-05-07 05:22:08 +0000 |
commit | beb671ab535efe3a549298a4f68423131d36edf6 (patch) | |
tree | e1ed3a6d8e0b057c7c03e8b2ec216f76bbf90794 /sbin/mount/mount.8 | |
parent | ea5a4be9ab88e2521cbd6f28cc56698296e738b7 (diff) | |
download | FreeBSD-src-beb671ab535efe3a549298a4f68423131d36edf6.zip FreeBSD-src-beb671ab535efe3a549298a4f68423131d36edf6.tar.gz |
1. Enhanced syntax for mount(8). The -o option now supports two 'meta'
options:
-o fstab brings in filesystem options specified in /etc/fstab
-o current incorporates the current set of options for the file
system
The rightmost option wins in the case of conflicting options being
specified.
E.g.:-
# mount -u -o current,nosuid /home
will preserve the current mount options while adding the 'nosuid' flag.
2. Rewording of manual page to be hopefully clearer; small -Wall
cleanups.
Thanks to David Malone for his patience and willingness to work
multiple patches on request.
PR: bin/6399
Submitted by: David Malone <dwmalone@maths.tcd.ie>
Diffstat (limited to 'sbin/mount/mount.8')
-rw-r--r-- | sbin/mount/mount.8 | 25 |
1 files changed, 17 insertions, 8 deletions
diff --git a/sbin/mount/mount.8 b/sbin/mount/mount.8 index 9a33f50..a326ad4 100644 --- a/sbin/mount/mount.8 +++ b/sbin/mount/mount.8 @@ -30,7 +30,7 @@ .\" SUCH DAMAGE. .\" .\" @(#)mount.8 8.8 (Berkeley) 6/16/94 -.\" $Id: mount.8,v 1.24 1998/10/16 00:06:56 des Exp $ +.\" $Id: mount.8,v 1.25 1999/04/08 13:59:42 ghelmer Exp $ .\" .Dd June 16, 1994 .Dt MOUNT 8 @@ -101,6 +101,8 @@ caution). Options are specified with a .Fl o flag followed by a comma separated string of options. +In case of conflicting options being specified, the rightmost option +takes effect. The following options are available: .Bl -tag -width indent .It async @@ -112,12 +114,23 @@ This is a flag to set, and should not be used unless you are prepared to recreate the file system should your system crash. +.It current +When used with the +.Fl u +flag, this is the same as specifying the options currently in effect for +the mounted filesystem. .It force The same as .Fl f ; forces the revocation of write access when trying to downgrade a filesystem mount status from read-write to read-only. Also forces the R/W mount of an unclean filesystem (dangerous; use with caution). +.It fstab +When used with the +.Fl u +flag, this is the same as specifying all the options listed in the +.Xr fstab 5 +file for the filesystem. .It noatime Do not update the file access time when reading from a file. This option is useful on filesystems where there are large numbers of files and @@ -287,13 +300,9 @@ An attempt to change from read-write to read-only will fail if any files on the filesystem are currently open for writing unless the .Fl f flag is also specified. -The set of options is determined by first extracting the options -for the file system from the -.Xr fstab 5 -table, -then applying any options specified by the -.Fl o -argument, +The set of options is determined by applying the options specified +in the argument to +.Fl o and finally applying the .Fl r or |