qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH v4 2/7] qapi: Make parameter 'file' optional for BlockdevCrea


From: Markus Armbruster
Subject: Re: [PATCH v4 2/7] qapi: Make parameter 'file' optional for BlockdevCreateOptionsLUKS
Date: Mon, 19 Feb 2024 15:22:14 +0100
User-agent: Gnus/5.13 (Gnus v5.13)

yong.huang@smartx.com writes:

> From: Hyman Huang <yong.huang@smartx.com>
>
> To support detached LUKS header creation, make the existing 'file'
> field in BlockdevCreateOptionsLUKS optional.
>
> Signed-off-by: Hyman Huang <yong.huang@smartx.com>
> Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>

[...]

> diff --git a/qapi/block-core.json b/qapi/block-core.json
> index ae604c6019..69a88d613d 100644
> --- a/qapi/block-core.json
> +++ b/qapi/block-core.json
> @@ -4957,7 +4957,8 @@
>  #
>  # Driver specific image creation options for LUKS.
>  #
> -# @file: Node to create the image format on
> +# @file: Node to create the image format on, mandatory except when
> +#        'preallocation' is not requested

You mean when @preallocation is "off"?

Cases:

1. @file is mandatory

2. @file is optional and present

3. @file is optional and absent

Ignorant question: behavior in each case?

>  #
>  # @size: Size of the virtual disk in bytes
>  #
> @@ -4968,7 +4969,7 @@
>  ##
>  { 'struct': 'BlockdevCreateOptionsLUKS',
>    'base': 'QCryptoBlockCreateOptionsLUKS',
> -  'data': { 'file':             'BlockdevRef',
> +  'data': { '*file':            'BlockdevRef',
>              'size':             'size',
>              '*preallocation':   'PreallocMode' } }




reply via email to

[Prev in Thread] Current Thread [Next in Thread]