qemu-nbd: Add --bitmap=NAME optionpull-nbd-2019-01-14
commit636192c4b6052820ea126a5287c58a8f53f3c84f
authorEric Blake <eblake@redhat.com>
Fri, 11 Jan 2019 19:47:20 +0000 (11 13:47 -0600)
committerEric Blake <eblake@redhat.com>
Mon, 14 Jan 2019 16:09:46 +0000 (14 10:09 -0600)
treea84e1b6b8c3f06fd5db8e36aebcb8a0bb9e0bd86
parent678ba275c77b5b12f3bc9bb369a1b824fc9f679f
qemu-nbd: Add --bitmap=NAME option

Having to fire up qemu, then use QMP commands for nbd-server-start
and nbd-server-add, just to expose a persistent dirty bitmap, is
rather tedious.  Make it possible to expose a dirty bitmap using
just qemu-nbd (of course, for now this only works when qemu-nbd is
visiting a BDS formatted as qcow2).

Of course, any good feature also needs unit testing, so expand
iotest 223 to cover it.

Signed-off-by: Eric Blake <eblake@redhat.com>
Message-Id: <20190111194720.15671-9-eblake@redhat.com>
qemu-nbd.c
qemu-nbd.texi
tests/qemu-iotests/223
tests/qemu-iotests/223.out