diff options
| author | Kevin Wolf | 2020-09-24 17:26:54 +0200 |
|---|---|---|
| committer | Kevin Wolf | 2020-10-02 15:46:40 +0200 |
| commit | 1c8222b014484145d66740d0597ae86b4a989b73 (patch) | |
| tree | a91df444a4a456de4c3c423b5ed0ce4d42f42ce1 /include/block | |
| parent | block/export: Remove magic from block-export-add (diff) | |
| download | qemu-1c8222b014484145d66740d0597ae86b4a989b73.tar.gz qemu-1c8222b014484145d66740d0597ae86b4a989b73.tar.xz qemu-1c8222b014484145d66740d0597ae86b4a989b73.zip | |
nbd: Add max-connections to nbd-server-start
This is a QMP equivalent of qemu-nbd's --shared option, limiting the
maximum number of clients that can attach at the same time.
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Max Reitz <mreitz@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Message-Id: <20200924152717.287415-9-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 | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/block/nbd.h b/include/block/nbd.h index f55f5b710b..acccdb3180 100644 --- a/include/block/nbd.h +++ b/include/block/nbd.h @@ -354,7 +354,8 @@ void nbd_client_get(NBDClient *client); void nbd_client_put(NBDClient *client); void nbd_server_start(SocketAddress *addr, const char *tls_creds, - const char *tls_authz, Error **errp); + const char *tls_authz, uint32_t max_connections, + Error **errp); void nbd_server_start_options(NbdServerOptions *arg, Error **errp); /* nbd_read |
