]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
tools/ceph_dedup_tool: elaborate explanation of commands
authormyoungwon oh <ohmyoungwon@gmail.com>
Sun, 10 Oct 2021 13:45:52 +0000 (22:45 +0900)
committermyoungwon oh <ohmyoungwon@gmail.com>
Fri, 15 Oct 2021 16:49:36 +0000 (01:49 +0900)
Signed-off-by: Myoungwon Oh <myoungwon.oh@samsung.com>
src/tools/ceph_dedup_tool.cc

index 99e36e0347eb427990dbc2200a85d087360ecfa5..adfaa3839f0998dd9764690f3b49bb23e5a34b26 100644 (file)
@@ -133,7 +133,17 @@ ceph::mutex glock = ceph::make_mutex("glock");
 
 void usage()
 {
-  cout << " usage: [--op <estimate|chunk-scrub|chunk-get-ref|chunk-put-ref|chunk-repair|dump-chunk-refs>] [--pool <pool_name> ] " << std::endl;
+  cout <<
+"usage: \n"
+"  ceph-dedup-tool \n"
+"    [--op estimate --pool POOL --chunk-size CHUNK_SIZE --chunk-algorithm ALGO --fingerprint-algorithm FP_ALGO] \n"
+"    [--op chunk-scrub --op chunk-scrub --chunk-pool POOL] \n"
+"    [--op chunk-get-ref --chunk-pool POOL --object OID --target-ref OID --target-ref-pool-id POOL_ID] \n"
+"    [--op chunk-put-ref --chunk-pool POOL --object OID --target-ref OID --target-ref-pool-id POOL_ID] \n"
+"    [--op chunk-repair --chunk-pool POOL --object OID --target-ref OID --target-ref-pool-id POOL_ID] \n"
+"    [--op dump-chunk-refs --chunk-pool POOL --object OID] \n"
+  << std::endl;
+  cout << "optional arguments: " << std::endl;
   cout << "   --object <object_name> " << std::endl;
   cout << "   --chunk-size <size> chunk-size (byte) " << std::endl;
   cout << "   --chunk-algorithm <fixed|fastcdc> " << std::endl;