From: Jason Dillaman Date: Wed, 23 Dec 2015 14:41:32 +0000 (-0500) Subject: librbd: clear error when older OSD doesn't support image flags X-Git-Tag: v10.0.2~19^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F7035%2Fhead;p=ceph.git librbd: clear error when older OSD doesn't support image flags Fixes: #14122 Signed-off-by: Jason Dillaman --- diff --git a/src/librbd/image/RefreshRequest.cc b/src/librbd/image/RefreshRequest.cc index c5edf3405938..c06dc1458eae 100644 --- a/src/librbd/image/RefreshRequest.cc +++ b/src/librbd/image/RefreshRequest.cc @@ -275,6 +275,7 @@ Context *RefreshRequest::handle_v2_get_flags(int *result) { } if (*result == -EOPNOTSUPP) { // Older OSD doesn't support RBD flags, need to assume the worst + *result = 0; ldout(cct, 10) << "OSD does not support RBD flags, disabling object map " << "optimizations" << dendl; m_flags = RBD_FLAG_OBJECT_MAP_INVALID;