mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-21 00:53:27 -06:00
block/qapi: Introduce BlockdevCreateOptions
This creates a BlockdevCreateOptions union type that will contain all of the options for image creation. We'll start out with an empty struct type BlockdevCreateNotSupported for all drivers. Signed-off-by: Kevin Wolf <kwolf@redhat.com> Reviewed-by: Eric Blake <eblake@redhat.com> Reviewed-by: Max Reitz <mreitz@redhat.com>
This commit is contained in:
parent
0c2ada8136
commit
5361468974
1 changed files with 62 additions and 0 deletions
|
@ -3358,6 +3358,68 @@
|
||||||
##
|
##
|
||||||
{ 'command': 'blockdev-del', 'data': { 'node-name': 'str' } }
|
{ 'command': 'blockdev-del', 'data': { 'node-name': 'str' } }
|
||||||
|
|
||||||
|
##
|
||||||
|
# @BlockdevCreateNotSupported:
|
||||||
|
#
|
||||||
|
# This is used for all drivers that don't support creating images.
|
||||||
|
#
|
||||||
|
# Since: 2.12
|
||||||
|
##
|
||||||
|
{ 'struct': 'BlockdevCreateNotSupported', 'data': {}}
|
||||||
|
|
||||||
|
##
|
||||||
|
# @BlockdevCreateOptions:
|
||||||
|
#
|
||||||
|
# Options for creating an image format on a given node.
|
||||||
|
#
|
||||||
|
# @driver block driver to create the image format
|
||||||
|
#
|
||||||
|
# Since: 2.12
|
||||||
|
##
|
||||||
|
{ 'union': 'BlockdevCreateOptions',
|
||||||
|
'base': {
|
||||||
|
'driver': 'BlockdevDriver' },
|
||||||
|
'discriminator': 'driver',
|
||||||
|
'data': {
|
||||||
|
'blkdebug': 'BlockdevCreateNotSupported',
|
||||||
|
'blkverify': 'BlockdevCreateNotSupported',
|
||||||
|
'bochs': 'BlockdevCreateNotSupported',
|
||||||
|
'cloop': 'BlockdevCreateNotSupported',
|
||||||
|
'dmg': 'BlockdevCreateNotSupported',
|
||||||
|
'file': 'BlockdevCreateNotSupported',
|
||||||
|
'ftp': 'BlockdevCreateNotSupported',
|
||||||
|
'ftps': 'BlockdevCreateNotSupported',
|
||||||
|
'gluster': 'BlockdevCreateNotSupported',
|
||||||
|
'host_cdrom': 'BlockdevCreateNotSupported',
|
||||||
|
'host_device': 'BlockdevCreateNotSupported',
|
||||||
|
'http': 'BlockdevCreateNotSupported',
|
||||||
|
'https': 'BlockdevCreateNotSupported',
|
||||||
|
'iscsi': 'BlockdevCreateNotSupported',
|
||||||
|
'luks': 'BlockdevCreateNotSupported',
|
||||||
|
'nbd': 'BlockdevCreateNotSupported',
|
||||||
|
'nfs': 'BlockdevCreateNotSupported',
|
||||||
|
'null-aio': 'BlockdevCreateNotSupported',
|
||||||
|
'null-co': 'BlockdevCreateNotSupported',
|
||||||
|
'nvme': 'BlockdevCreateNotSupported',
|
||||||
|
'parallels': 'BlockdevCreateNotSupported',
|
||||||
|
'qcow2': 'BlockdevCreateNotSupported',
|
||||||
|
'qcow': 'BlockdevCreateNotSupported',
|
||||||
|
'qed': 'BlockdevCreateNotSupported',
|
||||||
|
'quorum': 'BlockdevCreateNotSupported',
|
||||||
|
'raw': 'BlockdevCreateNotSupported',
|
||||||
|
'rbd': 'BlockdevCreateNotSupported',
|
||||||
|
'replication': 'BlockdevCreateNotSupported',
|
||||||
|
'sheepdog': 'BlockdevCreateNotSupported',
|
||||||
|
'ssh': 'BlockdevCreateNotSupported',
|
||||||
|
'throttle': 'BlockdevCreateNotSupported',
|
||||||
|
'vdi': 'BlockdevCreateNotSupported',
|
||||||
|
'vhdx': 'BlockdevCreateNotSupported',
|
||||||
|
'vmdk': 'BlockdevCreateNotSupported',
|
||||||
|
'vpc': 'BlockdevCreateNotSupported',
|
||||||
|
'vvfat': 'BlockdevCreateNotSupported',
|
||||||
|
'vxhs': 'BlockdevCreateNotSupported'
|
||||||
|
} }
|
||||||
|
|
||||||
##
|
##
|
||||||
# @blockdev-open-tray:
|
# @blockdev-open-tray:
|
||||||
#
|
#
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue