aboutsummaryrefslogtreecommitdiff
path: root/qemu-nbd.texi
diff options
context:
space:
mode:
authorEric Blake <eblake@redhat.com>2019-01-11 13:47:20 -0600
committerEric Blake <eblake@redhat.com>2019-01-14 10:09:46 -0600
commit636192c4b6052820ea126a5287c58a8f53f3c84f (patch)
treea84e1b6b8c3f06fd5db8e36aebcb8a0bb9e0bd86 /qemu-nbd.texi
parent678ba275c77b5b12f3bc9bb369a1b824fc9f679f (diff)
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>
Diffstat (limited to 'qemu-nbd.texi')
-rw-r--r--qemu-nbd.texi4
1 files changed, 4 insertions, 0 deletions
diff --git a/qemu-nbd.texi b/qemu-nbd.texi
index 9a84e81eed..96b1546006 100644
--- a/qemu-nbd.texi
+++ b/qemu-nbd.texi
@@ -45,6 +45,10 @@ auto-detecting
Export the disk as read-only
@item -P, --partition=@var{num}
Only expose partition @var{num}
+@item -B, --bitmap=@var{name}
+If @var{filename} has a qcow2 persistent bitmap @var{name}, expose
+that bitmap via the ``qemu:dirty-bitmap:@var{name}'' context
+accessible through NBD_OPT_SET_META_CONTEXT.
@item -s, --snapshot
Use @var{filename} as an external snapshot, create a temporary
file with backing_file=@var{filename}, redirect the write to