[PATCH 2/3] schemas: Allow interleaving of fsBinary children

Michal Privoznik mprivozn at redhat.com
Wed Jan 6 12:00:23 UTC 2021


The <binary/> element of <filesystem/> can have children elements
(<cache/> and <lock/>). Allow them to be interleaved.

Signed-off-by: Michal Privoznik <mprivozn at redhat.com>
---
 docs/schemas/domaincommon.rng | 54 ++++++++++++++++++-----------------
 1 file changed, 28 insertions(+), 26 deletions(-)

diff --git a/docs/schemas/domaincommon.rng b/docs/schemas/domaincommon.rng
index 49654624a9..9f3b65b546 100644
--- a/docs/schemas/domaincommon.rng
+++ b/docs/schemas/domaincommon.rng
@@ -2861,32 +2861,34 @@
           <ref name="virOnOff"/>
         </attribute>
       </optional>
-      <optional>
-        <element name="cache">
-          <optional>
-            <attribute name="mode">
-              <choice>
-                <value>none</value>
-                <value>always</value>
-              </choice>
-            </attribute>
-          </optional>
-        </element>
-      </optional>
-      <optional>
-        <element name="lock">
-          <optional>
-            <attribute name="posix">
-              <ref name="virOnOff"/>
-            </attribute>
-          </optional>
-          <optional>
-            <attribute name="flock">
-              <ref name="virOnOff"/>
-            </attribute>
-          </optional>
-        </element>
-      </optional>
+      <interleave>
+        <optional>
+          <element name="cache">
+            <optional>
+              <attribute name="mode">
+                <choice>
+                  <value>none</value>
+                  <value>always</value>
+                </choice>
+              </attribute>
+            </optional>
+          </element>
+        </optional>
+        <optional>
+          <element name="lock">
+            <optional>
+              <attribute name="posix">
+                <ref name="virOnOff"/>
+              </attribute>
+            </optional>
+            <optional>
+              <attribute name="flock">
+                <ref name="virOnOff"/>
+              </attribute>
+            </optional>
+          </element>
+        </optional>
+      </interleave>
     </element>
   </define>
 
-- 
2.26.2




More information about the libvir-list mailing list