sheepdog: Support blockdev-add

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
This commit is contained in:
Markus Armbruster 2017-03-06 20:00:49 +01:00 committed by Kevin Wolf
parent c5f1ae3ae7
commit d282f34e82
1 changed files with 24 additions and 3 deletions

View File

@ -2124,6 +2124,7 @@
# @ssh: Since 2.8 # @ssh: Since 2.8
# @iscsi: Since 2.9 # @iscsi: Since 2.9
# @rbd: Since 2.9 # @rbd: Since 2.9
# @sheepdog: Since 2.9
# #
# Since: 2.0 # Since: 2.0
## ##
@ -2132,8 +2133,8 @@
'dmg', 'file', 'ftp', 'ftps', 'gluster', 'host_cdrom', 'dmg', 'file', 'ftp', 'ftps', 'gluster', 'host_cdrom',
'host_device', 'http', 'https', 'iscsi', 'luks', 'nbd', 'nfs', 'host_device', 'http', 'https', 'iscsi', 'luks', 'nbd', 'nfs',
'null-aio', 'null-co', 'parallels', 'qcow', 'qcow2', 'qed', 'null-aio', 'null-co', 'parallels', 'qcow', 'qcow2', 'qed',
'quorum', 'raw', 'rbd', 'replication', 'ssh', 'vdi', 'vhdx', 'vmdk', 'quorum', 'raw', 'rbd', 'replication', 'sheepdog', 'ssh',
'vpc', 'vvfat' ] } 'vdi', 'vhdx', 'vmdk', 'vpc', 'vvfat' ] }
## ##
# @BlockdevOptionsFile: # @BlockdevOptionsFile:
@ -2691,6 +2692,26 @@
'*auth-supported': ['RbdAuthMethod'], '*auth-supported': ['RbdAuthMethod'],
'*password-secret': 'str' } } '*password-secret': 'str' } }
##
# @BlockdevOptionsSheepdog:
#
# Driver specific block device options for sheepdog
#
# @vdi: Virtual disk image name
# @addr: The Sheepdog server to connect to
# @snap-id: Snapshot ID
# @tag: Snapshot tag name
#
# Only one of @snap-id and @tag may be present.
#
# Since: 2.9
##
{ 'struct': 'BlockdevOptionsSheepdog',
'data': { 'addr': 'SocketAddressFlat',
'vdi': 'str',
'*snap-id': 'uint32',
'*tag': 'str' } }
## ##
# @ReplicationMode: # @ReplicationMode:
# #
@ -2891,7 +2912,7 @@
'raw': 'BlockdevOptionsRaw', 'raw': 'BlockdevOptionsRaw',
'rbd': 'BlockdevOptionsRbd', 'rbd': 'BlockdevOptionsRbd',
'replication':'BlockdevOptionsReplication', 'replication':'BlockdevOptionsReplication',
# TODO sheepdog: Wait for structured options 'sheepdog': 'BlockdevOptionsSheepdog',
'ssh': 'BlockdevOptionsSsh', 'ssh': 'BlockdevOptionsSsh',
'vdi': 'BlockdevOptionsGenericFormat', 'vdi': 'BlockdevOptionsGenericFormat',
'vhdx': 'BlockdevOptionsGenericFormat', 'vhdx': 'BlockdevOptionsGenericFormat',