summaryrefslogtreecommitdiffstats
path: root/qapi/block-core.json
diff options
context:
space:
mode:
authorMaxim Levitsky2019-07-16 18:19:01 +0200
committerMax Reitz2019-08-19 17:13:26 +0200
commit672de729a1f93d84e7597652b1125ab5d62421d8 (patch)
treeb14e47186208d27681bdda241dea1be4df680a1c /qapi/block-core.json
parentMerge remote-tracking branch 'remotes/huth-gitlab/tags/pull-request-2019-08-1... (diff)
downloadqemu-672de729a1f93d84e7597652b1125ab5d62421d8.tar.gz
qemu-672de729a1f93d84e7597652b1125ab5d62421d8.tar.xz
qemu-672de729a1f93d84e7597652b1125ab5d62421d8.zip
LUKS: support preallocation
preallocation=off and preallocation=metadata both allocate luks header only, and preallocation=falloc/full is passed to underlying file. Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=1534951 Signed-off-by: Maxim Levitsky <mlevitsk@redhat.com> Message-id: 20190716161901.1430-1-mlevitsk@redhat.com Signed-off-by: Max Reitz <mreitz@redhat.com>
Diffstat (limited to 'qapi/block-core.json')
-rw-r--r--qapi/block-core.json6
1 files changed, 5 insertions, 1 deletions
diff --git a/qapi/block-core.json b/qapi/block-core.json
index e9364a4a29..a5ab38db99 100644
--- a/qapi/block-core.json
+++ b/qapi/block-core.json
@@ -4212,13 +4212,17 @@
#
# @file Node to create the image format on
# @size Size of the virtual disk in bytes
+# @preallocation Preallocation mode for the new image
+# (since: 4.2)
+# (default: off; allowed values: off, metadata, falloc, full)
#
# Since: 2.12
##
{ 'struct': 'BlockdevCreateOptionsLUKS',
'base': 'QCryptoBlockCreateOptionsLUKS',
'data': { 'file': 'BlockdevRef',
- 'size': 'size' } }
+ 'size': 'size',
+ '*preallocation': 'PreallocMode' } }
##
# @BlockdevCreateOptionsNfs: