summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjmc <jmc@openbsd.org>2008-11-14 08:58:36 +0000
committerjmc <jmc@openbsd.org>2008-11-14 08:58:36 +0000
commit77741768aa17fd48b9fe20bc4bf524a2da524728 (patch)
treeab1d40341ed3aba268c2cac5b871352b87c004d7
parentLOG_INFO is a level not a facility; input and ok jmc@ (diff)
downloadwireguard-openbsd-77741768aa17fd48b9fe20bc4bf524a2da524728.tar.xz
wireguard-openbsd-77741768aa17fd48b9fe20bc4bf524a2da524728.zip
when describing options that can be passed to mount:
- keep the examples in this page and fstab(5) in sync - give an equivalent fstab(5) entry to show how options are specified these changes are necessary because of the differing ways we pass options to mount. while here, zap some .Tn ok otto
-rw-r--r--sbin/mount/mount.830
1 files changed, 16 insertions, 14 deletions
diff --git a/sbin/mount/mount.8 b/sbin/mount/mount.8
index c429cf94234..5645dbab720 100644
--- a/sbin/mount/mount.8
+++ b/sbin/mount/mount.8
@@ -1,4 +1,4 @@
-.\" $OpenBSD: mount.8,v 1.64 2007/11/09 15:18:06 jmc Exp $
+.\" $OpenBSD: mount.8,v 1.65 2008/11/14 08:58:36 jmc Exp $
.\" $NetBSD: mount.8,v 1.11 1995/07/12 06:23:21 cgd Exp $
.\"
.\" Copyright (c) 1980, 1989, 1991, 1993
@@ -30,7 +30,7 @@
.\"
.\" @(#)mount.8 8.7 (Berkeley) 3/27/94
.\"
-.Dd $Mdocdate: November 9 2007 $
+.Dd $Mdocdate: November 14 2008 $
.Dt MOUNT 8
.Os
.Sh NAME
@@ -233,18 +233,23 @@ distinguished by a leading
.Dq \&-
(dash).
Options that take a value are specified using the syntax -option=value.
-For example, the
-.Nm
-command:
-.Bd -literal -offset indent
-# mount -t mfs -o nosuid,-s=4000 /dev/sd0b /tmp
+For example:
+.Bd -literal -offset 3n
+# mount -t mfs -o rw,nodev,nosuid,-s=153600 /dev/sd0b /tmp
.Ed
.Pp
-causes
+That causes
.Nm
to execute the equivalent of:
-.Bd -literal -offset indent
-# /sbin/mount_mfs -o nosuid -s 4000 /dev/sd0b /tmp
+.Bd -literal -offset 3n
+# /sbin/mount_mfs -o rw,nodev,nosuid -s 153600 /dev/sd0b /tmp
+.Ed
+.Pp
+The equivalent example in
+.Xr fstab 5
+would be:
+.Bd -literal -offset 3n
+swap /tmp mfs rw,nodev,nosuid,-s=153600 0 0
.Ed
.It Fl r
The file system is to be mounted read-only.
@@ -285,10 +290,7 @@ command:
# mount -a -t nonfs,mfs
.Ed
.Pp
-mounts all file systems except those of type
-.Tn NFS
-and
-.Tn MFS .
+mounts all file systems except those of type NFS and MFS .
.Pp
.Nm
will attempt to execute a program in