From 1511b4904001589172dc771e3d3e280839c37b94 Mon Sep 17 00:00:00 2001 From: Kevin Wolf Date: Tue, 6 Mar 2018 12:13:58 +0100 Subject: parallels: Support .bdrv_co_create This adds the .bdrv_co_create driver callback to parallels, which enables image creation over QMP. Signed-off-by: Kevin Wolf Reviewed-by: Max Reitz Reviewed-by: Jeff Cody --- qapi/block-core.json | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) (limited to 'qapi') diff --git a/qapi/block-core.json b/qapi/block-core.json index e5bb84900c..352d47b803 100644 --- a/qapi/block-core.json +++ b/qapi/block-core.json @@ -3627,6 +3627,22 @@ 'data': { 'location': 'BlockdevOptionsNfs', 'size': 'size' } } +## +# @BlockdevCreateOptionsParallels: +# +# Driver specific image creation options for parallels. +# +# @file Node to create the image format on +# @size Size of the virtual disk in bytes +# @cluster-size Cluster size in bytes (default: 1 MB) +# +# Since: 2.12 +## +{ 'struct': 'BlockdevCreateOptionsParallels', + 'data': { 'file': 'BlockdevRef', + 'size': 'size', + '*cluster-size': 'size' } } + ## # @BlockdevQcow2Version: # @@ -3829,7 +3845,7 @@ 'null-aio': 'BlockdevCreateNotSupported', 'null-co': 'BlockdevCreateNotSupported', 'nvme': 'BlockdevCreateNotSupported', - 'parallels': 'BlockdevCreateNotSupported', + 'parallels': 'BlockdevCreateOptionsParallels', 'qcow2': 'BlockdevCreateOptionsQcow2', 'qcow': 'BlockdevCreateNotSupported', 'qed': 'BlockdevCreateNotSupported', -- cgit v1.2.3