]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
man: add help for rbd merge-diff command 3292/head
authorYunchuan Wen <yunchuanwen@ubuntukylin.com>
Thu, 15 Jan 2015 02:31:41 +0000 (02:31 +0000)
committerYunchuan Wen <yunchuanwen@ubuntukylin.com>
Thu, 15 Jan 2015 02:31:41 +0000 (02:31 +0000)
Signed-off-by: Yunchuan Wen <yunchuanwen@ubuntukylin.com>
Signed-off-by: Li Wang <liwang@ubuntukylin.com>
doc/man/8/rbd.rst

index 542454715fa2c7e6ef8d6e1e6c6d692ff5f0e07e..41f18127b26dba3faee2e0b8f5686a4dd7d8ecb0 100644 (file)
@@ -190,6 +190,14 @@ Commands
   metadata about image size changes, and the start and end snapshots.  It efficiently represents
   discarded or 'zero' regions of the image.
 
+:command:`merge-diff` [*first-diff-path*] [*second-diff-path*] [*merged-diff-path*]
+  Merge two continuous incremental diffs of an image into one single diff. The
+  first diff's end snapshot must be equal with the second diff's start snapshot.
+  The first diff could be - for stdin, and merged diff could be - for stdout, which
+  enables multiple diff files to be merged using something like
+  'rbd merge-diff first second - | rbd merge-diff - third result'. Note this command
+  currently only support the source incremental diff with stripe_count == 1
+
 :command:`import-diff` [*src-path*] [*image-name*]
   Imports an incremental diff of an image and applies it to the current image.  If the diff
   was generated relative to a start snapshot, we verify that snapshot already exists before