diff mbox series

[v4,10/14] qapi: Formalize qcow encryption probing

Message ID 20190624173935.25747-11-mreitz@redhat.com
State New
Headers show
Series block: Try to create well-typed json:{} filenames | expand

Commit Message

Max Reitz June 24, 2019, 5:39 p.m. UTC
qcow only supports a single encryption (and there is no reason why that
would change in the future), so we can make it the default.

Signed-off-by: Max Reitz <mreitz@redhat.com>
---
 qapi/block-core.json | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/qapi/block-core.json b/qapi/block-core.json
index 9df3fc8bd7..b30a19bf8e 100644
--- a/qapi/block-core.json
+++ b/qapi/block-core.json
@@ -3059,7 +3059,9 @@ 
 # Since: 2.10
 ##
 { 'union': 'BlockdevQcowEncryption',
-  'base': { 'format': 'BlockdevQcowEncryptionFormat' },
+  'base': {
+      '*format': { 'type': 'BlockdevQcowEncryptionFormat', 'default': 'aes' }
+  },
   'discriminator': 'format',
   'data': { 'aes': 'QCryptoBlockOptionsQCow' } }