From b1a75b3348010820cc324943f09e090ea1fc524f Mon Sep 17 00:00:00 2001 From: Eric Blake Date: Fri, 14 Oct 2016 13:33:03 -0500 Subject: 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 Message-Id: <1476469998-28592-2-git-send-email-eblake@redhat.com> Signed-off-by: Paolo Bonzini --- include/block/nbd.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include/block') 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, -- cgit v1.2.3-55-g7522