]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
librbd: add a constant for single-client-only features
authorJosh Durgin <jdurgin@redhat.com>
Thu, 4 Jun 2015 20:05:13 +0000 (13:05 -0700)
committerJosh Durgin <jdurgin@redhat.com>
Thu, 4 Jun 2015 20:06:06 +0000 (13:06 -0700)
This way it's easy to disable them if you want to access an image from
multiple clients.

Signed-off-by: Josh Durgin <jdurgin@redhat.com>
src/include/rbd/features.h

index 34d688d7b46aec9377291503fbacd1a7f1baf0bd..b597bc089136bc158e24176b3698cbb9e67a03ea 100644 (file)
@@ -28,4 +28,8 @@
                                          RBD_FEATURE_OBJECT_MAP     | \
                                          RBD_FEATURE_FAST_DIFF)
 
+#define RBD_FEATURES_SINGLE_CLIENT (RBD_FEATURE_EXCLUSIVE_LOCK | \
+                                    RBD_FEATURE_OBJECT_MAP     | \
+                                    RBD_FEATURE_FAST_DIFF)
+
 #endif