]> xenbits.xensource.com Git - libvirt.git/commitdiff
examples: testdriver: Add a nested inline <volume> example
authorCole Robinson <crobinso@redhat.com>
Mon, 17 Oct 2022 16:10:36 +0000 (12:10 -0400)
committerCole Robinson <crobinso@redhat.com>
Wed, 19 Oct 2022 20:40:36 +0000 (16:40 -0400)
Reviewed-by: Peter Krempa <pkrempa@redhat.com>
Signed-off-by: Cole Robinson <crobinso@redhat.com>
examples/xml/test/testnodeinline.xml

index 90805f025a90009cb03dd824d565e150ef490a95..4657ecadd29f38b2ecc016ab7423a4b3f223a0a5 100644 (file)
   </capability>
 </device>
 
+<pool type='dir'>
+  <name>default-pool</name>
+  <uuid>35bb2ad9-388a-cdfe-461a-b8907f6e53fe</uuid>
+  <capacity>107374182400</capacity>
+  <allocation>0</allocation>
+  <available>107374182400</available>
+  <target>
+    <path>/default-pool</path>
+    <permissions>
+      <mode>0700</mode>
+      <owner>10736</owner>
+      <group>10736</group>
+    </permissions>
+  </target>
+
+  <volume>
+    <name>default-vol</name>
+    <capacity>1000000</capacity>
+    <allocation>50000</allocation>
+    <target/>
+  </volume>
+</pool>
 
   <cpu>
     <mhz>6000</mhz>