From nobody@FreeBSD.org  Sun May 29 00:24:51 2011
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 1F561106566B
	for <freebsd-gnats-submit@FreeBSD.org>; Sun, 29 May 2011 00:24:51 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22])
	by mx1.freebsd.org (Postfix) with ESMTP id 103A98FC08
	for <freebsd-gnats-submit@FreeBSD.org>; Sun, 29 May 2011 00:24:51 +0000 (UTC)
Received: from red.freebsd.org (localhost [127.0.0.1])
	by red.freebsd.org (8.14.4/8.14.4) with ESMTP id p4T0OoBD082548
	for <freebsd-gnats-submit@FreeBSD.org>; Sun, 29 May 2011 00:24:50 GMT
	(envelope-from nobody@red.freebsd.org)
Received: (from nobody@localhost)
	by red.freebsd.org (8.14.4/8.14.4/Submit) id p4T0Oovw082547;
	Sun, 29 May 2011 00:24:50 GMT
	(envelope-from nobody)
Message-Id: <201105290024.p4T0Oovw082547@red.freebsd.org>
Date: Sun, 29 May 2011 00:24:50 GMT
From: Warren Block <wblock@wonkity.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: [patch] mount.8:  add example of option values for other mount programs
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>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:    gavin
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          doc-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun May 29 00:30:11 UTC 2011
>Closed-Date:    Wed Oct 12 20:55:29 UTC 2011
>Last-Modified:  Wed Oct 12 20:55:29 UTC 2011
>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@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:
State-Changed-From-To: open->patched 
State-Changed-By: gavin 
State-Changed-When: Mon Jun 6 13:24:14 UTC 2011 
State-Changed-Why:  
Committed to head, will MFC after one week. 


Responsible-Changed-From-To: freebsd-doc->gavin 
Responsible-Changed-By: gavin 
Responsible-Changed-When: Mon Jun 6 13:24:14 UTC 2011 
Responsible-Changed-Why:  
Take 

http://www.freebsd.org/cgi/query-pr.cgi?pr=157389 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: docs/157389: commit references a PR
Date: Mon,  6 Jun 2011 13:25:16 +0000 (UTC)

 Author: gavin
 Date: Mon Jun  6 13:24:54 2011
 New Revision: 222754
 URL: http://svn.freebsd.org/changeset/base/222754
 
 Log:
   Add another example to mount(8) on using the "-o" argument.
   
   PR:		docs/157389
   Submitted by:	Warren Block <wblock wonkity.com>
   MFC after:	1 week
 
 Modified:
   head/sbin/mount/mount.8
 
 Modified: head/sbin/mount/mount.8
 ==============================================================================
 --- head/sbin/mount/mount.8	Mon Jun  6 13:21:11 2011	(r222753)
 +++ head/sbin/mount/mount.8	Mon Jun  6 13:24:54 2011	(r222754)
 @@ -28,7 +28,7 @@
  .\"     @(#)mount.8	8.8 (Berkeley) 6/16/94
  .\" $FreeBSD$
  .\"
 -.Dd April 28, 2011
 +.Dd June 6, 2011
  .Dt MOUNT 8
  .Os
  .Sh NAME
 @@ -348,7 +348,6 @@ option) may be passed as a comma separat
  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 @@ to execute the equivalent of:
  /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
 _______________________________________________
 svn-src-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/svn-src-all
 To unsubscribe, send any mail to "svn-src-all-unsubscribe@freebsd.org"
 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: docs/157389: commit references a PR
Date: Wed, 12 Oct 2011 20:37:05 +0000 (UTC)

 Author: gavin
 Date: Wed Oct 12 20:36:45 2011
 New Revision: 226321
 URL: http://svn.freebsd.org/changeset/base/226321
 
 Log:
   Merge r222754 from head:
   
     Add another example to mount(8) on using the "-o" argument.
   
   PR:		docs/157389
   Submitted by:	Warren Block <wblock wonkity.com>
 
 Modified:
   stable/8/sbin/mount/mount.8
 Directory Properties:
   stable/8/sbin/mount/   (props changed)
 
 Modified: stable/8/sbin/mount/mount.8
 ==============================================================================
 --- stable/8/sbin/mount/mount.8	Wed Oct 12 20:18:13 2011	(r226320)
 +++ stable/8/sbin/mount/mount.8	Wed Oct 12 20:36:45 2011	(r226321)
 @@ -28,7 +28,7 @@
  .\"     @(#)mount.8	8.8 (Berkeley) 6/16/94
  .\" $FreeBSD$
  .\"
 -.Dd February 10, 2010
 +.Dd June 6, 2011
  .Dt MOUNT 8
  .Os
  .Sh NAME
 @@ -348,7 +348,6 @@ option) may be passed as a comma separat
  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 @@ to execute the equivalent of:
  /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
 _______________________________________________
 svn-src-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/svn-src-all
 To unsubscribe, send any mail to "svn-src-all-unsubscribe@freebsd.org"
 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: docs/157389: commit references a PR
Date: Wed, 12 Oct 2011 20:40:44 +0000 (UTC)

 Author: gavin
 Date: Wed Oct 12 20:40:25 2011
 New Revision: 226323
 URL: http://svn.freebsd.org/changeset/base/226323
 
 Log:
   Merge r222754 from head:
   
     Add another example to mount(8) on using the "-o" argument.
   
   PR:		docs/157389
   Submitted by:	Warren Block <wblock wonkity.com>
 
 Modified:
   stable/7/sbin/mount/mount.8
 Directory Properties:
   stable/7/sbin/mount/   (props changed)
 
 Modified: stable/7/sbin/mount/mount.8
 ==============================================================================
 --- stable/7/sbin/mount/mount.8	Wed Oct 12 20:38:07 2011	(r226322)
 +++ stable/7/sbin/mount/mount.8	Wed Oct 12 20:40:25 2011	(r226323)
 @@ -28,7 +28,7 @@
  .\"     @(#)mount.8	8.8 (Berkeley) 6/16/94
  .\" $FreeBSD$
  .\"
 -.Dd March 11, 2008
 +.Dd June 6, 2011
  .Dt MOUNT 8
  .Os
  .Sh NAME
 @@ -336,7 +336,6 @@ option) may be passed as a comma separat
  distinguished by a leading
  .Dq \&-
  (dash).
 -Options that take a value are specified using the syntax -option=value.
  For example, the
  .Nm
  command:
 @@ -351,6 +350,16 @@ to execute the equivalent of:
  /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
 _______________________________________________
 svn-src-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/svn-src-all
 To unsubscribe, send any mail to "svn-src-all-unsubscribe@freebsd.org"
 
State-Changed-From-To: patched->closed 
State-Changed-By: gavin 
State-Changed-When: Wed Oct 12 20:54:57 UTC 2011 
State-Changed-Why:  
Merged to stable/8 and stable/7. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=157389 
>Unformatted:
