From 9b8daa92cdbcf76449e0d2a15f96d14d84cb2c98 Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Thu, 26 May 2011 15:07:37 -0700 Subject: [PATCH] crushtool: update help Signed-off-by: Sage Weil --- src/crushtool.cc | 9 +++++++-- src/test/cli/crushtool/help.t | 9 +++++++-- 2 files changed, 14 insertions(+), 4 deletions(-) diff --git a/src/crushtool.cc b/src/crushtool.cc index c7f4e20b2b8..3054dde5a12 100644 --- a/src/crushtool.cc +++ b/src/crushtool.cc @@ -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 [--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); } diff --git a/src/test/cli/crushtool/help.t b/src/test/cli/crushtool/help.t index 76ad837951e..9acc868c7cf 100644 --- a/src/test/cli/crushtool/help.t +++ b/src/test/cli/crushtool/help.t @@ -14,8 +14,13 @@ [--num-rep n] [--weight|-w devno weight] where weight is 0 to 1.0 - -i mapfn --add-item [--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]