]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
librbd: don't remove an image w/ incompatible features 12638/head
authorDongsheng Yang <dongsheng.yang@easystack.cn>
Fri, 23 Dec 2016 02:00:41 +0000 (21:00 -0500)
committerDongsheng Yang <dongsheng.yang@easystack.cn>
Fri, 23 Dec 2016 02:00:49 +0000 (21:00 -0500)
Fixes: http://tracker.ceph.com/issues/18315
Signed-off-by: Dongsheng Yang <dongsheng.yang@easystack.cn>
src/librbd/internal.cc

index 0807113a997e0d0bfb201dc45a033a76c1d10acc..bf94a72cc1151906f10855ecefef736f65710148 100644 (file)
@@ -1502,6 +1502,9 @@ int mirror_image_disable_internal(ImageCtx *ictx, bool force,
     if (r < 0) {
       ldout(cct, 2) << "error opening image: " << cpp_strerror(-r) << dendl;
       delete ictx;
+      if (r != -ENOENT) {
+       return r;
+      }
     } else {
       string header_oid = ictx->header_oid;
       old_format = ictx->old_format;