Skip to content

Commit 333b5cd

Browse files
committed
rgw: add doc & doc testing for force option on radosgw-admin object rm ...
Subject says it all. Signed-off-by: J. Eric Ivancich <[email protected]>
1 parent 7e1ac21 commit 333b5cd

File tree

3 files changed

+9
-8
lines changed

3 files changed

+9
-8
lines changed

doc/man/8/radosgw-admin.rst

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -135,22 +135,23 @@ as follows:
135135
Purge bucket index entries.
136136

137137
:command:`object rm`
138-
Remove an object.
138+
Remove an S3/Swift object. Include "--yes-i-really-mean-it" to remove object's
139+
entry from bucket index, for example if it's damaged.
139140

140141
:command:`object stat`
141-
Stat an object for its metadata.
142+
Stat an S3/Swift object for its metadata.
142143

143144
:command:`object manifest`
144-
Display the manifest of RADOS objects containing the data.
145+
Display the manifest of an S3/Swift object, producing a list of RADOS objects containing the data.
145146

146147
:command:`object unlink`
147-
Unlink object from bucket index.
148+
Unlink S3/Swift object from bucket index.
148149

149150
:command:`object rewrite`
150-
Rewrite the specified object.
151+
Rewrite the specified S3/Swift object.
151152

152153
:command:`object reindex`
153-
Add an object to its bucket's index. Used rarely for emergency repairs.
154+
Add an S3/Swift object to its bucket's index. Used rarely for emergency repairs.
154155

155156
:command:`objects expire`
156157
Run expired objects cleanup.

src/rgw/radosgw-admin/radosgw-admin.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ void usage()
180180
cout << " bi put store bucket index object entries\n";
181181
cout << " bi list list raw bucket index entries\n";
182182
cout << " bi purge purge bucket index entries\n";
183-
cout << " object rm remove object\n";
183+
cout << " object rm remove object; include --yes-i-really-mean-it to force removal from bucket index\n";
184184
cout << " object put put object\n";
185185
cout << " object stat stat an object for its metadata\n";
186186
cout << " object unlink unlink object from bucket index\n";

src/test/cli/radosgw-admin/help.t

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
bi put store bucket index object entries
5151
bi list list raw bucket index entries
5252
bi purge purge bucket index entries
53-
object rm remove object
53+
object rm remove object; include --yes-i-really-mean-it to force removal from bucket index
5454
object put put object
5555
object stat stat an object for its metadata
5656
object unlink unlink object from bucket index

0 commit comments

Comments
 (0)