crushtool: update help

Signed-off-by: Sage Weil <sage@newdream.net>
This commit is contained in:
Sage Weil 2011-05-26 15:07:37 -07:00
parent ae5bbc7b08
commit 9b8daa92cd
2 changed files with 14 additions and 4 deletions

View 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);
}

View File

@ -14,8 +14,13 @@
[--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]