some storages have ability to provide redundancy, for
example sheepdog via full copies or erasure
Signed-off-by: Vasiliy Tolstov <v.tolstov(a)selfip.ru>
---
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