From 369dcb36c70ec6c9ab974eb6b7542068ed9fcbda Mon Sep 17 00:00:00 2001 From: Jason Dillaman Date: Fri, 3 Nov 2017 12:03:49 -0400 Subject: [PATCH] librbd: added preprocessor macro for detecting compare-and-write support Fixes: http://tracker.ceph.com/issues/22036 Signed-off-by: Jason Dillaman (cherry picked from commit 95d716cc7098cb04063649584e0774f49a580e1d) --- src/include/rbd/librbd.h | 1 + 1 file changed, 1 insertion(+) diff --git a/src/include/rbd/librbd.h b/src/include/rbd/librbd.h index f266c76fcab2..bfce2353f7c2 100644 --- a/src/include/rbd/librbd.h +++ b/src/include/rbd/librbd.h @@ -41,6 +41,7 @@ extern "C" { #define LIBRBD_SUPPORTS_AIO_FLUSH 1 #define LIBRBD_SUPPORTS_AIO_OPEN 1 +#define LIBRBD_SUPPORTS_COMPARE_AND_WRITE 1 #define LIBRBD_SUPPORTS_LOCKING 1 #define LIBRBD_SUPPORTS_INVALIDATE 1 #define LIBRBD_SUPPORTS_IOVEC 1 -- 2.47.3