diff options
author | Jason McIntyre <jmc@cvs.openbsd.org> | 2008-11-14 08:58:37 +0000 |
---|---|---|
committer | Jason McIntyre <jmc@cvs.openbsd.org> | 2008-11-14 08:58:37 +0000 |
commit | 19f20a11ef755ae1d9563a8f8b9a21fd67ba44ec (patch) | |
tree | 83d0146257bb9a8d1da993bccfb244c4f5c0d9cf | |
parent | 6a37f082bc96f24b87a8fcf256ad2792f113d349 (diff) |
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.8 | 30 |
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 |