"Daniel P. Berrange" <berrange(a)redhat.com> wrote:
Here's the patch including RNG schema update
Daniel
diff -r 2ff2ff7734c2 docs/schemas/domain.rng
--- a/docs/schemas/domain.rng Fri Jan 30 11:01:52 2009 +0000
+++ b/docs/schemas/domain.rng Fri Jan 30 14:47:11 2009 +0000
@@ -426,16 +426,43 @@
-->
<define name='driver'>
<element name='driver'>
- <attribute name='name'>
+ <choice>
+ <group>
+ <ref name='driverFormat'/>
+ <optional>
+ <ref name='driverCache'/>
+ </optional>
+ </group>
+ <group>
+ <optional>
+ <ref name='driverFormat'/>
+ </optional>
+ <ref name='driverCache'/>
+ </group>
+ </choice>
+ <empty/>
+ </element>
+ </define>
+
+ <define name='driverFormat'>
+ <attribute name='name'>
+ <ref name='genericName'/>
+ </attribute>
+ <optional>
+ <attribute name='type'>
<ref name='genericName'/>
</attribute>
- <optional>
- <attribute name='type'>
- <ref name='genericName'/>
- </attribute>
- </optional>
- <empty/>
- </element>
+ </optional>
+ </define>
+
+ <define name='driverCache'>
+ <attribute name='cache'>
+ <choice>
+ <value>none</value>
+ <value>writeback</value>
+ <value>writethrough</value>
+ </choice>
+ </attribute>
</define>
<define name='filesystem'>
Yep.
ACK.