mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
tests: Add storage volume XML 2 XML tests.
This commit is contained in:
24
tests/storagevolxml2xmlin/vol-file-backing.xml
Normal file
24
tests/storagevolxml2xmlin/vol-file-backing.xml
Normal file
@@ -0,0 +1,24 @@
|
||||
<volume>
|
||||
<name>sparse.img</name>
|
||||
<source/>
|
||||
<capacity>10000000000</capacity>
|
||||
<allocation>0</allocation>
|
||||
<target>
|
||||
<path>/var/lib/libvirt/images/sparse.img</path>
|
||||
<permissions>
|
||||
<mode>0</mode>
|
||||
<owner>0744</owner>
|
||||
<group>0</group>
|
||||
</permissions>
|
||||
</target>
|
||||
<backingStore>
|
||||
<path>/var/lib/virt/images/master.img</path>
|
||||
<format type='vmdk'/>
|
||||
<permissions>
|
||||
<mode>0744</mode>
|
||||
<owner>1</owner>
|
||||
<group>1</group>
|
||||
<label>virt_image_t</label>
|
||||
</permissions>
|
||||
</backingStore>
|
||||
</volume>
|
||||
15
tests/storagevolxml2xmlin/vol-file.xml
Normal file
15
tests/storagevolxml2xmlin/vol-file.xml
Normal file
@@ -0,0 +1,15 @@
|
||||
<volume>
|
||||
<name>sparse.img</name>
|
||||
<source/>
|
||||
<capacity unit="T">1</capacity>
|
||||
<allocation>0</allocation>
|
||||
<target>
|
||||
<path>/var/lib/libvirt/images/sparse.img</path>
|
||||
<permissions>
|
||||
<mode>0</mode>
|
||||
<owner>0744</owner>
|
||||
<group>0</group>
|
||||
<label>virt_image_t</label>
|
||||
</permissions>
|
||||
</target>
|
||||
</volume>
|
||||
29
tests/storagevolxml2xmlin/vol-logical-backing.xml
Normal file
29
tests/storagevolxml2xmlin/vol-logical-backing.xml
Normal file
@@ -0,0 +1,29 @@
|
||||
<volume>
|
||||
<name>Swap</name>
|
||||
<key>r4xkCv-MQhr-WKIT-R66x-Epn2-e8hG-1Z5gY0</key>
|
||||
<source>
|
||||
<device path='/dev/sda2'>
|
||||
<extent start='31440502784' end='33520877568'/>
|
||||
</device>
|
||||
</source>
|
||||
<capacity>2080374784</capacity>
|
||||
<allocation>2080374784</allocation>
|
||||
<target>
|
||||
<path>/dev/HostVG/Swap</path>
|
||||
<permissions>
|
||||
<mode>0660</mode>
|
||||
<owner>0</owner>
|
||||
<group>6</group>
|
||||
<label>system_u:object_r:fixed_disk_device_t:s0</label>
|
||||
</permissions>
|
||||
</target>
|
||||
<backingStore>
|
||||
<path>/dev/HostVG/snapshot</path>
|
||||
<permissions>
|
||||
<mode>0744</mode>
|
||||
<owner>1</owner>
|
||||
<group>1</group>
|
||||
<label>virt_image_t</label>
|
||||
</permissions>
|
||||
</backingStore>
|
||||
</volume>
|
||||
20
tests/storagevolxml2xmlin/vol-logical.xml
Normal file
20
tests/storagevolxml2xmlin/vol-logical.xml
Normal file
@@ -0,0 +1,20 @@
|
||||
<volume>
|
||||
<name>Swap</name>
|
||||
<key>r4xkCv-MQhr-WKIT-R66x-Epn2-e8hG-1Z5gY0</key>
|
||||
<source>
|
||||
<device path='/dev/sda2'>
|
||||
<extent start='31440502784' end='33520877568'/>
|
||||
</device>
|
||||
</source>
|
||||
<capacity>2080374784</capacity>
|
||||
<allocation>2080374784</allocation>
|
||||
<target>
|
||||
<path>/dev/HostVG/Swap</path>
|
||||
<permissions>
|
||||
<mode>0660</mode>
|
||||
<owner>0</owner>
|
||||
<group>6</group>
|
||||
<label>system_u:object_r:fixed_disk_device_t:s0</label>
|
||||
</permissions>
|
||||
</target>
|
||||
</volume>
|
||||
21
tests/storagevolxml2xmlin/vol-partition.xml
Normal file
21
tests/storagevolxml2xmlin/vol-partition.xml
Normal file
@@ -0,0 +1,21 @@
|
||||
<volume>
|
||||
<name>sda1</name>
|
||||
<key>/dev/sda1</key>
|
||||
<source>
|
||||
<device path='/dev/sda'>
|
||||
<extent start='32256' end='106928640'/>
|
||||
</device>
|
||||
</source>
|
||||
<capacity>106896384</capacity>
|
||||
<allocation>106896384</allocation>
|
||||
<target>
|
||||
<path>/dev/sda1</path>
|
||||
<format type='none'/>
|
||||
<permissions>
|
||||
<mode>0660</mode>
|
||||
<owner>0</owner>
|
||||
<group>6</group>
|
||||
<label>system_u:object_r:fixed_disk_device_t:s0</label>
|
||||
</permissions>
|
||||
</target>
|
||||
</volume>
|
||||
31
tests/storagevolxml2xmlin/vol-qcow2.xml
Normal file
31
tests/storagevolxml2xmlin/vol-qcow2.xml
Normal file
@@ -0,0 +1,31 @@
|
||||
<volume>
|
||||
<name>OtherDemo.img</name>
|
||||
<key>/var/lib/libvirt/images/OtherDemo.img</key>
|
||||
<source>
|
||||
</source>
|
||||
<capacity unit="G">5</capacity>
|
||||
<allocation>294912</allocation>
|
||||
<target>
|
||||
<path>/var/lib/libvirt/images/OtherDemo.img</path>
|
||||
<format type='qcow2'/>
|
||||
<permissions>
|
||||
<mode>0644</mode>
|
||||
<owner>0</owner>
|
||||
<group>0</group>
|
||||
<label>unconfined_u:object_r:virt_image_t:s0</label>
|
||||
</permissions>
|
||||
<encryption format='qcow'>
|
||||
<secret type='passphrase' uuid='e78d4b51-a2af-485f-b0f5-afca709a80f4'/>
|
||||
</encryption>
|
||||
</target>
|
||||
<backingStore>
|
||||
<path>/var/lib/libvirt/images/BaseDemo.img</path>
|
||||
<format type='raw'/>
|
||||
<permissions>
|
||||
<mode>0644</mode>
|
||||
<owner>0</owner>
|
||||
<group>0</group>
|
||||
<label>unconfined_u:object_r:virt_image_t:s0</label>
|
||||
</permissions>
|
||||
</backingStore>
|
||||
</volume>
|
||||
Reference in New Issue
Block a user