Jan-Simon and my new versions of the mount commands
[unix-history] / usr / src / sbin / mount / mount.8
index 460c52f..f19082c 100644 (file)
@@ -3,7 +3,7 @@
 .\"
 .\" %sccs.include.redist.roff%
 .\"
 .\"
 .\" %sccs.include.redist.roff%
 .\"
-.\"     @(#)mount.8    8.4 (Berkeley) %G%
+.\"     @(#)mount.8    8.5 (Berkeley) %G%
 .\"
 .Dd 
 .Dt MOUNT 8
 .\"
 .Dd 
 .Dt MOUNT 8
@@ -20,8 +20,8 @@
 .Ar special | node
 .Nm mount
 .Op Fl dfruvw
 .Ar special | node
 .Nm mount
 .Op Fl dfruvw
-.Op Fl t Ar ufs | lfs | external_type
 .Op Fl o Ar options
 .Op Fl o Ar options
+.Op Fl t Ar ufs | lfs | external_type
 .Ar special node
 .Sh DESCRIPTION
 The
 .Ar special node
 .Sh DESCRIPTION
 The
@@ -48,13 +48,6 @@ this list is printed.
 .Pp
 The options are as follows:
 .Bl -tag -width indent
 .Pp
 The options are as follows:
 .Bl -tag -width indent
-.It Fl F
-The standard mount options are parsed and
-passed to external program via the
-.Fl F
-option
-as a decimal number.
-(See example below.)
 .It Fl d
 Causes everything to be done except for the actual system call.
 This option is useful in conjunction with the
 .It Fl d
 Causes everything to be done except for the actual system call.
 This option is useful in conjunction with the
@@ -69,24 +62,45 @@ a filesystem mount status from read-write to read-only.
 .It Fl o
 Options are specified with a
 .Fl o
 .It Fl o
 Options are specified with a
 .Fl o
-flag
-followed by a comma separated string of options.
-The following options apply to any file system that is being mounted:
+flag followed by a comma separated string of options.
+The following options are available:
 .Bl -tag -width indent
 .Bl -tag -width indent
+.It asynchronous
+All
+.Tn I/O
+to the file system should be done asynchronously.
+This is a
+.Em dangerous
+flag to set,
+and should not be used unless you are prepared to recreate the file
+system should your system crash.
+.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.
+.It nodev
+Do not interpret character or block special devices on the file system.
+This option is useful for a server that has file systems containing
+special devices for architectures other than its own.
 .It noexec
 Do not allow execution of any binaries on the mounted file system.
 This option is useful for a server that has file systems containing
 binaries for architectures other than its own.
 .It nosuid
 Do not allow set-user-identifier or set-group-identifier bits to take effect.
 .It noexec
 Do not allow execution of any binaries on the mounted file system.
 This option is useful for a server that has file systems containing
 binaries for architectures other than its own.
 .It nosuid
 Do not allow set-user-identifier or set-group-identifier bits to take effect.
-.It nodev
-Do not interpret character or block special devices on the file system.
-This option is useful for a server that has file systems containing
-special devices for architectures other than its own.
+.It rdonly
+The same as
+.Fl f ;
+mount the file system read-only (even the super-user may not write it).
 .It synchronous
 All
 .Tn I/O
 to the file system should be done synchronously.
 .It synchronous
 All
 .Tn I/O
 to the file system should be done synchronously.
+.It update
+The same as
+.Fl u ;
+indicate that the status of an already mounted file system should be changed.
 .It union
 Causes the namespace at the mount point to appear as the union
 of the mounted filesystem root and the existing directory.
 .It union
 Causes the namespace at the mount point to appear as the union
 of the mounted filesystem root and the existing directory.
@@ -95,8 +109,34 @@ If those operations fail due to a non-existent file the underlying
 directory is then accessed.
 All creates are done in the mounted filesystem.
 .El
 directory is then accessed.
 All creates are done in the mounted filesystem.
 .El
+.Pp
+Any additional options specific to a filesystem type that is not
+one of the internally known types (see the
+.Fl t
+option) may be passed as a comma separated list; these options are
+distinguished by a leading
+.Dq \&-
+(dash).
+Options that take a value are specified using the syntax -option=value.
+For example, the mount command:
+.Bd -literal -offset indent
+mount -t mfs -o nosuid,-N,-s=4000 /dev/dk0b /tmp
+.Ed
+.Pp
+causes
+.Nm mount
+to execute the equivalent of:
+.Bd -literal -offset indent
+/sbin/mount_mfs -o nosuid -N -s 4000 /dev/dk0b /tmp
+.Ed
 .It Fl r
 .It Fl r
-The file system object is to be mounted read-only.
+The file system is to be mounted read-only.
+Mount the file system read-only (even the super-user may not write it).
+The same as the
+.Dq rdonly
+argument to the
+.Fl o
+option.
 .It Fl t Ar "ufs \\*(Ba lfs \\*(Ba external type"
 The argument following the
 .Fl t
 .It Fl t Ar "ufs \\*(Ba lfs \\*(Ba external type"
 The argument following the
 .Fl t
@@ -164,25 +204,6 @@ option.
 Verbose mode.
 .It Fl w
 The file system object is to be read and write.
 Verbose mode.
 .It Fl w
 The file system object is to be read and write.
-.It Fl
-Any additional options specific to the program can
-be passed as a comma separated list;
-these options are distinguished by starting with a
-.Fl
-(dash).
-.El
-.Pp
-Those options that take a value are specified
-using the syntax -option=value.
-For example, the mount command:
-.Bd -literal -offset indent
-mount -t mfs -o nosuid,-N,-s=4000 /dev/dk0b /tmp
-.Ed
-.Pp
-causes mount to attempt to execute:
-.Bd -literal -offset indent
-/sbin/mount_mfs -F 8 -N -s 4000 /dev/dk0b /tmp
-.Ed
 .Pp
 The options specific to NFS filesystems are described in the
 .Xr mount_nfs 8
 .Pp
 The options specific to NFS filesystems are described in the
 .Xr mount_nfs 8