Improve manpage clvmd.8.in
Hello,
Following the acceptance of my previous patch after amendment, some changes have been forgotten. I again proposed, taking into account the comments Zdenek Kabelac.
Is it deliberate that some tools have long options and not others, or that options be uppercase, and others lowercase?
I count at least check inconsistencies and omissions on other pages.
Regards,
Signature · 1 line
St?phane Aulery
From: St?phane Aulery <[email protected]>
- Standardize the form of arguments
- clvmd references in bold
- Highlight arguments used in text
- Simplify reading of debug levels (omitted = 1)
- Document the cluster manager "singlenode" that has been forgotten.
- Simplify -d highlights for "maintenability"
--- man/clvmd.8.in | 28 +++++++++++++--------------- 1 file changed, 13 insertions(+), 15 deletions(-)
man/clvmd.8.in +13 -15
@@ -10,7 +10,7 @@ clvmd \(em cluster LVM daemon .RB [ \-f ] .RB [ \-h ] .RB [ \-I -.IR "cluster_manager" ] +.RI < "cluster manager" >] .RB [ \-R ] .RB [ \-S ] .RB [ \-t
@@ -25,9 +25,10 @@ if a node in the cluster does not have this daemon running. .SH OPTIONS .TP .BR \-d [< \fIvalue >] -Set debug logging level.If \fB\-d\fP is specified without a \fIvalue\fP -then 1 is assumed. \fIValue\fP can be: +Set debug logging level. \fIValue\fP can be: .RS +.IP [\fIOmitted\fP] +Equivalent to \fI1\fP. .IP \fI0\fP Disabled .IP \fI1\fP
@@ -40,15 +41,12 @@ Sends debug logs to \fBsyslog\fP(3) Only valid if .B \-d is also specified. Tells all clvmds in a cluster to enable/disable debug logging. -Without this switch, only the local clvmd will change its debug level to that -given with -.B \-d -. -.br -This does not work correctly if specified on the command-line that starts clvmd. -If you want to start clvmd -.B and -enable cluster-wide logging then the command needs to be issued twice, eg: +Without this switch, only the local \fBclvmd\fP will change its debug level to that +given with \fB\-d\fP. + +This does not work correctly if specified on the command-line that starts +\fBclvmd\fP. If you want to start clvmd \fBand\fP enable cluster-wide logging +then the command needs to be issued twice, eg: .br .B clvmd .br
@@ -56,7 +54,7 @@ enable cluster-wide logging then the command needs to be issued twice, eg: .br .TP .BR \-E < "\fIlock uuid" > -Pass lock uuid to be reacquired exclusively when clvmd is restarted. +Pass \fIlock uuid\fP to be reacquired exclusively when \fBclvmd\fP is restarted. .TP .B \-f Don't fork, run in the foreground.
@@ -64,7 +62,7 @@ Don't fork, run in the foreground. .B \-h Show help information. .TP -.BR \-I " \fIcluster_manager\fP" +.BR \-I < "\fIcluster manager\fP" > Selects the \fIcluster manager\fP to use for locking and internal communications. As it is quite possible to have multiple managers available on the same system you might have to manually specify this option to override the
@@ -72,7 +70,7 @@ search. By default, omit \fB-I\fP is equivalent to \fB\-I\fP\fIauto\fP. \fBClvmd\fP will use the first cluster manager that succeeds, and it checks them in a -predefined order cman,corosync,openais. +predefined order: \fIcman, corosync, openais, singlenode\fP. The available managers will be listed by order as part of the \fBclvmd \-h\fP output. .TP
Signature · 1 line
2.1.3
Remove -v option of clvmd
In reply to [email protected]From: St?phane Aulery <[email protected]>
-V is documented, not -v. Needless currently. A --version option would be better.
--- daemons/clvmd/clvmd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
daemons/clvmd/clvmd.c +1 -1
@@ -372,7 +372,7 @@ int main(int argc, char *argv[])/* Deal with command-line arguments */ opterr =0 ; optind =0 ; -while ((opt =getopt_long (argc, argv,"vVhfd:t:RST:CI:E:" , +while ((opt =getopt_long (argc, argv,"Vhfd:t:RST:CI:E:" , longopts,NULL )) !=-1 ) {switch (opt) {case 'h' :
Signature · 1 line
2.1.3