mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 21:55:25 +00:00
2c71edcf90
Add tests for backing chain handling, including a very long chain which is fully specified in the XML and an unterminated chain. The top level disk image would generate the following '-drive': file-qcow2-backing-chain-encryption.xml: -drive file=/var/lib/libvirt/images/a,encrypt.format=luks, encrypt.key-secret=node-b-f-encalias,format=qcow2,if=none,id=drive-dummy -device virtio-blk-pci,scsi=off,drive=drive-dummy,id=dummy file-qcow2-backing-chain-noopts.xml: -drive file=/var/lib/libvirt/images/rhel7.3.1507297895,format=qcow2,if=none,id=drive-dummy -device virtio-blk-pci,scsi=off,drive=drive-dummy,id=dummy file-qcow2-backing-chain-unterminated.xml: -drive file=/var/lib/libvirt/images/rhel7.3.1507297895,format=qcow2,if=none,id=drive-dummy -device virtio-blk-pci,scsi=off,drive=drive-dummy,id=dummy Signed-off-by: Peter Krempa <pkrempa@redhat.com> Reviewed-by: John Ferlan <jferlan@redhat.com>
26 lines
528 B
JSON
26 lines
528 B
JSON
{
|
|
"node-name": "#block126",
|
|
"read-only": false,
|
|
"driver": "qcow2",
|
|
"file": {
|
|
"driver": "file",
|
|
"filename": "/var/lib/libvirt/images/rhel7.3.1507297895",
|
|
"node-name": "#block004",
|
|
"read-only": false,
|
|
"discard": "unmap"
|
|
},
|
|
"backing": "#block313"
|
|
}
|
|
{
|
|
"node-name": "#block313",
|
|
"read-only": true,
|
|
"driver": "qcow2",
|
|
"file": {
|
|
"driver": "file",
|
|
"filename": "/var/lib/libvirt/images/rhel7.3.1484071872",
|
|
"node-name": "#block256",
|
|
"read-only": true,
|
|
"discard": "unmap"
|
|
}
|
|
}
|