qemu-nbd: Add --bitmap=NAME optionnbd-bitmap-add-v1
commit8a6cf8627aa8b805f55bf0c5197f7a3f2bfdf0f1
authorEric Blake <eblake@redhat.com>
Wed, 9 Jan 2019 03:57:31 +0000 (8 21:57 -0600)
committerEric Blake <eblake@redhat.com>
Wed, 9 Jan 2019 04:07:13 +0000 (8 22:07 -0600)
tree844a43020266c6b64acfebda1041787336ebb6e1
parent2c4ea687f76e71ba663e5abc77ad4bbd60f3a9aa
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).

For now, I play it safe and only allow a bitmap to be exposed on
a read-only image.  We may relax it in the future.

Signed-off-by: Eric Blake <eblake@redhat.com>
qemu-nbd.c
qemu-nbd.texi