diff options
author | Kevin Wolf | 2020-02-24 15:29:57 +0100 |
---|---|---|
committer | Kevin Wolf | 2020-03-06 17:21:28 +0100 |
commit | eed8b691783264013142ed0273e08f5a7f913569 (patch) | |
tree | 0aa5c78e05a357345cc7719dd8e03df6b0cfbf8f /include/block | |
parent | qemu-storage-daemon: Add --object option (diff) | |
download | qemu-eed8b691783264013142ed0273e08f5a7f913569.tar.gz qemu-eed8b691783264013142ed0273e08f5a7f913569.tar.xz qemu-eed8b691783264013142ed0273e08f5a7f913569.zip |
qemu-storage-daemon: Add --nbd-server option
Add a --nbd-server option to qemu-storage-daemon to start the built-in
NBD server right away. It maps the arguments for nbd-server-start to the
command line, with the exception that it uses SocketAddress instead of
SocketAddressLegacy: New interfaces shouldn't use legacy types, and the
additional nesting would be nasty on the command line.
Example (only with required options):
--nbd-server addr.type=inet,addr.host=localhost,addr.port=10809
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Message-Id: <20200224143008.13362-10-kwolf@redhat.com>
Acked-by: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@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 7f46932d80..20363280ae 100644 --- a/include/block/nbd.h +++ b/include/block/nbd.h @@ -353,6 +353,7 @@ void nbd_client_put(NBDClient *client); void nbd_server_start(SocketAddress *addr, const char *tls_creds, const char *tls_authz, Error **errp); +void nbd_server_start_options(NbdServerOptions *arg, Error **errp); /* nbd_read * Reads @size bytes from @ioc. Returns 0 on success. |