From: Dongsheng Yang Date: Wed, 15 Mar 2023 06:54:39 +0000 (+0000) Subject: librbd: fix wrong attribute for rbd_quiesce_complete api X-Git-Tag: v19.0.0~1498^2 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=51a2b707a3074e000b310fc20901d5038b15ea0c;p=ceph.git librbd: fix wrong attribute for rbd_quiesce_complete api When we use rbd_quiesce_complete api, we got an error: /usr/bin/ld: undefined reference to `rbd_quiesce_complete' Then we found the problem is the symbol of rbd_quiesce_complete in librbd.so is LOCAL. After some investigation, we found the attribute of rbd_quiesce_complete api is CEPH_RADOS_API rather than expected CEPH_RBD_API. Fixes: https://tracker.ceph.com/issues/59208 Signed-off-by: Dongsheng Yang --- diff --git a/src/include/rbd/librbd.h b/src/include/rbd/librbd.h index b99421d1f2a52..7ae20e4dd583b 100644 --- a/src/include/rbd/librbd.h +++ b/src/include/rbd/librbd.h @@ -1526,8 +1526,8 @@ CEPH_RBD_API int rbd_quiesce_watch(rbd_image_t image, * @param handle which watch is complete * @param r the return code */ -CEPH_RADOS_API void rbd_quiesce_complete(rbd_image_t image, uint64_t handle, - int r); +CEPH_RBD_API void rbd_quiesce_complete(rbd_image_t image, uint64_t handle, + int r); /** * Unregister a quiesce/unquiesce watcher.