From: Yehuda Sadeh Date: Tue, 2 Feb 2016 00:33:55 +0000 (-0800) Subject: rgw-admin: document orphans commands in usage X-Git-Tag: v9.2.1~22^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=2b6d817187265686d21de76db14870ff22d549de;p=ceph.git rgw-admin: document orphans commands in usage Fixes: #14516 Signed-off-by: Yehuda Sadeh (cherry picked from commit 105a76bf542e05b739d5a03ca8ae55432350f107) --- diff --git a/src/rgw/rgw_admin.cc b/src/rgw/rgw_admin.cc index af82ecbbf770..82078d9a9b16 100644 --- a/src/rgw/rgw_admin.cc +++ b/src/rgw/rgw_admin.cc @@ -113,6 +113,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= user id\n"; cout << " --subuser= subuser name\n"; @@ -175,6 +177,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(); } diff --git a/src/test/cli/radosgw-admin/help.t b/src/test/cli/radosgw-admin/help.t index 2ef95735e939..11afe76cfbb5 100644 --- a/src/test/cli/radosgw-admin/help.t +++ b/src/test/cli/radosgw-admin/help.t @@ -70,6 +70,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= user id --subuser= subuser name @@ -134,6 +136,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