mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 13:45:38 +00:00
7ba2208add
QEMU requires an extra wrapper object where only the "file" member is populated. This is basically a placeholder for establishing the format layer. We did the same in qemuDiskSourceGetProps for the old-school JSON usage with -drive but forgot to adopt this for -blockdev. https://bugzilla.redhat.com/show_bug.cgi?id=1804617 Signed-off-by: Peter Krempa <pkrempa@redhat.com> Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
16 lines
398 B
JSON
16 lines
398 B
JSON
protocol:
|
|
{
|
|
"driver": "file",
|
|
"filename": "/var/lib/libvirt/images/i.qcow2",
|
|
"size": 4294967296
|
|
}
|
|
|
|
format:
|
|
{
|
|
"driver": "qcow2",
|
|
"file": "0123456789ABCDEF0123456789ABCDE",
|
|
"size": 8589934590,
|
|
"backing-file": "json:{\"file\":{\"driver\":\"raw\",\"offset\":1234,\"size\":5768,\"file\":{\"driver\":\"file\",\"filename\":\"/var/lib/libvirt/images/i.qcow2\"}}}",
|
|
"backing-fmt": "qcow2"
|
|
}
|