]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
librbd: added preprocessor macro for detecting compare-and-write support
authorJason Dillaman <dillaman@redhat.com>
Fri, 3 Nov 2017 16:03:49 +0000 (12:03 -0400)
committerJason Dillaman <dillaman@redhat.com>
Fri, 3 Nov 2017 16:03:49 +0000 (12:03 -0400)
Fixes: http://tracker.ceph.com/issues/22036
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
src/include/rbd/librbd.h

index af782e6e457f7348e2180e424f2e8944204cc686..a7f09b10afad2432331e1eae0cafb9960621345c 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