qcow2: add bitmaps extension
commit88ddffae8fc1e30cc907c2dbb989b7eba9e62319
authorVladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Wed, 28 Jun 2017 12:05:08 +0000 (28 15:05 +0300)
committerMax Reitz <mreitz@redhat.com>
Tue, 11 Jul 2017 15:44:57 +0000 (11 17:44 +0200)
tree312f7ceab9b279ca0d04c7ad31d9f8b25c74e058
parent8a5bb1f114c5959cf6b247a737394afb0c518b40
qcow2: add bitmaps extension

Add bitmap extension as specified in docs/specs/qcow2.txt.
For now, just mirror extension header into Qcow2 state and check
constraints. Also, calculate refcounts for qcow2 bitmaps, to not break
qemu-img check.

For now, disable image resize if it has bitmaps. It will be fixed later.

Signed-off-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Reviewed-by: Max Reitz <mreitz@redhat.com>
Reviewed-by: John Snow <jsnow@redhat.com>
Message-id: 20170628120530.31251-9-vsementsov@virtuozzo.com
Signed-off-by: Max Reitz <mreitz@redhat.com>
block/Makefile.objs
block/qcow2-bitmap.c [new file with mode: 0644]
block/qcow2-refcount.c
block/qcow2.c
block/qcow2.h