From: Jason Dillaman Date: Wed, 3 May 2017 14:49:09 +0000 (-0400) Subject: rbd: removed spurious error message from mirror pool commands X-Git-Tag: v12.0.3~91^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F14935%2Fhead;p=ceph.git rbd: removed spurious error message from mirror pool commands If the pool was empty, the rbd CLI would report the error "rbd: failed to list images within pool". Signed-off-by: Jason Dillaman --- diff --git a/src/tools/rbd/action/MirrorPool.cc b/src/tools/rbd/action/MirrorPool.cc index d3bc63b277cd..5e51ca8e1ac3 100644 --- a/src/tools/rbd/action/MirrorPool.cc +++ b/src/tools/rbd/action/MirrorPool.cc @@ -466,7 +466,7 @@ public: // mirror image operations librbd::RBD rbd; int r = rbd.list(m_io_ctx, m_image_names); - if (r < 0) { + if (r < 0 && r != -ENOENT) { std::cerr << "rbd: failed to list images within pool" << std::endl; return r; }