Skip to content

Commit

Permalink
rgw-admin: document orphans commands in usage
Browse files Browse the repository at this point in the history
Fixes: ceph#14516

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
  • Loading branch information
yehudasa committed Feb 2, 2016
1 parent 1e08b21 commit 105a76b
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/rgw/rgw_admin.cc
Expand Up @@ -117,6 +117,8 @@ void _usage()
cout << " replicalog get get replica metadata log entry\n";
cout << " replicalog update update replica metadata log entry\n";
cout << " replicalog delete delete replica metadata log entry\n";
cout << " orphans find init and run search for leaked rados objects\n";
cout << " orphans finish clean up search for leaked rados objects\n";
cout << "options:\n";
cout << " --uid=<id> user id\n";
cout << " --subuser=<name> subuser name\n";
Expand Down Expand Up @@ -180,6 +182,9 @@ void _usage()
cout << " --max-objects specify max objects (negative value to disable)\n";
cout << " --max-size specify max size (in bytes, negative value to disable)\n";
cout << " --quota-scope scope of quota (bucket, user)\n";
cout << "\nOrphans search options:\n";
cout << " --pool data pool to scan for leaked rados objects in\n";
cout << " --num-shards num of shards to use for keeping the temporary scan info\n";
cout << "\n";
generic_client_usage();
}
Expand Down
6 changes: 6 additions & 0 deletions src/test/cli/radosgw-admin/help.t
Expand Up @@ -73,6 +73,8 @@
replicalog get get replica metadata log entry
replicalog update update replica metadata log entry
replicalog delete delete replica metadata log entry
orphans find init and run search for leaked rados objects
orphans finish clean up search for leaked rados objects
options:
--uid=<id> user id
--subuser=<name> subuser name
Expand Down Expand Up @@ -137,6 +139,10 @@
--max-size specify max size (in bytes, negative value to disable)
--quota-scope scope of quota (bucket, user)
Orphans search options:
--pool data pool to scan for leaked rados objects in
--num-shards num of shards to use for keeping the temporary scan info
--conf/-c FILE read configuration from the given configuration file
--id/-i ID set ID portion of my name
--name/-n TYPE.ID set name
Expand Down

0 comments on commit 105a76b

Please sign in to comment.