]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/tools/rbd/action/Remove.cc
update sources to v12.1.3
[ceph.git] / ceph / src / tools / rbd / action / Remove.cc
index b407534252b95d94b69cf428aad89e795cceeb21..10e601499f70ec3f215f1426542eb1a874eb0ab7 100644 (file)
@@ -70,23 +70,6 @@ int execute(const po::variables_map &vm) {
                 << "it crashed. Try again after closing/unmapping it or "
                 << "waiting 30s for the crashed client to timeout."
                 << std::endl;
-    } else if (r == -EMLINK) {
-      librbd::Image image;
-      int image_r = utils::open_image(io_ctx, image_name, true, &image);
-      librbd::group_spec_t group_spec;
-      if (image_r == 0) {
-       image_r = image.get_group(&group_spec);
-      }
-      if (image_r == 0)
-       std::cerr << "rbd: error: image belongs to a consistency group "
-                 << group_spec.pool << "." << group_spec.name;
-      else
-       std::cerr << "rbd: error: image belongs to a consistency group";
-
-      std::cerr << std::endl
-               << "Remove the image from the consistency group and try again."
-               << std::endl;
-      image.close();
     } else {
       std::cerr << "rbd: delete error: " << cpp_strerror(r) << std::endl;
     }