From: Mykola Golub Date: Thu, 3 Nov 2016 08:34:35 +0000 (+0200) Subject: librbd: proper check for get_data_pool compatibility X-Git-Tag: v11.1.0~422^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F11755%2Fhead;p=ceph.git librbd: proper check for get_data_pool compatibility Fixes: http://tracker.ceph.com/issues/17791 Signed-off-by: Mykola Golub --- diff --git a/src/librbd/image/OpenRequest.cc b/src/librbd/image/OpenRequest.cc index 4fa036eae15a..e6c7655a6ef0 100644 --- a/src/librbd/image/OpenRequest.cc +++ b/src/librbd/image/OpenRequest.cc @@ -303,7 +303,7 @@ Context *OpenRequest::handle_v2_get_data_pool(int *result) { if (*result == 0) { bufferlist::iterator it = m_out_bl.begin(); *result = cls_client::get_data_pool_finish(&it, &data_pool_id); - } else if (*result == -ENOEXEC) { + } else if (*result == -EOPNOTSUPP) { *result = 0; }