docs/157389: [patch] mount.8: add example of option values for other mount programs

Warren Block wblock at wonkity.com
Sun May 29 00:30:12 UTC 2011


>Number:         157389
>Category:       docs
>Synopsis:       [patch] mount.8:  add example of option values for other mount programs
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-doc
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          doc-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun May 29 00:30:11 UTC 2011
>Closed-Date:
>Last-Modified:
>Originator:     Warren Block
>Release:        8-stable
>Organization:
>Environment:
FreeBSD lightning 8.2-STABLE FreeBSD 8.2-STABLE #0: Sat May 21 15:01:13 MDT 2011     root at lightning:/usr/obj/usr/src/sys/LIGHTNING  i386
>Description:
mount.8 shows an example of a simple option passed to mount_cd9660 and describes but does not show how to pass options with values to other /sbin/mount_* programs.
>How-To-Repeat:
Read mount.8.
>Fix:
Apply patch.

Patch attached with submission follows:

--- /usr/src/sbin/mount/mount.8.orig	2011-05-28 18:11:16.000000000 -0600
+++ /usr/src/sbin/mount/mount.8	2011-05-28 18:20:13.000000000 -0600
@@ -348,7 +348,6 @@
 distinguished by a leading
 .Dq \&-
 (dash).
-Options that take a value are specified using the syntax -option=value.
 For example, the
 .Nm
 command:
@@ -363,6 +362,16 @@
 /sbin/mount_cd9660 -e /dev/cd0 /cdrom
 .Ed
 .Pp
+Options that take a value are specified using the -option=value syntax:
+.Bd -literal -offset indent
+mount -t msdosfs -o -u=fred,-g=wheel /dev/da0s1 /mnt
+.Ed
+.Pp
+is equivalent to
+.Bd -literal -offset indent
+/sbin/mount_msdosfs -u fred -g wheel /dev/da0s1 /mnt
+.Ed
+.Pp
 Additional options specific to file system types
 which are not internally known
 (see the description of the


>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-doc mailing list