usage_exit();
if (operation != OP_WRITE) {
if (block_size_specified) {
- cerr << "-b|--block_size option can be used only with `write' bench test"
+ cerr << "-b|--block_size option can be used only with 'write' bench test"
<< std::endl;
ret = -EINVAL;
goto out;
}
if (!formatter && output) {
- cerr << "-o|--output option can be used only with '--format' option"
+ cerr << "-o|--output option can only be used with '--format' option"
<< std::endl;
ret = -EINVAL;
goto out;
concurrent_ios, op_size, object_size,
max_objects, cleanup, hints, run_name, no_verify);
if (ret != 0)
- cerr << "error during benchmark: " << ret << std::endl;
+ cerr << "error during benchmark: " << cpp_strerror(ret) << std::endl;
if (formatter && output)
delete outstream;
}
RadosBencher bencher(g_ceph_context, rados, io_ctx);
ret = bencher.clean_up(prefix, concurrent_ios, run_name);
if (ret != 0)
- cerr << "error during cleanup: " << ret << std::endl;
+ cerr << "error during cleanup: " << cpp_strerror(ret) << std::endl;
}
else if (strcmp(nargs[0], "watch") == 0) {
if (!pool_name || nargs.size() < 2)
uint64_t cookie;
ret = io_ctx.watch2(oid, &cookie, &ctx);
if (ret != 0)
- cerr << "error calling watch: " << ret << std::endl;
+ cerr << "error calling watch: " << cpp_strerror(ret) << std::endl;
else {
cout << "press enter to exit..." << std::endl;
getchar();
::encode(msg, bl);
ret = io_ctx.notify2(oid, bl, 10000, &replybl);
if (ret != 0)
- cerr << "error calling notify: " << ret << std::endl;
+ cerr << "error calling notify: " << cpp_strerror(ret) << std::endl;
if (replybl.length()) {
map<pair<uint64_t,uint64_t>,bufferlist> rm;
set<pair<uint64_t,uint64_t> > missed;