mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-11-09 06:50:22 +00:00
5f3b4a3727
With -blockdev libvirt provides the string which is recorded as 'backing store' property of an image to qemu. Add testing for qemuBlockGetBackingStoreString which generates these strings as there's logic which determines which format to use. Signed-off-by: Peter Krempa <pkrempa@redhat.com> Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
45 lines
746 B
JSON
45 lines
746 B
JSON
(
|
|
source only properties:
|
|
{
|
|
"driver": "file",
|
|
"filename": "/var/lib/libvirt/images/a"
|
|
}
|
|
backing store string:
|
|
/var/lib/libvirt/images/a
|
|
)
|
|
(
|
|
source only properties:
|
|
{
|
|
"driver": "file",
|
|
"filename": "/var/lib/libvirt/images/b"
|
|
}
|
|
backing store string:
|
|
/var/lib/libvirt/images/b
|
|
)
|
|
(
|
|
source only properties:
|
|
{
|
|
"driver": "gluster",
|
|
"volume": "images",
|
|
"path": "c",
|
|
"server": [
|
|
{
|
|
"type": "inet",
|
|
"host": "test.org",
|
|
"port": "24007"
|
|
}
|
|
]
|
|
}
|
|
backing store string:
|
|
gluster://test.org:24007/images/c
|
|
)
|
|
(
|
|
source only properties:
|
|
{
|
|
"driver": "file",
|
|
"filename": "/var/lib/libvirt/images/d"
|
|
}
|
|
backing store string:
|
|
/var/lib/libvirt/images/d
|
|
)
|