MCPcopy Create free account
hub / github.com/ceph/ceph / copy_with_progress

Method copy_with_progress

src/librbd/librbd.cc:2110–2119  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2108 }
2109
2110 int Image::copy_with_progress(IoCtx& dest_io_ctx, const char *destname,
2111 librbd::ProgressContext &pctx)
2112 {
2113 ImageCtx *ictx = (ImageCtx *)ctx;
2114 tracepoint(librbd, copy_enter, ictx, ictx->name.c_str(), ictx->snap_name.c_str(), ictx->read_only, dest_io_ctx.get_pool_name().c_str(), dest_io_ctx.get_id(), destname);
2115 ImageOptions opts;
2116 int r = librbd::copy(ictx, dest_io_ctx, destname, opts, pctx, 0);
2117 tracepoint(librbd, copy_exit, r);
2118 return r;
2119 }
2120
2121 int Image::copy_with_progress2(Image& dest, librbd::ProgressContext &pctx)
2122 {

Callers 1

TEST_FFunction · 0.80

Calls 4

copyFunction · 0.70
c_strMethod · 0.45
get_pool_nameMethod · 0.45
get_idMethod · 0.45

Tested by 1

TEST_FFunction · 0.64