]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/test/librbd/test_support.cc
update sources to v12.1.2
[ceph.git] / ceph / src / test / librbd / test_support.cc
index fa8e25194a7661b2856f2d920bab83e406b06550..55ebe03dce32d6bf00305b88c6fa39055279107e 100644 (file)
@@ -109,5 +109,12 @@ int create_image_data_pool(librados::Rados &rados, std::string &data_pool, bool
     return 0;
   }
 
+  librados::IoCtx ioctx;
+  r = rados.ioctx_create(pool.c_str(), ioctx);
+  if (r < 0) {
+    return r;
+  }
+  ioctx.application_enable("rbd", true);
+
   return r;
 }