summaryrefslogtreecommitdiffstats
path: root/qemu-nbd.texi
diff options
context:
space:
mode:
authorEric Blake2016-10-14 20:33:03 +0200
committerPaolo Bonzini2016-11-02 09:28:55 +0100
commitb1a75b3348010820cc324943f09e090ea1fc524f (patch)
tree9d2cbc6c435e638dca9a05d0df62bd8ecd528c0f /qemu-nbd.texi
parentexec.c: check memory backend file size with 'size' option (diff)
downloadqemu-b1a75b3348010820cc324943f09e090ea1fc524f.tar.gz
qemu-b1a75b3348010820cc324943f09e090ea1fc524f.tar.xz
qemu-b1a75b3348010820cc324943f09e090ea1fc524f.zip
nbd: Add qemu-nbd -D for human-readable description
The NBD protocol allows servers to advertise a human-readable description alongside an export name during NBD_OPT_LIST. Add an option to pass through the user's string to the NBD client. Doing this also makes it easier to test commit 200650d4, which is the client counterpart of receiving the description. Signed-off-by: Eric Blake <eblake@redhat.com> Message-Id: <1476469998-28592-2-git-send-email-eblake@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'qemu-nbd.texi')
-rw-r--r--qemu-nbd.texi5
1 files changed, 4 insertions, 1 deletions
diff --git a/qemu-nbd.texi b/qemu-nbd.texi
index b7a9c6d02f..9a84e81eed 100644
--- a/qemu-nbd.texi
+++ b/qemu-nbd.texi
@@ -79,9 +79,12 @@ Disconnect the device @var{dev}
Allow up to @var{num} clients to share the device (default @samp{1})
@item -t, --persistent
Don't exit on the last connection
-@item -x NAME, --export-name=NAME
+@item -x, --export-name=@var{name}
Set the NBD volume export name. This switches the server to use
the new style NBD protocol negotiation
+@item -D, --description=@var{description}
+Set the NBD volume export description, as a human-readable
+string. Requires the use of @option{-x}
@item --tls-creds=ID
Enable mandatory TLS encryption for the server by setting the ID
of the TLS credentials object previously created with the --object