]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
doc: clarify use of `rados rm` command 51260/head
authorJ. Eric Ivancich <ivancich@redhat.com>
Mon, 16 Aug 2021 22:28:07 +0000 (18:28 -0400)
committerKonstantin Shalygin <k0ste@k0ste.ru>
Thu, 27 Apr 2023 12:30:39 +0000 (19:30 +0700)
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>
(cherry picked from commit 8e975ba9fda04f8bbb8fc1aea1f916852b6cb59b)

doc/man/8/rados.rst
src/tools/rados/rados.cc

index 147313f146d6b848f6eb5cd9a5b32bbd98327cb2..0bbf4b87a774e4bf99f8487274ac53cbf6ef00c8 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 7564fc7f0f2ad7bfc38253392412b95865fac55f..7d5fdf814cd36d25b3a94b8db25d8b9407334949 100644 (file)
@@ -91,7 +91,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>\n"
 "   getxattr <obj-name> attr\n"