aboutsummaryrefslogtreecommitdiff
path: root/qapi
diff options
context:
space:
mode:
authorKevin Wolf <kwolf@redhat.com>2018-03-02 14:31:04 +0100
committerKevin Wolf <kwolf@redhat.com>2018-03-19 12:01:24 +0100
commit1bedcaf120c128e9f565185171d378f8846d1567 (patch)
tree681bb25ab3a72444f2bcb4b58e053a9b74f5a0dc /qapi
parent1ec4f4160a1a94cf3d13b43551fff2792bd5056e (diff)
downloadqemu-1bedcaf120c128e9f565185171d378f8846d1567.zip
qemu-1bedcaf120c128e9f565185171d378f8846d1567.tar.gz
qemu-1bedcaf120c128e9f565185171d378f8846d1567.tar.bz2
luks: Support .bdrv_co_create
This adds the .bdrv_co_create driver callback to luks, which enables image creation over QMP. Signed-off-by: Kevin Wolf <kwolf@redhat.com> Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Diffstat (limited to 'qapi')
-rw-r--r--qapi/block-core.json17
1 files changed, 16 insertions, 1 deletions
diff --git a/qapi/block-core.json b/qapi/block-core.json
index a7a7631..48f86ce 100644
--- a/qapi/block-core.json
+++ b/qapi/block-core.json
@@ -3599,6 +3599,21 @@
'*preallocation': 'PreallocMode' } }
##
+# @BlockdevCreateOptionsLUKS:
+#
+# Driver specific image creation options for LUKS.
+#
+# @file Node to create the image format on
+# @size Size of the virtual disk in bytes
+#
+# Since: 2.12
+##
+{ 'struct': 'BlockdevCreateOptionsLUKS',
+ 'base': 'QCryptoBlockCreateOptionsLUKS',
+ 'data': { 'file': 'BlockdevRef',
+ 'size': 'size' } }
+
+##
# @BlockdevCreateOptionsNfs:
#
# Driver specific image creation options for NFS.
@@ -3790,7 +3805,7 @@
'http': 'BlockdevCreateNotSupported',
'https': 'BlockdevCreateNotSupported',
'iscsi': 'BlockdevCreateNotSupported',
- 'luks': 'BlockdevCreateNotSupported',
+ 'luks': 'BlockdevCreateOptionsLUKS',
'nbd': 'BlockdevCreateNotSupported',
'nfs': 'BlockdevCreateOptionsNfs',
'null-aio': 'BlockdevCreateNotSupported',