From 15c272e8df77d1edb41e79fd6f5b425e2da61338 Mon Sep 17 00:00:00 2001 From: Laszlo Boszormenyi Date: Wed, 1 Dec 2010 09:24:45 -0800 Subject: [PATCH] man: fix monmaptool man page I've found the manpage problem that I've noted before. It's about monmaptool, the CLI says it's usage: [--print] [--create [--clobber]] [--add name 1.2.3.4:567] [--rm name] But the manpage states this as an example: monmaptool --create --add 192.168.0.10:6789 --add 192.168.0.11:6789 --add 192.168.0.12:6789 --clobber monmap This definitely misses 'name' after the 'add' switch, resulting: "invalid ip:port '--add'" as an error message. Attached patch fixes this inconsistency. Signed-off-by: Laszlo Boszormenyi --- man/monmaptool.8 | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/man/monmaptool.8 b/man/monmaptool.8 index 591e23ab1e862..eed42974c46ba 100644 --- a/man/monmaptool.8 +++ b/man/monmaptool.8 @@ -34,15 +34,15 @@ to overwrite \fImapfilename\fP if changes are made. \fB\-\-create\fP will create a new monitor map with a new UUID (and with it, a new, empty Ceph file system). .TP -\fB\-\-add\fI ip:port\fP +\fB\-\-add\fI name ip:port\fP will add a monitor with the specified \fIip:port\fP to the map. .TP -\fB\-\-rm\fI ip:port\fP +\fB\-\-rm\fI name\fP will remove the monitor with the specified \fIip:port\fP from the map. .SH EXAMPLE To create a new map with three monitors (for a fresh Ceph file system): .IP -monmaptool --create --add 192.168.0.10:6789 --add 192.168.0.11:6789 --add 192.168.0.12:6789 --clobber monmap +monmaptool --create --add mon.a 192.168.0.10:6789 --add mon.b 192.168.0.11:6789 --add mon.c 192.168.0.12:6789 --clobber monmap .PP To display the contents of the map: .IP @@ -50,7 +50,7 @@ monmaptool --print onmap .PP To replace one monitor: .IP -monmaptool --rm 192.168.0.10:6789 --add 192.168.0.9:6789 --clobber monmap +monmaptool --rm mon.a --add mon.a 192.168.0.9:6789 --clobber monmap .SH AVAILABILITY .B monmaptool is part of the Ceph distributed file system. Please refer to the Ceph wiki at -- 2.39.5