add optional redundancy element to storage

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



some storages have ability to provide redundancy, for
example sheepdog via full copies or erasure

Signed-off-by: Vasiliy Tolstov <v.tolstov@xxxxxxxxx>
---
 docs/schemas/storagevol.rng | 24 ++++++++++++++++++++++++
 1 file changed, 24 insertions(+)

diff --git a/docs/schemas/storagevol.rng b/docs/schemas/storagevol.rng
index 7450547..bd3b698 100644
--- a/docs/schemas/storagevol.rng
+++ b/docs/schemas/storagevol.rng
@@ -105,6 +105,9 @@
             </choice>
           </element>
         </optional>
+        <optional>
+          <ref name='redundancy'/>
+        </optional>
         <ref name='format'/>
         <ref name='permissions'/>
         <ref name='timestamps'/>
@@ -138,6 +141,27 @@
     </element>
   </define>
 
+  <define name='redundancy'>
+    <optional>
+      <element name='replica'>
+          <element name='copies'>
+            <ref name='scaledInteger'/>
+          </element>
+      </element>
+    </optional>
+    <optional>
+      <element name='erasure'>
+        <element name='strips'>
+          <attribute name='data'>
+            <ref name='scaledInteger'/>
+          </attribute>
+          <attribute name='parity'>
+            <ref name='scaledInteger'/>
+          </attribute>
+        </element>
+      </element>
+    </optional>
+  </define>
 
   <define name='source'>
     <element name='source'>
-- 
2.3.3

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list



[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]