]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
examples: fix storage volume size schema
authorDaniel P. Berrangé <berrange@redhat.com>
Tue, 6 Oct 2020 09:21:49 +0000 (10:21 +0100)
committerDaniel P. Berrangé <berrange@redhat.com>
Tue, 6 Oct 2020 12:50:15 +0000 (13:50 +0100)
There is no such <storage> element, <capacity> and <allocation> exist at
the top level.

Reviewed-by: Peter Krempa <pkrempa@redhat.com>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
examples/xml/storage/vol-cow.xml
examples/xml/storage/vol-qcow.xml
examples/xml/storage/vol-qcow2.xml
examples/xml/storage/vol-raw.xml
examples/xml/storage/vol-sparse.xml
examples/xml/storage/vol-vmdk.xml

index 1d80a01f4b1bd8bc29c4ba9dc77617a21f9a1b1e..f2bf1b49509210cd932b3f71a5b35ba1f2ab8a8a 100644 (file)
@@ -1,9 +1,7 @@
 <volume type="file">
   <name>cow.img</name>
-  <storage>
-    <allocation>0</allocation>
-    <capacity unit="T">1</capacity>
-  </storage>
+  <allocation>0</allocation>
+  <capacity unit="T">1</capacity>
   <target>
     <format type="cow"/>
   </target>
index af2011d66a4e40d64a4aa95cac730f76939eeb5e..6c30329f3947dc157ebcb5ea3a75f73ec6f9a9f5 100644 (file)
@@ -1,9 +1,7 @@
 <volume type="file">
   <name>qcow.img</name>
-  <storage>
-    <allocation>0</allocation>
-    <capacity unit="T">1</capacity>
-  </storage>
+  <allocation>0</allocation>
+  <capacity unit="T">1</capacity>
   <target>
     <format type="qcow"/>
   </target>
index 9d944a78d75e856ac1608c09a0c01e01ff5978d2..14639da796b027fddcbd21d9e41b3cf90786297d 100644 (file)
@@ -1,9 +1,7 @@
 <volume type="file">
   <name>qcow2.img</name>
-  <storage>
-    <allocation>0</allocation>
-    <capacity unit="T">1</capacity>
-  </storage>
+  <allocation>0</allocation>
+  <capacity unit="T">1</capacity>
   <target>
     <format type="qcow2"/>
   </target>
index 59d4b457b1f3a4b819e448787d09236cd074ce9b..bc4e049a357d6f8829ec7ddf153f2d6a97f293da 100644 (file)
@@ -1,7 +1,5 @@
 <volume type="file">
   <name>raw.img</name>
-  <storage>
-    <allocation unit="M">10</allocation>
-    <capacity unit="M">1000</capacity>
-  </storage>
+  <allocation unit="M">10</allocation>
+  <capacity unit="M">1000</capacity>
 </volume>
index c529a490d9dee5e7a1b824fb536d8de1b7dd3dd7..2ec9f0b748f464eaae222334fe785deb21ce2e41 100644 (file)
@@ -1,7 +1,5 @@
 <volume type="file">
   <name>sparse.img</name>
-  <storage>
-    <allocation>0</allocation>
-    <capacity unit="T">1</capacity>
-  </storage>
+  <allocation>0</allocation>
+  <capacity unit="T">1</capacity>
 </volume>
index 5af0a8499f58f5f3e8133af34b713eb01446884a..05309a14381ab2104a6db451ac955a4080bf7014 100644 (file)
@@ -1,9 +1,7 @@
 <volume type="file">
   <name>vmdk3.img</name>
-  <storage>
-    <allocation>0</allocation>
-    <capacity unit="T">1</capacity>
-  </storage>
+  <allocation>0</allocation>
+  <capacity unit="T">1</capacity>
   <target>
     <format type="vmdk"/>
   </target>