mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 17:34:18 +03:00
ac71f4e6d5
Test that the 'aio' option is applied correctly for the 'file' protocol backend and across the backing chain. The top level disk image would generate the following '-drive' cmdline: file-backing_basic-aio_threads: -drive file=/var/lib/libvirt/images/a,format=qcow,if=none,id=drive-dummy,aio=threads -device virtio-blk-pci,scsi=off,drive=drive-dummy,id=dummy file-raw-aio_native: -drive file=/path/to/i.img,format=raw,if=none,id=drive-dummy,cache=none,aio=native -device virtio-blk-pci,scsi=off,drive=drive-dummy,id=dummy,write-cache=on Signed-off-by: Peter Krempa <pkrempa@redhat.com> Reviewed-by: John Ferlan <jferlan@redhat.com>
63 lines
1.1 KiB
JSON
63 lines
1.1 KiB
JSON
{
|
|
"node-name": "node-a-f",
|
|
"read-only": false,
|
|
"driver": "qcow",
|
|
"file": {
|
|
"driver": "file",
|
|
"filename": "/var/lib/libvirt/images/a",
|
|
"aio": "threads",
|
|
"node-name": "node-a-s",
|
|
"read-only": false,
|
|
"discard": "unmap"
|
|
},
|
|
"backing": "node-b-f"
|
|
}
|
|
{
|
|
"node-name": "node-b-f",
|
|
"read-only": true,
|
|
"driver": "qed",
|
|
"file": {
|
|
"driver": "file",
|
|
"filename": "/var/lib/libvirt/images/b",
|
|
"aio": "threads",
|
|
"node-name": "node-b-s",
|
|
"read-only": true,
|
|
"discard": "unmap"
|
|
},
|
|
"backing": "node-c-f"
|
|
}
|
|
{
|
|
"node-name": "node-c-f",
|
|
"read-only": true,
|
|
"driver": "vmdk",
|
|
"file": {
|
|
"driver": "gluster",
|
|
"volume": "images",
|
|
"path": "c",
|
|
"server": [
|
|
{
|
|
"type": "inet",
|
|
"host": "test.org",
|
|
"port": "24007"
|
|
}
|
|
],
|
|
"node-name": "node-c-s",
|
|
"read-only": true,
|
|
"discard": "unmap"
|
|
},
|
|
"backing": "node-d-f"
|
|
}
|
|
{
|
|
"node-name": "node-d-f",
|
|
"read-only": true,
|
|
"driver": "raw",
|
|
"file": {
|
|
"driver": "file",
|
|
"filename": "/var/lib/libvirt/images/d",
|
|
"aio": "threads",
|
|
"node-name": "node-d-s",
|
|
"read-only": true,
|
|
"discard": "unmap"
|
|
}
|
|
}
|