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;
CephContext *cct = reinterpret_cast<CephContext *>(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:
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;