mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 21:55:25 +00: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>
22 lines
363 B
JSON
22 lines
363 B
JSON
{
|
|
"node-name": "test1",
|
|
"read-only": false,
|
|
"cache": {
|
|
"direct": true,
|
|
"no-flush": false
|
|
},
|
|
"driver": "raw",
|
|
"file": {
|
|
"driver": "file",
|
|
"filename": "/path/to/i.img",
|
|
"aio": "native",
|
|
"node-name": "test2",
|
|
"cache": {
|
|
"direct": true,
|
|
"no-flush": false
|
|
},
|
|
"read-only": false,
|
|
"discard": "unmap"
|
|
}
|
|
}
|