From: Ilya Dryomov Date: Tue, 24 Sep 2024 16:41:09 +0000 (+0200) Subject: librbd: add LIBRBD_SUPPORTS_GROUP_SNAP_GET_INFO define X-Git-Tag: testing/wip-rishabh-testing-20240930.143059~37^2 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=15ad2bcce8a18c91cb57afeae8a46b3dbec64b7f;p=ceph-ci.git librbd: add LIBRBD_SUPPORTS_GROUP_SNAP_GET_INFO define Make it easier to test if rbd_group_snap_get_info() and by extension also rbd_group_snap_list2() APIs are available at compile time. This wasn't done in commit e5ccce14c4b0 ("rbd: add group snap info command") because backporting wasn't intended. Signed-off-by: Ilya Dryomov --- diff --git a/src/include/rbd/librbd.h b/src/include/rbd/librbd.h index 7144e2038c1..e9ace0c4936 100644 --- a/src/include/rbd/librbd.h +++ b/src/include/rbd/librbd.h @@ -51,6 +51,7 @@ extern "C" { #define LIBRBD_SUPPORTS_WRITE_ZEROES 1 #define LIBRBD_SUPPORTS_ENCRYPTION 1 #define LIBRBD_SUPPORTS_ENCRYPTION_LOAD2 1 +#define LIBRBD_SUPPORTS_GROUP_SNAP_GET_INFO 1 #if __GNUC__ >= 4 #define CEPH_RBD_API __attribute__ ((visibility ("default")))