std::string id; // only used for new-format images
ParentInfo parent_md;
ImageCtx *parent;
+ ImageCtx *child = nullptr;
cls::rbd::GroupSpec group_spec;
uint64_t stripe_unit, stripe_count;
uint64_t flags;
// reset the snap_name and snap_exists fields after we read the header
m_parent_image_ctx = new I("", m_parent_md.spec.image_id, NULL, parent_io_ctx,
true);
+ m_parent_image_ctx->child = &m_child_image_ctx;
// set rados flags for reading the parent image
if (m_child_image_ctx.balance_parent_reads) {