]> git.ipfire.org Git - thirdparty/libvirt.git/commit
tests: qemublock: Add test cases for 'aio' options of 'file' storage
authorPeter Krempa <pkrempa@redhat.com>
Mon, 19 Mar 2018 07:59:19 +0000 (08:59 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Mon, 7 May 2018 13:57:52 +0000 (15:57 +0200)
commitac71f4e6d5839ccefc0517f7dbade32d4d1fe8f2
treefdf5623a69db6261e1b1f32af853e345558859bf
parent7e441e2e2c3d997b024b3caaca1634b1574b3fb5
tests: qemublock: Add test cases for 'aio' options of 'file' storage

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>
tests/qemublocktest.c
tests/qemublocktestdata/xml2json/file-backing_basic-aio_threads.json [new file with mode: 0644]
tests/qemublocktestdata/xml2json/file-backing_basic-aio_threads.xml [new file with mode: 0644]
tests/qemublocktestdata/xml2json/file-raw-aio_native.json [new file with mode: 0644]
tests/qemublocktestdata/xml2json/file-raw-aio_native.xml [new file with mode: 0644]