1
0
mirror of https://gitlab.com/libvirt/libvirt.git synced 2024-12-22 17:34:18 +03:00
libvirt/tests/qemublocktestdata/xml2json/file-backing_basic-cache-writeback-srconly.json
Peter Krempa 5f3b4a3727 qemublocktest: Test backing store strings
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>
2020-03-24 14:17:47 +01:00

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
)