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

Method copy2

src/librbd/librbd.cc:2079–2088  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2077 }
2078
2079 int Image::copy2(Image& dest)
2080 {
2081 ImageCtx *srcctx = (ImageCtx *)ctx;
2082 ImageCtx *destctx = (ImageCtx *)dest.ctx;
2083 tracepoint(librbd, copy2_enter, srcctx, srcctx->name.c_str(), srcctx->snap_name.c_str(), srcctx->read_only, destctx, destctx->name.c_str(), destctx->snap_name.c_str(), destctx->read_only);
2084 librbd::NoOpProgressContext prog_ctx;
2085 int r = librbd::copy(srcctx, destctx, prog_ctx, 0);
2086 tracepoint(librbd, copy2_exit, r);
2087 return r;
2088 }
2089
2090 int Image::copy3(IoCtx& dest_io_ctx, const char *destname, ImageOptions& opts)
2091 {

Callers 1

_copy_binaryMethod · 0.80

Calls 2

copyFunction · 0.70
c_strMethod · 0.45

Tested by

no test coverage detected