mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-05 00:33:55 -06:00
block/qcow2: implement blockdev-amend
Currently the implementation only supports amending the encryption options, unlike the qemu-img version Signed-off-by: Maxim Levitsky <mlevitsk@redhat.com> Reviewed-by: Daniel P. Berrangé <berrange@redhat.com> Reviewed-by: Max Reitz <mreitz@redhat.com> Message-Id: <20200608094030.670121-14-mlevitsk@redhat.com> Signed-off-by: Max Reitz <mreitz@redhat.com>
This commit is contained in:
parent
30da9dd88a
commit
8ea1613d91
2 changed files with 54 additions and 1 deletions
|
@ -4686,6 +4686,19 @@
|
|||
'data': { }
|
||||
}
|
||||
|
||||
##
|
||||
# @BlockdevAmendOptionsQcow2:
|
||||
#
|
||||
# Driver specific image amend options for qcow2.
|
||||
# For now, only encryption options can be amended
|
||||
#
|
||||
# @encrypt Encryption options to be amended
|
||||
#
|
||||
# Since: 5.1
|
||||
##
|
||||
{ 'struct': 'BlockdevAmendOptionsQcow2',
|
||||
'data': { '*encrypt': 'QCryptoBlockAmendOptions' } }
|
||||
|
||||
##
|
||||
# @BlockdevAmendOptions:
|
||||
#
|
||||
|
@ -4700,7 +4713,8 @@
|
|||
'driver': 'BlockdevDriver' },
|
||||
'discriminator': 'driver',
|
||||
'data': {
|
||||
'luks': 'BlockdevAmendOptionsLUKS' } }
|
||||
'luks': 'BlockdevAmendOptionsLUKS',
|
||||
'qcow2': 'BlockdevAmendOptionsQcow2' } }
|
||||
|
||||
##
|
||||
# @x-blockdev-amend:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue