qemu-nbd: Add --bitmap=NAME optionnbd-bitmap-add-v3
commit1805aae0203773809d420788dc6e4b42d309cc93
authorEric Blake <eblake@redhat.com>
Fri, 11 Jan 2019 18:59:11 +0000 (11 12:59 -0600)
committerEric Blake <eblake@redhat.com>
Fri, 11 Jan 2019 19:37:40 +0000 (11 13:37 -0600)
treec80abe5fa40e8b117d780cfc49551e9e67566348
parent3a7b27e8dbae6168fc8d7a6c275c82b23403e36b
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>
---
v3: rebase to earlier changes
qemu-nbd.c
qemu-nbd.texi
tests/qemu-iotests/223
tests/qemu-iotests/223.out