| 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 | { |