X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=ceph%2Fsrc%2Ftest%2Flibrbd%2Ftest_support.cc;h=55ebe03dce32d6bf00305b88c6fa39055279107e;hb=c07f9fc5a4f48397831383549fb0482b93480643;hp=fa8e25194a7661b2856f2d920bab83e406b06550;hpb=9439ae556f035e65c9c107ae13ddd09457dbbecd;p=ceph.git diff --git a/ceph/src/test/librbd/test_support.cc b/ceph/src/test/librbd/test_support.cc index fa8e25194..55ebe03dc 100644 --- a/ceph/src/test/librbd/test_support.cc +++ b/ceph/src/test/librbd/test_support.cc @@ -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; }