From 74a89f377766d6cdd1ea39e6b7f10fb03d57b663 Mon Sep 17 00:00:00 2001 From: Mykola Golub Date: Thu, 29 Aug 2019 15:50:49 +0100 Subject: [PATCH] librbd: enable mirroring namespace support Signed-off-by: Mykola Golub --- src/librbd/api/Mirror.cc | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/src/librbd/api/Mirror.cc b/src/librbd/api/Mirror.cc index 200fac95a5dbf..2e91b584dc430 100644 --- a/src/librbd/api/Mirror.cc +++ b/src/librbd/api/Mirror.cc @@ -169,12 +169,6 @@ int Mirror::image_enable(I *ictx, bool relax_same_pool_parent_check) { CephContext *cct = ictx->cct; ldout(cct, 20) << "ictx=" << ictx << dendl; - // TODO - if (!ictx->md_ctx.get_namespace().empty()) { - lderr(cct) << "namespaces are not supported" << dendl; - return -EINVAL; - } - int r = ictx->state->refresh_if_required(); if (r < 0) { return r; @@ -581,12 +575,6 @@ int Mirror::mode_set(librados::IoCtx& io_ctx, CephContext *cct = reinterpret_cast(io_ctx.cct()); ldout(cct, 20) << dendl; - // TODO - if (!io_ctx.get_namespace().empty()) { - lderr(cct) << "namespaces are not supported" << dendl; - return -EINVAL; - } - cls::rbd::MirrorMode next_mirror_mode; switch (mirror_mode) { case RBD_MIRROR_MODE_DISABLED: @@ -783,12 +771,6 @@ int Mirror::peer_add(librados::IoCtx& io_ctx, std::string *uuid, ldout(cct, 20) << "name=" << cluster_name << ", " << "client=" << client_name << dendl; - // TODO - if (!io_ctx.get_namespace().empty()) { - lderr(cct) << "namespaces are not supported" << dendl; - return -EINVAL; - } - if (cct->_conf->cluster == cluster_name) { lderr(cct) << "cannot add self as remote peer" << dendl; return -EINVAL; -- 2.39.5