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

Method copy_with_progress4

src/librbd/librbd.cc:2142–2152  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2140 }
2141
2142 int Image::copy_with_progress4(IoCtx& dest_io_ctx, const char *destname,
2143 ImageOptions& opts,
2144 librbd::ProgressContext &pctx,
2145 size_t sparse_size)
2146 {
2147 ImageCtx *ictx = (ImageCtx *)ctx;
2148 tracepoint(librbd, copy4_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, opts.opts, sparse_size);
2149 int r = librbd::copy(ictx, dest_io_ctx, destname, opts, pctx, sparse_size);
2150 tracepoint(librbd, copy4_exit, r);
2151 return r;
2152 }
2153
2154 int Image::deep_copy(IoCtx& dest_io_ctx, const char *destname,
2155 ImageOptions& opts)

Callers 1

do_copyFunction · 0.80

Calls 4

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

Tested by

no test coverage detected