From: J. Eric Ivancich Date: Mon, 16 Aug 2021 22:28:07 +0000 (-0400) Subject: doc: clarify use of `rados rm` command X-Git-Tag: v16.2.15~81^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=d03e094c7e0cd0ff5eb914a12191a23cdb4409e5;p=ceph.git doc: clarify use of `rados rm` command 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 (cherry picked from commit 8e975ba9fda04f8bbb8fc1aea1f916852b6cb59b) --- diff --git a/doc/man/8/rados.rst b/doc/man/8/rados.rst index 147313f146d6..0bbf4b87a774 100644 --- a/doc/man/8/rados.rst +++ b/doc/man/8/rados.rst @@ -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. diff --git a/src/tools/rados/rados.cc b/src/tools/rados/rados.cc index 7564fc7f0f2a..7d5fdf814cd3 100644 --- a/src/tools/rados/rados.cc +++ b/src/tools/rados/rados.cc @@ -91,7 +91,7 @@ void usage(ostream& out) " append append object\n" " truncate length truncate object\n" " create create object\n" -" rm ...[--force-full] [force no matter full or not]remove object(s)\n" +" rm ... [--force-full] remove object(s), --force-full forces remove when cluster is full\n" " cp [target-obj] copy object\n" " listxattr \n" " getxattr attr\n"