From f98435a45f00ccd5b1bb5b7280153a9dad497e36 Mon Sep 17 00:00:00 2001 From: Ilya Dryomov Date: Thu, 13 Feb 2014 19:38:11 +0200 Subject: [PATCH] osdmaptool: add --pool option for --test-map-pgs mode to usage() --test-map-pgs mode allows to map all pgs from either all pools or just one pool. Mention it in usage output. Signed-off-by: Ilya Dryomov --- src/test/cli/osdmaptool/help.t | 2 +- src/test/cli/osdmaptool/missing-argument.t | 2 +- src/tools/osdmaptool.cc | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/test/cli/osdmaptool/help.t b/src/test/cli/osdmaptool/help.t index b8fd79b87eeff..2c5a41de95396 100644 --- a/src/test/cli/osdmaptool/help.t +++ b/src/test/cli/osdmaptool/help.t @@ -3,7 +3,7 @@ usage: [--print] [--createsimple [--clobber] [--pg_bits ]] --export-crush write osdmap's crush map to --import-crush replace osdmap's crush map with - --test-map-pgs map all pgs + --test-map-pgs [--pool ] map all pgs --mark-up-in mark osds up and in (but do not persist) --clear-temp clear pg_temp and primary_temp --test-random do random placements diff --git a/src/test/cli/osdmaptool/missing-argument.t b/src/test/cli/osdmaptool/missing-argument.t index 8d23d5f18ff36..d0740ab1df6bf 100644 --- a/src/test/cli/osdmaptool/missing-argument.t +++ b/src/test/cli/osdmaptool/missing-argument.t @@ -3,7 +3,7 @@ usage: [--print] [--createsimple [--clobber] [--pg_bits ]] --export-crush write osdmap's crush map to --import-crush replace osdmap's crush map with - --test-map-pgs map all pgs + --test-map-pgs [--pool ] map all pgs --mark-up-in mark osds up and in (but do not persist) --clear-temp clear pg_temp and primary_temp --test-random do random placements diff --git a/src/tools/osdmaptool.cc b/src/tools/osdmaptool.cc index 68096ebea8afc..0db39da52cf16 100644 --- a/src/tools/osdmaptool.cc +++ b/src/tools/osdmaptool.cc @@ -34,7 +34,7 @@ void usage() cout << " usage: [--print] [--createsimple [--clobber] [--pg_bits ]] " << std::endl; cout << " --export-crush write osdmap's crush map to " << std::endl; cout << " --import-crush replace osdmap's crush map with " << std::endl; - cout << " --test-map-pgs map all pgs" << std::endl; + cout << " --test-map-pgs [--pool ] map all pgs" << std::endl; cout << " --mark-up-in mark osds up and in (but do not persist)" << std::endl; cout << " --clear-temp clear pg_temp and primary_temp" << std::endl; cout << " --test-random do random placements" << std::endl; -- 2.39.5