Reported by: Henry C Chang <henry.cy.chang@gmail.com>
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
cerr << err.str() << std::endl;
exit(EXIT_FAILURE);
}
- if (i == args.end())
- usage();
- i = args.erase(i);
if (i == args.end())
usage();
add_weight = atof(*i);
i = args.erase(i);
} else if (ceph_argparse_witharg(args, i, &val, "--loc", (char*)NULL)) {
std::string type(val);
- if (i == args.end())
- usage();
- i = args.erase(i);
if (i == args.end())
usage();
std::string name(*i);
remove_name = val;
} else if (ceph_argparse_witharg(args, i, &val, "--reweight_item", (char*)NULL)) {
reweight_name = val;
- if (i == args.end())
- usage();
- i = args.erase(i);
if (i == args.end())
usage();
reweight_weight = atof(*i);
exit(EXIT_FAILURE);
}
int dev = tmp;
- if (i == args.end())
- usage();
- i = args.erase(i);
if (i == args.end())
usage();
float f = atof(*i);