mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
Move volume XMLs out of storagevolxml2argvdata
Reuse the XML files in storagevolxml2xmlin. (This requires changing a few backing files to /dev/null, since virStorageBackendCreateQemuImgCmd checks for its presence)
This commit is contained in:
35
tests/storagevolxml2xmlin/vol-qcow2-0.10-lazy.xml
Normal file
35
tests/storagevolxml2xmlin/vol-qcow2-0.10-lazy.xml
Normal file
@@ -0,0 +1,35 @@
|
||||
<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>
|
||||
<compat>0.10</compat>
|
||||
<features>
|
||||
<lazy_refcounts/>
|
||||
</features>
|
||||
</target>
|
||||
<backingStore>
|
||||
<path>/dev/null</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>
|
||||
@@ -20,7 +20,7 @@
|
||||
<features/>
|
||||
</target>
|
||||
<backingStore>
|
||||
<path>/var/lib/libvirt/images/BaseDemo.img</path>
|
||||
<path>/dev/null</path>
|
||||
<format type='raw'/>
|
||||
<permissions>
|
||||
<mode>0644</mode>
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
</features>
|
||||
</target>
|
||||
<backingStore>
|
||||
<path>/var/lib/libvirt/images/BaseDemo.img</path>
|
||||
<path>/dev/null</path>
|
||||
<format type='raw'/>
|
||||
<permissions>
|
||||
<mode>0644</mode>
|
||||
|
||||
21
tests/storagevolxml2xmlin/vol-qcow2-nobacking.xml
Normal file
21
tests/storagevolxml2xmlin/vol-qcow2-nobacking.xml
Normal file
@@ -0,0 +1,21 @@
|
||||
<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>
|
||||
</volume>
|
||||
@@ -19,7 +19,7 @@
|
||||
</encryption>
|
||||
</target>
|
||||
<backingStore>
|
||||
<path>/var/lib/libvirt/images/BaseDemo.img</path>
|
||||
<path>/dev/null</path>
|
||||
<format type='raw'/>
|
||||
<permissions>
|
||||
<mode>0644</mode>
|
||||
|
||||
Reference in New Issue
Block a user