nbd: Deprecate nbd-server-add/remove

These QMP commands are replaced by block-export-add/del.

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Message-Id: <20200924152717.287415-28-kwolf@redhat.com>
Acked-by: Stefan Hajnoczi <stefanha@redhat.com>
Reviewed-by: Max Reitz <mreitz@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
This commit is contained in:
Kevin Wolf 2020-09-24 17:27:13 +02:00
parent 5b1cb49704
commit 443127e81b
2 changed files with 15 additions and 2 deletions

View File

@ -264,6 +264,12 @@ chardev client socket with ``wait`` option (since 4.0)
Character devices creating sockets in client mode should not specify Character devices creating sockets in client mode should not specify
the 'wait' field, which is only applicable to sockets in server mode the 'wait' field, which is only applicable to sockets in server mode
``nbd-server-add`` and ``nbd-server-remove`` (since 5.2)
''''''''''''''''''''''''''''''''''''''''''''''''''''''''
Use the more generic commands ``block-export-add`` and ``block-export-del``
instead.
Human Monitor Protocol (HMP) commands Human Monitor Protocol (HMP) commands
------------------------------------- -------------------------------------

View File

@ -108,13 +108,16 @@
# #
# The export name will be used as the id for the resulting block export. # The export name will be used as the id for the resulting block export.
# #
# Features:
# @deprecated: This command is deprecated. Use @block-export-add instead.
#
# Returns: error if the server is not running, or export with the same name # Returns: error if the server is not running, or export with the same name
# already exists. # already exists.
# #
# Since: 1.3.0 # Since: 1.3.0
## ##
{ 'command': 'nbd-server-add', { 'command': 'nbd-server-add',
'data': 'NbdServerAddOptions', 'boxed': true } 'data': 'NbdServerAddOptions', 'boxed': true, 'features': ['deprecated'] }
## ##
# @BlockExportRemoveMode: # @BlockExportRemoveMode:
@ -147,6 +150,9 @@
# @mode: Mode of command operation. See @BlockExportRemoveMode description. # @mode: Mode of command operation. See @BlockExportRemoveMode description.
# Default is 'safe'. # Default is 'safe'.
# #
# Features:
# @deprecated: This command is deprecated. Use @block-export-del instead.
#
# Returns: error if # Returns: error if
# - the server is not running # - the server is not running
# - export is not found # - export is not found
@ -155,7 +161,8 @@
# Since: 2.12 # Since: 2.12
## ##
{ 'command': 'nbd-server-remove', { 'command': 'nbd-server-remove',
'data': {'name': 'str', '*mode': 'BlockExportRemoveMode'} } 'data': {'name': 'str', '*mode': 'BlockExportRemoveMode'},
'features': ['deprecated'] }
## ##
# @nbd-server-stop: # @nbd-server-stop: