From: Jason Dillaman Date: Fri, 3 Nov 2017 16:03:49 +0000 (-0400) Subject: librbd: added preprocessor macro for detecting compare-and-write support X-Git-Tag: v12.2.3~165^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=369dcb36c70ec6c9ab974eb6b7542068ed9fcbda;p=ceph.git 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) --- 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