|
@@ -9,17 +9,11 @@
|
|
|
{ 'include': 'block-core.json' }
|
|
|
|
|
|
##
|
|
|
-# @NbdServerOptions:
|
|
|
-#
|
|
|
-# Keep this type consistent with the nbd-server-start arguments. The
|
|
|
-# only intended difference is using SocketAddress instead of
|
|
|
-# SocketAddressLegacy.
|
|
|
-#
|
|
|
-# @addr: Address on which to listen.
|
|
|
+# @NbdServerOptionsBase:
|
|
|
#
|
|
|
# @handshake-max-seconds: Time limit, in seconds, at which a client
|
|
|
# that has not completed the negotiation handshake will be
|
|
|
-# disconnected, 0 for no limit (since 10.0; default: 10).
|
|
|
+# disconnected, or 0 for no limit (since 10.0; default: 10).
|
|
|
#
|
|
|
# @tls-creds: ID of the TLS credentials object (since 2.6).
|
|
|
#
|
|
@@ -32,47 +26,47 @@
|
|
|
# @max-connections: The maximum number of connections to allow at the
|
|
|
# same time, 0 for unlimited. Setting this to 1 also stops the
|
|
|
# server from advertising multiple client support (since 5.2;
|
|
|
-# default: 100)
|
|
|
-#
|
|
|
-# Since: 4.2
|
|
|
+# default: 100).
|
|
|
##
|
|
|
-{ 'struct': 'NbdServerOptions',
|
|
|
- 'data': { 'addr': 'SocketAddress',
|
|
|
- '*handshake-max-seconds': 'uint32',
|
|
|
+{ 'struct': 'NbdServerOptionsBase',
|
|
|
+ 'data': { '*handshake-max-seconds': 'uint32',
|
|
|
'*tls-creds': 'str',
|
|
|
'*tls-authz': 'str',
|
|
|
'*max-connections': 'uint32' } }
|
|
|
|
|
|
##
|
|
|
-# @nbd-server-start:
|
|
|
+# @NbdServerOptions:
|
|
|
#
|
|
|
-# Start an NBD server listening on the given host and port. Block
|
|
|
-# devices can then be exported using @nbd-server-add. The NBD server
|
|
|
-# will present them as named exports; for example, another QEMU
|
|
|
-# instance could refer to them as "nbd:HOST:PORT:exportname=NAME".
|
|
|
+# Keep this type consistent with the NbdServerOptionsLegacy type. The
|
|
|
+# only intended difference is using SocketAddress instead of
|
|
|
+# SocketAddressLegacy.
|
|
|
+#
|
|
|
+# @addr: Address on which to listen (since 4.2).
|
|
|
+##
|
|
|
+{ 'struct': 'NbdServerOptions',
|
|
|
+ 'base': 'NbdServerOptionsBase',
|
|
|
+ 'data': { 'addr': 'SocketAddress' } }
|
|
|
+
|
|
|
+##
|
|
|
+# @NbdServerOptionsLegacy:
|
|
|
#
|
|
|
# Keep this type consistent with the NbdServerOptions type. The only
|
|
|
# intended difference is using SocketAddressLegacy instead of
|
|
|
# SocketAddress.
|
|
|
#
|
|
|
-# @addr: Address on which to listen.
|
|
|
-#
|
|
|
-# @handshake-max-seconds: Time limit, in seconds, at which a client
|
|
|
-# that has not completed the negotiation handshake will be
|
|
|
-# disconnected, or 0 for no limit (since 10.0; default: 10).
|
|
|
-#
|
|
|
-# @tls-creds: ID of the TLS credentials object (since 2.6).
|
|
|
-#
|
|
|
-# @tls-authz: ID of the QAuthZ authorization object used to validate
|
|
|
-# the client's x509 distinguished name. This object is is only
|
|
|
-# resolved at time of use, so can be deleted and recreated on the
|
|
|
-# fly while the NBD server is active. If missing, it will default
|
|
|
-# to denying access (since 4.0).
|
|
|
+# @addr: Address on which to listen (since 1.3).
|
|
|
+##
|
|
|
+{ 'struct': 'NbdServerOptionsLegacy',
|
|
|
+ 'base': 'NbdServerOptionsBase',
|
|
|
+ 'data': { 'addr': 'SocketAddressLegacy' } }
|
|
|
+
|
|
|
+##
|
|
|
+# @nbd-server-start:
|
|
|
#
|
|
|
-# @max-connections: The maximum number of connections to allow at the
|
|
|
-# same time, 0 for unlimited. Setting this to 1 also stops the
|
|
|
-# server from advertising multiple client support (since 5.2;
|
|
|
-# default: 100).
|
|
|
+# Start an NBD server listening on the given host and port. Block
|
|
|
+# devices can then be exported using @nbd-server-add. The NBD server
|
|
|
+# will present them as named exports; for example, another QEMU
|
|
|
+# instance could refer to them as "nbd:HOST:PORT:exportname=NAME".
|
|
|
#
|
|
|
# Errors:
|
|
|
# - if the server is already running
|
|
@@ -80,11 +74,7 @@
|
|
|
# Since: 1.3
|
|
|
##
|
|
|
{ 'command': 'nbd-server-start',
|
|
|
- 'data': { 'addr': 'SocketAddressLegacy',
|
|
|
- '*handshake-max-seconds': 'uint32',
|
|
|
- '*tls-creds': 'str',
|
|
|
- '*tls-authz': 'str',
|
|
|
- '*max-connections': 'uint32' },
|
|
|
+ 'data': 'NbdServerOptionsLegacy',
|
|
|
'allow-preconfig': true }
|
|
|
|
|
|
##
|