Bug 136219

Summary: [patch] gnop(8) manual page bug
Product: Documentation Reporter: Kouki Hashimoto <hsmtkk>
Component: Books & ArticlesAssignee: Christian Brueffer <brueffer>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   

Description Kouki Hashimoto 2009-07-01 15:20:01 UTC
First, pplease see gnop(8) man page, line 79.
It says as following...

EXAMPLES
 The following example shows how to create a transparent provider for disk
 /dev/da0 with 50% failure probability, and how to destroy it.
 gnop create -v -f 50 da0

But, to specify failure probability, we should use "-w" option
instead of "-f" option.
So, I think the writing should be
"gnop create -v -w 50 da0"

Regards.

How-To-Repeat: seen gnop(8) man page.
Comment 1 Gavin Atkinson freebsd_committer freebsd_triage 2009-08-12 15:57:18 UTC
This PR is a valid problem.  Patch at
http://people.freebsd.org/~gavin/PRs/136219.diff
Comment 2 dfilter service freebsd_committer freebsd_triage 2009-09-17 14:04:55 UTC
Author: brueffer
Date: Thu Sep 17 13:04:46 2009
New Revision: 197274
URL: http://svn.freebsd.org/changeset/base/197274

Log:
  Fix the example, -w is the right switch for write failure probability.
  
  PR:		136219
  Submitted by:	Kouki Hashimoto <hsmtkk@gmail.com>
  Patch by:	gavin
  MFC after:	3 days

Modified:
  head/sbin/geom/class/nop/gnop.8

Modified: head/sbin/geom/class/nop/gnop.8
==============================================================================
--- head/sbin/geom/class/nop/gnop.8	Thu Sep 17 13:03:44 2009	(r197273)
+++ head/sbin/geom/class/nop/gnop.8	Thu Sep 17 13:04:46 2009	(r197274)
@@ -24,7 +24,7 @@
 .\"
 .\" $FreeBSD$
 .\"
-.Dd September 8, 2006
+.Dd September 17, 2009
 .Dt GNOP 8
 .Os
 .Sh NAME
@@ -147,9 +147,9 @@ Exit status is 0 on success, and 1 if th
 .Sh EXAMPLES
 The following example shows how to create a transparent provider for disk
 .Pa /dev/da0
-with 50% failure probability, and how to destroy it.
+with 50% write failure probability, and how to destroy it.
 .Bd -literal -offset indent
-gnop create -v -f 50 da0
+gnop create -v -w 50 da0
 gnop destroy -v da0.nop
 .Ed
 .Pp
_______________________________________________
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"
Comment 3 Christian Brueffer freebsd_committer freebsd_triage 2009-09-17 14:04:58 UTC
State Changed
From-To: open->patched

Fixed in HEAD, MFC pending. 


Comment 4 Christian Brueffer freebsd_committer freebsd_triage 2009-09-17 14:04:58 UTC
Responsible Changed
From-To: freebsd-doc->brueffer

Fixed in HEAD, MFC pending.
Comment 5 Christian Brueffer freebsd_committer freebsd_triage 2009-10-12 13:22:07 UTC
State Changed
From-To: patched->closed

MFCs done.