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

Cole Robinson posted 3 patches 3 years, 3 months ago
[PATCH 2/3] examples: testdriver: Add a nested inline <volume> example
Posted by Cole Robinson 3 years, 3 months ago
Signed-off-by: Cole Robinson <crobinso@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
Re: [PATCH 2/3] examples: testdriver: Add a nested inline <volume> example
Posted by Peter Krempa 3 years, 3 months ago
On Mon, Oct 17, 2022 at 12:16:40 -0400, Cole Robinson wrote:
> Signed-off-by: Cole Robinson <crobinso@redhat.com>
> ---
>  examples/xml/test/testnodeinline.xml | 22 ++++++++++++++++++++++
>  1 file changed, 22 insertions(+)

Reviewed-by: Peter Krempa <pkrempa@redhat.com>