]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
crushtool: update help
authorSage Weil <sage@newdream.net>
Thu, 26 May 2011 22:07:37 +0000 (15:07 -0700)
committerSage Weil <sage@newdream.net>
Thu, 26 May 2011 22:07:37 +0000 (15:07 -0700)
Signed-off-by: Sage Weil <sage@newdream.net>
src/crushtool.cc
src/test/cli/crushtool/help.t

index c7f4e20b2b8f1c49d7b48a121757f1132d883124..3054dde5a121ca71cf1fb093e518eecfcff6e9c8 100644 (file)
@@ -762,10 +762,15 @@ void usage()
   cout << "      [--num-rep n]\n";
   cout << "      [--weight|-w devno weight]\n";
   cout << "                         where weight is 0 to 1.0\n";
-  cout << "   -i mapfn --add-item <id> <weight> <name> [--loc type name ...]\n";
+  cout << "   -i mapfn --add-item id weight name [--loc type name ...]\n";
   cout << "                         insert an item into the hierarchy at the\n";
   cout << "                         given location\n";
-  cout << "   -i mapfn --reweight   recalculate bucket weights\n";
+  cout << "   -i mapfn --remove-item name\n"
+       << "                         remove the given item\n";
+  cout << "   -i mapfn --reweight-item name weight\n";
+  cout << "                         reweight a given item (and adjust ancestor\n"
+       << "                         weights as needed)\n";
+  cout << "   -i mapfn --reweight   recalculate all bucket weights\n";
   exit(1);
 }
 
index 76ad837951eb02496ec2c4910f73bf2af4942bbd..9acc868c7cf41031199d8c39a4cd8626799006bd 100644 (file)
         [--num-rep n]
         [--weight|-w devno weight]
                            where weight is 0 to 1.0
-     -i mapfn --add-item <id> <weight> <name> [--loc type name ...]
+     -i mapfn --add-item id weight name [--loc type name ...]
                            insert an item into the hierarchy at the
                            given location
-     -i mapfn --reweight   recalculate bucket weights
+     -i mapfn --remove-item name
+                           remove the given item
+     -i mapfn --reweight-item name weight
+                           reweight a given item (and adjust ancestor
+                           weights as needed)
+     -i mapfn --reweight   recalculate all bucket weights
   [1]