]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: add doc & doc testing for force option on `radosgw-admin object rm ...`
authorJ. Eric Ivancich <ivancich@redhat.com>
Thu, 3 Apr 2025 00:23:41 +0000 (20:23 -0400)
committerJ. Eric Ivancich <ivancich@redhat.com>
Wed, 9 Apr 2025 16:44:09 +0000 (12:44 -0400)
Subject says it all.

Signed-off-by: J. Eric Ivancich <ivancich@redhat.com>
(cherry picked from commit 333b5cd1e36c53b69462961046199e69e906f1cc)

doc/man/8/radosgw-admin.rst
src/rgw/rgw_admin.cc
src/test/cli/radosgw-admin/help.t

index 2218ef798f00514647ee9e7e27ed7e018f998c83..9182719fbee3210c2d974b76bfd62d4ba6dd1425 100644 (file)
@@ -135,22 +135,23 @@ as follows:
   Purge bucket index entries.
 
 :command:`object rm`
-  Remove an object.
+  Remove an S3/Swift object. Include "--yes-i-really-mean-it" to remove object's
+  entry from bucket index, for example if it's damaged.
 
 :command:`object stat`
-  Stat an object for its metadata.
+  Stat an S3/Swift object for its metadata.
 
 :command:`object manifest`
-  Display the manifest of RADOS objects containing the data.
+  Display the manifest of an S3/Swift object, producing a list of RADOS objects containing the data.
 
 :command:`object unlink`
-  Unlink object from bucket index.
+  Unlink S3/Swift object from bucket index.
 
 :command:`object rewrite`
-  Rewrite the specified object.
+  Rewrite the specified S3/Swift object.
 
 :command:`object reindex`
-  Add an object to its bucket's index. Used rarely for emergency repairs.
+  Add an S3/Swift object to its bucket's index. Used rarely for emergency repairs.
 
 :command:`objects expire`
   Run expired objects cleanup.
index 34132342985aaa5193c7879d093660bb87ce7bc3..f71170105373b55c545c7ade4eb625dd2b89d6b5 100644 (file)
@@ -182,7 +182,7 @@ void usage()
   cout << "  bi put                           store bucket index object entries\n";
   cout << "  bi list                          list raw bucket index entries\n";
   cout << "  bi purge                         purge bucket index entries\n";
-  cout << "  object rm                        remove object\n";
+  cout << "  object rm                        remove object; include --yes-i-really-mean-it to force removal from bucket index\n";
   cout << "  object put                       put object\n";
   cout << "  object stat                      stat an object for its metadata\n";
   cout << "  object unlink                    unlink object from bucket index\n";
index 987bd57995380008506653d957d1e2751689ee2f..4813ebbfbb8326b8066dc71cacbd373b8f51c2c9 100644 (file)
@@ -47,7 +47,7 @@
     bi put                           store bucket index object entries
     bi list                          list raw bucket index entries
     bi purge                         purge bucket index entries
-    object rm                        remove object
+    object rm                        remove object; include --yes-i-really-mean-it to force removal from bucket index
     object put                       put object
     object stat                      stat an object for its metadata
     object unlink                    unlink object from bucket index