string oloc, target_oloc, nspace, target_nspace;
int concurrent_ios = 16;
unsigned op_size = default_op_size;
+ bool block_size_specified = false;
bool cleanup = true;
const char *snapname = NULL;
snap_t snapid = CEPH_NOSNAP;
if (rados_sistrtoll(i, &op_size)) {
return -EINVAL;
}
+ block_size_specified = true;
}
i = opts.find("snap");
if (i != opts.end()) {
operation = OP_RAND_READ;
else
usage_exit();
+ if (block_size_specified && (operation != OP_WRITE)){
+ cerr << "-b|--block_size option can be used only with `write' bench test"
+ << std::endl;
+ ret = -EINVAL;
+ goto out;
+ }
RadosBencher bencher(g_ceph_context, rados, io_ctx);
bencher.set_show_time(show_time);
ret = bencher.aio_bench(operation, seconds, num_objs,