Do it inline.
Signed-off-by: Sage Weil <sage@inktank.com>
return 0;
}
- uint64_t rbd_assign_bid(IoCtx& io_ctx)
- {
- Rados rados(io_ctx);
- return rados.get_instance_id();
- }
-
int read_header_bl(IoCtx& io_ctx, const string& header_oid,
bufferlist& header, uint64_t *ver)
{
return -EDOM;
}
- uint64_t bid = rbd_assign_bid(io_ctx);
+ Rados rados(io_ctx);
+ uint64_t bid = rados.get_instance_id();
// if striping is enabled, use possibly custom defaults
if (!old_format && (features & RBD_FEATURE_STRIPINGV2) &&
int read_rbd_info(librados::IoCtx& io_ctx, const std::string& info_oid,
struct rbd_info *info);
- uint64_t rbd_assign_bid(librados::IoCtx& io_ctx);
int read_header_bl(librados::IoCtx& io_ctx, const std::string& md_oid,
ceph::bufferlist& header, uint64_t *ver);
int notify_change(librados::IoCtx& io_ctx, const std::string& oid,