mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-11-03 11:51:11 +00:00
ca916d7709
The test cases would correspond to the following -drive command lines: dir-fat-cache.xml: -drive file=fat:/var/somefiles,if=none,id=drive-dummy,readonly=on,cache=directsync -device virtio-blk-pci,scsi=off,drive=drive-dummy,id=dummy,write-cache=off file-backing_basic-cache-directsync.xml: -drive file=/var/lib/libvirt/images/a,format=qcow2,if=none,id=drive-dummy,cache=directsync -device virtio-blk-pci,scsi=off,drive=drive-dummy,id=dummy,write-cache=off file-backing_basic-cache-none.xml: -drive file=/var/lib/libvirt/images/a,format=qcow2,if=none,id=drive-dummy,cache=none -device virtio-blk-pci,scsi=off,drive=drive-dummy,id=dummy,write-cache=on file-backing_basic-cache-unsafe.xml: -drive file=/var/lib/libvirt/images/a,format=qcow2,if=none,id=drive-dummy,cache=unsafe -device virtio-blk-pci,scsi=off,drive=drive-dummy,id=dummy,write-cache=on file-backing_basic-cache-writeback.xml: -drive file=/var/lib/libvirt/images/a,format=qcow2,if=none,id=drive-dummy,cache=writeback -device virtio-blk-pci,scsi=off,drive=drive-dummy,id=dummy,write-cache=on file-backing_basic-cache-writethrough.xml: -drive file=/var/lib/libvirt/images/a,format=qcow2,if=none,id=drive-dummy,cache=writethrough -device virtio-blk-pci,scsi=off,drive=drive-dummy,id=dummy,write-cache=off network-qcow2-backing-chain-cache-unsafe.xml: -drive file=rbd:rbdpool/rbdimg:id=testuser-rbd:auth_supported=cephx\;none: mon_host=host1.example.com\;host2.example.com, file.password-secret=node-a-s-secalias,format=qcow2, if=none,id=drive-dummy,cache=directsync -device virtio-blk-pci,scsi=off,drive=drive-dummy,id=dummy,write-cache=off Signed-off-by: Peter Krempa <pkrempa@redhat.com> Reviewed-by: John Ferlan <jferlan@redhat.com>
48 lines
1.4 KiB
XML
48 lines
1.4 KiB
XML
<disk type='file' device='disk'>
|
|
<driver name='qemu' type='qcow2' cache='writeback'/>
|
|
<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='qcow2'/>
|
|
<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='qcow2'/>
|
|
<source protocol='gluster' name='images/c'>
|
|
<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>
|