Fixes: #13124
Signed-off-by: xinxin shu <xinxin.shu@intel.com>
if (!*order)
*order = RBD_DEFAULT_OBJ_ORDER;
- if (*order > 64 || *order < 12) {
- lderr(cct) << "order must be in the range [12, 64]" << dendl;
+ if (*order > 25 || *order < 12) {
+ lderr(cct) << "order must be in the range [12, 25]" << dendl;
return -EDOM;
}
cerr << "rbd: " << err.str() << std::endl;
return EXIT_FAILURE;
}
- if ((order <= 0) || (order < 12) || (order > 25)) {
- cerr << "rbd: order must be between 12 (4 KB) and 25 (32 MB)" << std::endl;
- return EXIT_FAILURE;
- }
} else if (ceph_argparse_witharg(args, i, &val, err, "--io-size", (char*)NULL)) {
if (!err.str().empty()) {
cerr << "rbd: " << err.str() << std::endl;