[PATCH 2/3] examples: testdriver: Add a nested inline <volume> example

Cole Robinson crobinso at redhat.com
Mon Oct 17 16:16:40 UTC 2022


Signed-off-by: Cole Robinson <crobinso at redhat.com>
---
 examples/xml/test/testnodeinline.xml | 22 ++++++++++++++++++++++
 1 file changed, 22 insertions(+)

diff --git a/examples/xml/test/testnodeinline.xml b/examples/xml/test/testnodeinline.xml
index 90805f025a..4657ecadd2 100644
--- a/examples/xml/test/testnodeinline.xml
+++ b/examples/xml/test/testnodeinline.xml
@@ -177,6 +177,28 @@
   </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>
-- 
2.37.3



More information about the libvir-list mailing list