mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-30 21:42:06 -06:00
qapi: Allow blockdev-add for NBD
Signed-off-by: Max Reitz <mreitz@redhat.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
This commit is contained in:
parent
f84d431b86
commit
6b02b1f0a4
1 changed files with 23 additions and 4 deletions
|
@ -1703,15 +1703,16 @@
|
||||||
#
|
#
|
||||||
# @host_device, @host_cdrom: Since 2.1
|
# @host_device, @host_cdrom: Since 2.1
|
||||||
# @gluster: Since 2.7
|
# @gluster: Since 2.7
|
||||||
|
# @nbd: Since 2.8
|
||||||
#
|
#
|
||||||
# Since: 2.0
|
# Since: 2.0
|
||||||
##
|
##
|
||||||
{ 'enum': 'BlockdevDriver',
|
{ 'enum': 'BlockdevDriver',
|
||||||
'data': [ 'archipelago', 'blkdebug', 'blkverify', 'bochs', 'cloop',
|
'data': [ 'archipelago', 'blkdebug', 'blkverify', 'bochs', 'cloop',
|
||||||
'dmg', 'file', 'ftp', 'ftps', 'gluster', 'host_cdrom',
|
'dmg', 'file', 'ftp', 'ftps', 'gluster', 'host_cdrom',
|
||||||
'host_device', 'http', 'https', 'luks', 'null-aio', 'null-co',
|
'host_device', 'http', 'https', 'luks', 'nbd', 'null-aio',
|
||||||
'parallels', 'qcow', 'qcow2', 'qed', 'quorum', 'raw',
|
'null-co', 'parallels', 'qcow', 'qcow2', 'qed', 'quorum', 'raw',
|
||||||
'replication', 'tftp', 'vdi', 'vhdx', 'vmdk', 'vpc', 'vvfat' ] }
|
'replication', 'tftp', 'vdi', 'vhdx', 'vmdk', 'vpc', 'vvfat' ] }
|
||||||
|
|
||||||
##
|
##
|
||||||
# @BlockdevOptionsFile
|
# @BlockdevOptionsFile
|
||||||
|
@ -2219,6 +2220,24 @@
|
||||||
{ 'struct': 'BlockdevOptionsCurl',
|
{ 'struct': 'BlockdevOptionsCurl',
|
||||||
'data': { 'filename': 'str' } }
|
'data': { 'filename': 'str' } }
|
||||||
|
|
||||||
|
##
|
||||||
|
# @BlockdevOptionsNbd
|
||||||
|
#
|
||||||
|
# Driver specific block device options for NBD.
|
||||||
|
#
|
||||||
|
# @server: NBD server address
|
||||||
|
#
|
||||||
|
# @export: #optional export name
|
||||||
|
#
|
||||||
|
# @tls-creds: #optional TLS credentials ID
|
||||||
|
#
|
||||||
|
# Since: 2.8
|
||||||
|
##
|
||||||
|
{ 'struct': 'BlockdevOptionsNbd',
|
||||||
|
'data': { 'server': 'SocketAddress',
|
||||||
|
'*export': 'str',
|
||||||
|
'*tls-creds': 'str' } }
|
||||||
|
|
||||||
##
|
##
|
||||||
# @BlockdevOptions
|
# @BlockdevOptions
|
||||||
#
|
#
|
||||||
|
@ -2264,7 +2283,7 @@
|
||||||
'https': 'BlockdevOptionsCurl',
|
'https': 'BlockdevOptionsCurl',
|
||||||
# TODO iscsi: Wait for structured options
|
# TODO iscsi: Wait for structured options
|
||||||
'luks': 'BlockdevOptionsLUKS',
|
'luks': 'BlockdevOptionsLUKS',
|
||||||
# TODO nbd: Should take InetSocketAddress for 'host'?
|
'nbd': 'BlockdevOptionsNbd',
|
||||||
# TODO nfs: Wait for structured options
|
# TODO nfs: Wait for structured options
|
||||||
'null-aio': 'BlockdevOptionsNull',
|
'null-aio': 'BlockdevOptionsNull',
|
||||||
'null-co': 'BlockdevOptionsNull',
|
'null-co': 'BlockdevOptionsNull',
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue