From 5577ada030578116abfe311a8fcd5212161c997f Mon Sep 17 00:00:00 2001 From: Mykola Golub Date: Thu, 3 Nov 2016 10:34:35 +0200 Subject: [PATCH] librbd: proper check for get_data_pool compatibility Fixes: http://tracker.ceph.com/issues/17791 Signed-off-by: Mykola Golub --- src/librbd/image/OpenRequest.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.47.3