From amdmi3@amdmi3.ru  Fri Jul 30 13:27:35 2010
Return-Path: <amdmi3@amdmi3.ru>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 6D85B106566C
	for <FreeBSD-gnats-submit@freebsd.org>; Fri, 30 Jul 2010 13:27:35 +0000 (UTC)
	(envelope-from amdmi3@amdmi3.ru)
Received: from smtp.timeweb.ru (smtp.timeweb.ru [92.53.116.15])
	by mx1.freebsd.org (Postfix) with ESMTP id 2AE808FC22
	for <FreeBSD-gnats-submit@freebsd.org>; Fri, 30 Jul 2010 13:27:34 +0000 (UTC)
Received: from [213.148.20.85] (helo=hive.panopticon)
	by smtp.timeweb.ru with esmtpsa (TLSv1:CAMELLIA256-SHA:256)
	(Exim 4.71)
	(envelope-from <amdmi3@amdmi3.ru>)
	id 1Oepcb-00031n-A2
	for FreeBSD-gnats-submit@freebsd.org; Fri, 30 Jul 2010 17:27:33 +0400
Received: from hades.panopticon (hades.panopticon [192.168.0.32])
	by hive.panopticon (Postfix) with ESMTP id 1EBD8B865
	for <FreeBSD-gnats-submit@freebsd.org>; Fri, 30 Jul 2010 17:27:32 +0400 (MSD)
Received: by hades.panopticon (Postfix, from userid 1000)
	id 07B9CB84E; Fri, 30 Jul 2010 17:27:32 +0400 (MSD)
Message-Id: <20100730132732.07B9CB84E@hades.panopticon>
Date: Fri, 30 Jul 2010 17:27:32 +0400 (MSD)
From: Dmitry Marakasov <amdmi3@FreeBSD.org>
Reply-To: Dmitry Marakasov <amdmi3@FreeBSD.org>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: [man] xfs.5: non-working mount example
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         149106
>Category:       docs
>Synopsis:       xfs.5: non-working mount example
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    keramida
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          doc-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Jul 30 13:30:05 UTC 2010
>Closed-Date:    Wed Jan 19 22:20:04 UTC 2011
>Last-Modified:  Wed Jan 19 22:20:04 UTC 2011
>Originator:     Dmitry Marakasov
>Release:        FreeBSD 8.1-RELEASE i386
>Organization:
>Environment:
System: FreeBSD hades.panopticon 8.1-RELEASE FreeBSD 8.1-RELEASE #0: Fri Jul 30 02:50:28 MSD 2010 root@hades.panopticon:/async/obj/usr/src/sys/HADES i386


>Description:
xfs.5 says:

EXAMPLES
     To mount a xfs volume located on /dev/ad1s1:
           
           mount -t xfs /dev/ad1s1 /mnt

However, this doesn't work:

# mdconfig -a -s 256m
md0
# mkfs.xfs /dev/md0
meta-data=/dev/md0               isize=256    agcount=8, agsize=8192 blks
         =                       sectsz=512   attr=0
data     =                       bsize=4096   blocks=65536, imaxpct=25
         =                       sunit=0      swidth=0 blks, unwritten=1
naming   =version 2              bsize=4096  
log      =internal log           bsize=4096   blocks=1200, version=1
         =                       sectsz=512   sunit=0 blks, lazy-count=0
realtime =none                   extsz=4096   blocks=0, rtextents=0
# mount -t xfs /dev/md0 /mnt
mount: /dev/md0 : Operation not permitted

However, it works if I explicitely request read-only mount:
# mount -t xfs -oro /dev/md0 /mnt
# mount | tail -1
/dev/md0 on /mnt (xfs, local, read-only)

>How-To-Repeat:
See above
>Fix:
Trivial: -o ro should be added into the example

>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->patched 
State-Changed-By: keramida 
State-Changed-When: Sun Jan 16 20:11:07 UTC 2011 
State-Changed-Why:  
Fixed in /head. 


Responsible-Changed-From-To: freebsd-doc->keramida 
Responsible-Changed-By: keramida 
Responsible-Changed-When: Sun Jan 16 20:11:07 UTC 2011 
Responsible-Changed-Why:  
I'll take care of MFC'ing this. 

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

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: docs/149106: commit references a PR
Date: Sun, 16 Jan 2011 20:11:01 +0000 (UTC)

 Author: keramida (doc committer)
 Date: Sun Jan 16 20:10:55 2011
 New Revision: 217481
 URL: http://svn.freebsd.org/changeset/base/217481
 
 Log:
   Fix the mount example of xfDmitry Marakasov <amdmi3@FreeBSD.org>s(5) filesystems by including the read-only
   option.  We only support ro mounts for xfs, so it's nice if the examples
   we show in the manpage are easy to copy/paste.
   
   PR:		docs/149106
   Submitted by:	amdmi3
   MFC after:	3 days
 
 Modified:
   head/share/man/man5/xfs.5
 
 Modified: head/share/man/man5/xfs.5
 ==============================================================================
 --- head/share/man/man5/xfs.5	Sun Jan 16 18:46:17 2011	(r217480)
 +++ head/share/man/man5/xfs.5	Sun Jan 16 20:10:55 2011	(r217481)
 @@ -53,7 +53,7 @@ To mount a
  volume located on
  .Pa /dev/ad1s1 :
  .Pp
 -.Dl "mount -t xfs /dev/ad1s1 /mnt"
 +.Dl "mount -t xfs -o ro /dev/ad1s1 /mnt"
  .Sh SEE ALSO
  .Xr nmount 2 ,
  .Xr unmount 2 ,
 _______________________________________________
 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/149106: commit references a PR
Date: Wed, 19 Jan 2011 21:49:29 +0000 (UTC)

 Author: keramida (doc committer)
 Date: Wed Jan 19 21:49:21 2011
 New Revision: 217608
 URL: http://svn.freebsd.org/changeset/base/217608
 
 Log:
   MFC r217481 and r217606 from /head
   
   r217481...
     Fix the mount example of xfs(5) filesystems by including the read-only
     option.  We only support ro mounts for xfs, so it’s nice if the examples
     we show in the manpage are easy to copy/paste.
   
     PR:           docs/149106
     Submitted by: amdmi3
   
   r217606...
     Bump .Dd date of manpage for r217481
 
 Modified:
   stable/8/share/man/man5/xfs.5
 Directory Properties:
   stable/8/share/man/man5/   (props changed)
 
 Modified: stable/8/share/man/man5/xfs.5
 ==============================================================================
 --- stable/8/share/man/man5/xfs.5	Wed Jan 19 21:45:40 2011	(r217607)
 +++ stable/8/share/man/man5/xfs.5	Wed Jan 19 21:49:21 2011	(r217608)
 @@ -24,7 +24,7 @@
  .\"
  .\" $FreeBSD$
  .\"
 -.Dd June 16, 2007
 +.Dd January 16, 2011
  .Dt XFS 5
  .Os
  .Sh NAME
 @@ -53,7 +53,7 @@ To mount a
  volume located on
  .Pa /dev/ad1s1 :
  .Pp
 -.Dl "mount -t xfs /dev/ad1s1 /mnt"
 +.Dl "mount -t xfs -o ro /dev/ad1s1 /mnt"
  .Sh SEE ALSO
  .Xr nmount 2 ,
  .Xr unmount 2 ,
 _______________________________________________
 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/149106: commit references a PR
Date: Wed, 19 Jan 2011 21:49:47 +0000 (UTC)

 Author: keramida (doc committer)
 Date: Wed Jan 19 21:49:42 2011
 New Revision: 217609
 URL: http://svn.freebsd.org/changeset/base/217609
 
 Log:
   MFC r217481 and r217606 from /head
   
   r217481...
     Fix the mount example of xfs(5) filesystems by including the read-only
     option.  We only support ro mounts for xfs, so it’s nice if the examples
     we show in the manpage are easy to copy/paste.
   
     PR:           docs/149106
     Submitted by: amdmi3
   
   r217606...
     Bump .Dd date of manpage for r217481
 
 Modified:
   stable/7/share/man/man5/xfs.5
 Directory Properties:
   stable/7/share/man/man5/   (props changed)
 
 Modified: stable/7/share/man/man5/xfs.5
 ==============================================================================
 --- stable/7/share/man/man5/xfs.5	Wed Jan 19 21:49:21 2011	(r217608)
 +++ stable/7/share/man/man5/xfs.5	Wed Jan 19 21:49:42 2011	(r217609)
 @@ -24,7 +24,7 @@
  .\"
  .\" $FreeBSD$
  .\"
 -.Dd June 16, 2007
 +.Dd January 16, 2011
  .Dt XFS 5
  .Os
  .Sh NAME
 @@ -53,7 +53,7 @@ To mount a
  volume located on
  .Pa /dev/ad1s1 :
  .Pp
 -.Dl "mount -t xfs /dev/ad1s1 /mnt"
 +.Dl "mount -t xfs -o ro /dev/ad1s1 /mnt"
  .Sh SEE ALSO
  .Xr nmount 2 ,
  .Xr unmount 2 ,
 _______________________________________________
 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: keramida 
State-Changed-When: Wed Jan 19 22:19:35 UTC 2011 
State-Changed-Why:  
Merged to stable/8 and stable/7 

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