If there are a lot of crush rules (say, 100) then the test can
take a long time. 100 values per rule should be enough to catch
most issues.
Signed-off-by: Sage Weil <sage@redhat.com>
(cherry picked from commit
0f82f461b33d93d868e185912a2c7e4074d06900)
Conflicts:
src/crush/CrushTester.cc
in hammer the crushtool validation is via a shell
and not via an internal subprocess utility
cmd_args.push_back("--test");
cmd_args.push_back("--check");
cmd_args.push_back(opt_max_id.c_str());
+ cmd_args.push_back("--min-x");
+ cmd_args.push_back("1");
+ cmd_args.push_back("--max-x");
+ cmd_args.push_back("50");
if (ruleset >= 0) {
cmd_args.push_back("--ruleset");
cmd_args.push_back(stringify(ruleset).c_str());