]> git.ipfire.org Git - thirdparty/qemu.git/commit
nbd/server: implement dirty bitmap export
authorVladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Sat, 9 Jun 2018 15:17:56 +0000 (18:17 +0300)
committerEric Blake <eblake@redhat.com>
Thu, 21 Jun 2018 14:23:58 +0000 (09:23 -0500)
commit3d068aff16d6dbf066328977c5152847a62f2a0a
tree58f7593ff7bc554196313a490e5103a9a3dfaea1
parentb0769d8f8df0b51881f1f15c9e29722cf6191a43
nbd/server: implement dirty bitmap export

Handle a new NBD meta namespace: "qemu", and corresponding queries:
"qemu:dirty-bitmap:<export bitmap name>".

With the new metadata context negotiated, BLOCK_STATUS query will reply
with dirty-bitmap data, converted to extents. The new public function
nbd_export_bitmap selects which bitmap to export. For now, only one bitmap
may be exported.

Signed-off-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Message-Id: <20180609151758.17343-5-vsementsov@virtuozzo.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
[eblake: wording tweaks, minor cleanups, additional tracing]
Signed-off-by: Eric Blake <eblake@redhat.com>
include/block/nbd.h
nbd/server.c
nbd/trace-events