]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
doc: clarify use of `rados rm` command 42801/head
authorJ. Eric Ivancich <ivancich@redhat.com>
Mon, 16 Aug 2021 22:28:07 +0000 (18:28 -0400)
committerJ. Eric Ivancich <ivancich@redhat.com>
Mon, 16 Aug 2021 22:28:07 +0000 (18:28 -0400)
The man page did not make it clear that multiple objects could be
specified, nor did it describe use of "--force-full".

Info displayed about "rm" with `rados --help` was poorly formatted and
the wording was adjusted.

Signed-off-by: J. Eric Ivancich <ivancich@redhat.com>
doc/man/8/rados.rst
src/tools/rados/rados.cc

index 5e6e76b070e6e598b3bc5c3c940fc313ec4f033b..d606c3a5ef58e156354e8db12343e7793c203f17 100644 (file)
@@ -264,8 +264,8 @@ Pool specific commands
 :command:`append` *name* *infile*
   Append object name to the cluster with contents from infile.
 
-:command:`rm` *name*
-  Remove object name.
+:command:`rm` [--force-full] *name* ...
+  Remove object(s) with name(s). With ``--force-full`` will remove when cluster is marked full.
 
 :command:`listwatchers` *name*
   List the watchers of object name.
index 75a7ad07c43dd9bb02505c9b9185cc265a84e19a..6cb1d0d180ed4638eb11f05338efe827566e424e 100644 (file)
@@ -107,7 +107,7 @@ void usage(ostream& out)
 "   append <obj-name> <infile>       append object\n"
 "   truncate <obj-name> length       truncate object\n"
 "   create <obj-name>                create object\n"
-"   rm <obj-name> ...[--force-full]  [force no matter full or not]remove object(s)\n"
+"   rm <obj-name> ... [--force-full] remove object(s), --force-full forces remove when cluster is full\n"
 "   cp <obj-name> [target-obj]       copy object\n"
 "   listxattr <obj-name>             list attrs of this object\n"
 "   getxattr <obj-name> <attr>       get the <attr> attribute of this object\n"