]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
librbd: add new FAST_DIFF feature
authorJason Dillaman <dillaman@redhat.com>
Tue, 24 Mar 2015 19:13:03 +0000 (15:13 -0400)
committerJason Dillaman <dillaman@redhat.com>
Mon, 13 Apr 2015 19:24:14 +0000 (15:24 -0400)
A new feature is required to track images that are properly tracking
object deltas between snapshots.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
src/include/rbd/features.h

index 39abb396224cb59f2e17e856dbfc74b001b99074..17b68d4e7f1a0bb88cae22c0e034bdd7e3037163 100644 (file)
@@ -5,20 +5,24 @@
 #define RBD_FEATURE_STRIPINGV2         (1<<1)
 #define RBD_FEATURE_EXCLUSIVE_LOCK     (1<<2)
 #define RBD_FEATURE_OBJECT_MAP         (1<<3)
+#define RBD_FEATURE_FAST_DIFF           (1<<4)
 
 #define RBD_FEATURES_INCOMPATIBLE      (RBD_FEATURE_LAYERING |       \
                                         RBD_FEATURE_STRIPINGV2)
 
 #define RBD_FEATURES_RW_INCOMPATIBLE   (RBD_FEATURES_INCOMPATIBLE |  \
                                         RBD_FEATURE_EXCLUSIVE_LOCK | \
-                                        RBD_FEATURE_OBJECT_MAP)
+                                        RBD_FEATURE_OBJECT_MAP | \
+                                         RBD_FEATURE_FAST_DIFF)
 
 #define RBD_FEATURES_ALL               (RBD_FEATURE_LAYERING |       \
                                         RBD_FEATURE_STRIPINGV2 |     \
                                         RBD_FEATURE_EXCLUSIVE_LOCK | \
-                                         RBD_FEATURE_OBJECT_MAP)
+                                         RBD_FEATURE_OBJECT_MAP |     \
+                                         RBD_FEATURE_FAST_DIFF)
 
 #define RBD_FEATURES_MUTABLE            (RBD_FEATURE_EXCLUSIVE_LOCK | \
-                                         RBD_FEATURE_OBJECT_MAP)
+                                         RBD_FEATURE_OBJECT_MAP | \
+                                         RBD_FEATURE_FAST_DIFF)
 
 #endif