Bug 149033

Summary: hastctl.8 manpage wrong
Product: Documentation Reporter: Radim Kolar <hsn>
Component: Books & ArticlesAssignee: Pawel Jakub Dawidek <pjd>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   

Description Radim Kolar 2010-07-28 14:20:01 UTC
In EXAMPLES section in first example initialization sequence for nodeA is wrong.

instead of:

NodeB# hastctl create shared
NodeA# hastd
NodeA# hastctl role primary shared

it should read

NodeA# hastctl create shared
^^^^^^
Comment 1 Benedict Reuschling freebsd_committer freebsd_triage 2010-07-29 07:54:36 UTC
Responsible Changed
From-To: freebsd-doc->bcr

I'll take this.
Comment 2 dfilter service freebsd_committer freebsd_triage 2010-07-29 21:16:55 UTC
Author: pjd
Date: Thu Jul 29 20:16:12 2010
New Revision: 210628
URL: http://svn.freebsd.org/changeset/base/210628

Log:
  Fix typo.
  
  PR:		docs/149033
  Submitted by:	Kolar <hsn@sendmail.cz>
  MFC after:	3 days

Modified:
  head/sbin/hastctl/hastctl.8

Modified: head/sbin/hastctl/hastctl.8
==============================================================================
--- head/sbin/hastctl/hastctl.8	Thu Jul 29 20:02:56 2010	(r210627)
+++ head/sbin/hastctl/hastctl.8	Thu Jul 29 20:16:12 2010	(r210628)
@@ -178,7 +178,7 @@ nodeB# hastctl create shared
 nodeB# hastd
 nodeB# hastctl role secondary shared
 
-nodeB# hastctl create shared
+nodeA# hastctl create shared
 nodeA# hastd
 nodeA# hastctl role primary shared
 nodeA# newfs -U /dev/hast/shared
_______________________________________________
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 dfilter service freebsd_committer freebsd_triage 2010-09-23 10:05:45 UTC
Author: pjd
Date: Thu Sep 23 09:05:40 2010
New Revision: 213050
URL: http://svn.freebsd.org/changeset/base/213050

Log:
  MFC r208028,r210628,r210909,r210912,r211397:
  
  r208028:
  
  mdoc: move remaining sections into consistent order
  
  This pertains mostly to FILES, HISTORY, EXIT STATUS and AUTHORS sections.
  
  Found by:	mdocml lint run
  Reviewed by:	ru
  
  r210628:
  
  Fix typo.
  
  PR:		docs/149033
  Submitted by:	Kolar <hsn@sendmail.cz>
  
  r210909:
  
  Update the arguments to yy_config_parse() to match r210883.
  
  Choose the more conservative option ('yes' to exit on error) to match
  the equivalent code in hastd.
  
  r210912:
  
  Force commit to remind me about MFCing r210909.
  
  r211397:
  
  Fix typos, spelling, formatting and mdoc mistakes found by Nobuyuki while
  translating these manual pages.  Minor corrections by me.
  
  Submitted by:	Nobuyuki Koganemaru <n-kogane@syd.odn.ne.jp>

Modified:
  stable/8/sbin/hastctl/hastctl.8
  stable/8/sbin/hastctl/hastctl.c
Directory Properties:
  stable/8/sbin/hastctl/   (props changed)

Modified: stable/8/sbin/hastctl/hastctl.8
==============================================================================
--- stable/8/sbin/hastctl/hastctl.8	Thu Sep 23 09:02:10 2010	(r213049)
+++ stable/8/sbin/hastctl/hastctl.8	Thu Sep 23 09:05:40 2010	(r213050)
@@ -105,7 +105,7 @@ The default extent size is
 Maximum number of dirty extents to keep dirty all the time.
 Most recently used extents are kept dirty to reduce number of metadata
 updates.
-The default numer of most recently used extents which will be kept
+The default number of most recently used extents which will be kept
 dirty is
 .Va 64 .
 .It Fl m Ar mediasize
@@ -153,6 +153,20 @@ Print debugging information.
 This option can be specified multiple times to raise the verbosity
 level.
 .El
+.Sh FILES
+.Bl -tag -width ".Pa /var/run/hastctl" -compact
+.It Pa /etc/hast.conf
+Configuration file for
+.Nm
+and
+.Xr hastd 8 .
+.It Pa /var/run/hastctl
+Control socket used by
+.Nm
+to communicate with the
+.Xr hastd 8
+daemon.
+.El
 .Sh EXIT STATUS
 Exit status is 0 on success, or one of the values described in
 .Xr sysexits 3
@@ -164,7 +178,7 @@ nodeB# hastctl create shared
 nodeB# hastd
 nodeB# hastctl role secondary shared
 
-nodeB# hastctl create shared
+nodeA# hastctl create shared
 nodeA# hastd
 nodeA# hastctl role primary shared
 nodeA# newfs -U /dev/hast/shared
@@ -185,20 +199,6 @@ nodeB# fsck -t ufs /dev/hast/shared
 nodeB# mount -o noatime /dev/hast/shared /shared
 nodeB# application_start
 .Ed
-.Sh FILES
-.Bl -tag -width ".Pa /var/run/hastctl" -compact
-.It Pa /etc/hast.conf
-Configuration file for
-.Nm
-and
-.Xr hastd 8 .
-.It Pa /var/run/hastctl
-Control socket used by
-.Nm
-to communicate with the
-.Xr hastd 8
-daemon.
-.El
 .Sh SEE ALSO
 .Xr sysexits 3 ,
 .Xr geom 4 ,

Modified: stable/8/sbin/hastctl/hastctl.c
==============================================================================
--- stable/8/sbin/hastctl/hastctl.c	Thu Sep 23 09:02:10 2010	(r213049)
+++ stable/8/sbin/hastctl/hastctl.c	Thu Sep 23 09:05:40 2010	(r213050)
@@ -432,7 +432,7 @@ main(int argc, char *argv[])
 
 	pjdlog_debug_set(debug);
 
-	cfg = yy_config_parse(cfgpath);
+	cfg = yy_config_parse(cfgpath, true);
 	assert(cfg != NULL);
 
 	switch (cmd) {
_______________________________________________
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 4 Gavin Atkinson freebsd_committer freebsd_triage 2012-07-07 12:36:42 UTC
State Changed
From-To: patched->closed

This was merged to stable/8 some time ago.
Comment 5 Pawel Jakub Dawidek freebsd_committer freebsd_triage 2014-06-01 07:22:10 UTC
State Changed
From-To: open->patched

Fix committed, thanks! 


Comment 6 Pawel Jakub Dawidek freebsd_committer freebsd_triage 2014-06-01 07:22:10 UTC
Responsible Changed
From-To: bcr->pjd

Steal this PR. I committed the fix before noticing that PR was already owned, 
sorry about that.