]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
librbd: added preprocessor macro for detecting compare-and-write support 18834/head
authorJason Dillaman <dillaman@redhat.com>
Fri, 3 Nov 2017 16:03:49 +0000 (12:03 -0400)
committerShinobu Kinjo <shinobu@redhat.com>
Thu, 9 Nov 2017 05:28:21 +0000 (00:28 -0500)
Fixes: http://tracker.ceph.com/issues/22036
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
(cherry picked from commit 95d716cc7098cb04063649584e0774f49a580e1d)

src/include/rbd/librbd.h

index f266c76fcab2d9095c8d20853d567b3cf5b89a71..bfce2353f7c214047b99bde75aab17b80c83ca1a 100644 (file)
@@ -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