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>
2018-03-19 10:59:19 +03:00
<disk type= 'file' device= 'disk' >
<driver name= 'qemu' type= 'qcow' io= 'threads' />
<source file= '/var/lib/libvirt/images/a' >
<privateData >
<nodenames >
<nodename type= 'storage' name= 'node-a-s' />
<nodename type= 'format' name= 'node-a-f' />
</nodenames>
</privateData>
</source>
<backingStore type= 'file' index= '1' >
<format type= 'qed' />
<source file= '/var/lib/libvirt/images/b' >
<privateData >
<nodenames >
<nodename type= 'storage' name= 'node-b-s' />
<nodename type= 'format' name= 'node-b-f' />
</nodenames>
</privateData>
</source>
<backingStore type= 'network' index= '2' >
<format type= 'vmdk' />
2024-10-10 18:21:40 +03:00
<source protocol= 'nbd' name= 'images/c' >
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>
2018-03-19 10:59:19 +03:00
<host name= 'test.org' />
<privateData >
<nodenames >
<nodename type= 'storage' name= 'node-c-s' />
<nodename type= 'format' name= 'node-c-f' />
</nodenames>
</privateData>
</source>
<backingStore type= 'file' index= '3' >
<format type= 'raw' />
<source file= '/var/lib/libvirt/images/d' >
<privateData >
<nodenames >
<nodename type= 'storage' name= 'node-d-s' />
<nodename type= 'format' name= 'node-d-f' />
</nodenames>
</privateData>
</source>
<backingStore />
</backingStore>
</backingStore>
</backingStore>
<target dev= 'vda' />
</disk>