diff options
author | Eric Blake <eblake@redhat.com> | 2016-10-14 13:33:03 -0500 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2016-11-02 09:28:55 +0100 |
commit | b1a75b3348010820cc324943f09e090ea1fc524f (patch) | |
tree | 9d2cbc6c435e638dca9a05d0df62bd8ecd528c0f /include/block | |
parent | 1775f111eaf7f49efcec30152db44a184c1e2222 (diff) | |
download | 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 'include/block')
-rw-r--r-- | include/block/nbd.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/block/nbd.h b/include/block/nbd.h index 80610ff31b..fd58390d5d 100644 --- a/include/block/nbd.h +++ b/include/block/nbd.h @@ -115,6 +115,7 @@ BlockBackend *nbd_export_get_blockdev(NBDExport *exp); NBDExport *nbd_export_find(const char *name); void nbd_export_set_name(NBDExport *exp, const char *name); +void nbd_export_set_description(NBDExport *exp, const char *description); void nbd_export_close_all(void); void nbd_client_new(NBDExport *exp, |