]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
rbd: add support for new fast diff feature
authorJason Dillaman <dillaman@redhat.com>
Tue, 24 Mar 2015 19:21:16 +0000 (15:21 -0400)
committerJason Dillaman <dillaman@redhat.com>
Mon, 13 Apr 2015 19:24:14 +0000 (15:24 -0400)
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
doc/man/8/rbd.rst
src/rbd.cc
src/test/cli/rbd/help.t

index ccef6bdcdaf743271b13f6ee3abf479f6f1b7112..f8987eb4ffbf642115da4a9ed78a02514cd2a144 100644 (file)
@@ -135,6 +135,7 @@ Parameters
    striping: striping v2 support
    exclusive-lock: exclusive locking support
    object-map: object map support (requires exclusive-lock)
+   fast-diff: fast diff calculations (requires object-map)
 
 .. option:: --image-shared
 
index 2713a76971fac84648ad037b8b2ea324386ef81e..d4f1eb0d287b2e9c34ee210f4d3fbc6ad8949fd2 100644 (file)
@@ -81,7 +81,8 @@ static std::map<uint64_t, std::string> feature_mapping =
     RBD_FEATURE_LAYERING, "layering")(
     RBD_FEATURE_STRIPINGV2, "striping")(
     RBD_FEATURE_EXCLUSIVE_LOCK, "exclusive-lock")(
-    RBD_FEATURE_OBJECT_MAP, "object-map");
+    RBD_FEATURE_OBJECT_MAP, "object-map")(
+    RBD_FEATURE_FAST_DIFF, "fast-diff");
 
 void usage()
 {
index 37506d30ef4e8eba5927b1a0454bbba5cfa998db..bd0d34a6f5fba59d706d0c6de50ff6f6bc568c49 100644 (file)
     --allow-shrink                     allow shrinking of an image when resizing
   
   Supported image features:
-    layering (+), striping (+), exclusive-lock (*), object-map (*)
+    layering (+), striping (+), exclusive-lock (*), object-map (*), fast-diff (*)
   
     (*) supports enabling/disabling on existing images
     (+) enabled by default for new images if features are not specified