]> xenbits.xensource.com Git - libvirt.git/commitdiff
kbase: incrementalbackupinternals: Add section on 'qemu-img bitmap' use
authorPeter Krempa <pkrempa@redhat.com>
Wed, 24 Jun 2020 09:34:16 +0000 (11:34 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Thu, 25 Jun 2020 10:21:13 +0000 (12:21 +0200)
Define what users should look for when wanting to manipulate bitmaps
themselves.

Later on a patch will turn the bash algorithms into pseudocode for
simplicity.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
docs/kbase/incrementalbackupinternals.rst

index 0d6c77dfa1651741122bc9958f7fe5cd972a575c..6f087bdb87fc945247ce33a5b059c9c7b83caec0 100644 (file)
@@ -190,6 +190,20 @@ It's recommended to use ``--output=json`` parameter to work with a machine
 readable output rather than trying to process the human readable output by
 scripts. For processing JSON in shell the ``jq`` tool can be used.
 
+The ``qemu-img bitmap`` command allows modification of block-dirty-bitmaps of an
+offline image. It supports the following operations relevant to this document
+(see man page for full list of operations):
+
+``--add NAME``
+    Creates a new bitmap named ``NAME``. Optionally ``-g`` can be used to
+    specify granularity.
+
+``--remove NAME``
+    Deletes bitmap ``NAME``.
+
+``--merge SRCBITMAP -b SRCFILE -F SRCFILEFMT DSTBITMAP``
+    Merges bitmap ``SRCBITMAP`` from ``SRCFILE`` into ``DSTBITMAP``.
+
 Checking bitmap health
 ----------------------