mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-11-09 15:00:07 +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>
48 lines
835 B
JSON
48 lines
835 B
JSON
(
|
|
source only properties:
|
|
{
|
|
"driver": "rbd",
|
|
"pool": "rbdpool",
|
|
"image": "rbdimg",
|
|
"server": [
|
|
{
|
|
"host": "host1.example.com",
|
|
"port": "0"
|
|
},
|
|
{
|
|
"host": "host2.example.com",
|
|
"port": "0"
|
|
}
|
|
]
|
|
}
|
|
backing store string:
|
|
json:{"file":{
|
|
"driver": "rbd",
|
|
"pool": "rbdpool",
|
|
"image": "rbdimg",
|
|
"server": [
|
|
{
|
|
"host": "host1.example.com",
|
|
"port": "0"
|
|
},
|
|
{
|
|
"host": "host2.example.com",
|
|
"port": "0"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
)
|
|
(
|
|
source only properties:
|
|
{
|
|
"driver": "iscsi",
|
|
"portal": "example.org:3260",
|
|
"target": "iqn.2016-09.com.example:iscsitarget",
|
|
"lun": 1,
|
|
"transport": "tcp"
|
|
}
|
|
backing store string:
|
|
iscsi://example.org:3260/iqn.2016-09.com.example%3Aiscsitarget/1
|
|
)
|