]> xenbits.xensource.com Git - libvirt.git/commit
qemu: block: Split up formatting of JSON props for 'raw' and 'luks' drivers
authorPeter Krempa <pkrempa@redhat.com>
Thu, 19 Mar 2020 16:23:33 +0000 (17:23 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Fri, 20 Mar 2020 08:47:16 +0000 (09:47 +0100)
commit1a86e3b24a15d64bcbb15c1d5df2cc884b41854b
tree8d494b128021f45d256107f6aa966633543a3947
parent7393be3bbc780151afb71a09f043fe6cf2406c5c
qemu: block: Split up formatting of JSON props for 'raw' and 'luks' drivers

qemuBlockStorageSourceGetFormatRawProps aggregated both formats but
since we now have props specific for either of those formats it's
unwanted to aggregate the code such way. Split out the 'luks' props
formatter into qemuBlockStorageSourceGetFormatLUKSProps.

The wrong separation demonstrates istself on formatting of the 'size'
and 'offset' attributes for the 'luks' driver which does not conform
to the qapi schema.

https://bugzilla.redhat.com/show_bug.cgi?id=1814975

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
src/qemu/qemu_block.c
tests/qemuxml2argvdata/disk-slices.x86_64-latest.args