render / rpms / libvirt

Forked from rpms/libvirt 5 months ago
Clone
a41c76
From f37eb0d50ba30f036e08e8144bd52b3ebc1751e1 Mon Sep 17 00:00:00 2001
a41c76
Message-Id: <f37eb0d50ba30f036e08e8144bd52b3ebc1751e1@dist-git>
a41c76
From: =?UTF-8?q?J=C3=A1n=20Tomko?= <jtomko@redhat.com>
a41c76
Date: Wed, 4 Mar 2020 12:42:35 +0100
a41c76
Subject: [PATCH] schema: wrap fsDriver in a choice group
a41c76
MIME-Version: 1.0
a41c76
Content-Type: text/plain; charset=UTF-8
a41c76
Content-Transfer-Encoding: 8bit
a41c76
a41c76
Allow adding new groups without changing indentation.
a41c76
a41c76
Signed-off-by: Ján Tomko <jtomko@redhat.com>
a41c76
Reviewed-by: Peter Krempa <pkrempa@redhat.com>
a41c76
Acked-by: Stefan Hajnoczi <stefanha@redhat.com>
a41c76
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
a41c76
Tested-by: Andrea Bolognani <abologna@redhat.com>
a41c76
(cherry picked from commit 3913abd476cfe663db978d9110daa8bdc6d4e5b6)
a41c76
Signed-off-by: Ján Tomko <jtomko@redhat.com>
a41c76
https://bugzilla.redhat.com/show_bug.cgi?id=1694166
a41c76
Message-Id: <a802f84a40623bf55d9c1b1307a117b6e133daad.1583322090.git.jtomko@redhat.com>
a41c76
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
a41c76
---
a41c76
 docs/schemas/domaincommon.rng | 50 +++++++++++++++++++----------------
a41c76
 1 file changed, 27 insertions(+), 23 deletions(-)
a41c76
a41c76
diff --git a/docs/schemas/domaincommon.rng b/docs/schemas/domaincommon.rng
a41c76
index 38aef19e89..bfd8786ea8 100644
a41c76
--- a/docs/schemas/domaincommon.rng
a41c76
+++ b/docs/schemas/domaincommon.rng
a41c76
@@ -2620,29 +2620,33 @@
a41c76
            for this kind of info, and 'type' for the
a41c76
            storage format. We need the latter too, so
a41c76
            had to invent a new attribute name -->
a41c76
-      <optional>
a41c76
-        <attribute name="type">
a41c76
-          <choice>
a41c76
-            <value>path</value>
a41c76
-            <value>handle</value>
a41c76
-            <value>loop</value>
a41c76
-            <value>nbd</value>
a41c76
-            <value>ploop</value>
a41c76
-          </choice>
a41c76
-        </attribute>
a41c76
-      </optional>
a41c76
-      <optional>
a41c76
-        <attribute name="format">
a41c76
-          <ref name="storageFormat"/>
a41c76
-        </attribute>
a41c76
-      </optional>
a41c76
-      <optional>
a41c76
-        <attribute name="wrpolicy">
a41c76
-          <value>immediate</value>
a41c76
-        </attribute>
a41c76
-      </optional>
a41c76
-      <ref name='virtioOptions'/>
a41c76
-      <empty/>
a41c76
+      <choice>
a41c76
+        <group>
a41c76
+          <optional>
a41c76
+            <attribute name="type">
a41c76
+              <choice>
a41c76
+                <value>path</value>
a41c76
+                <value>handle</value>
a41c76
+                <value>loop</value>
a41c76
+                <value>nbd</value>
a41c76
+                <value>ploop</value>
a41c76
+              </choice>
a41c76
+            </attribute>
a41c76
+          </optional>
a41c76
+          <optional>
a41c76
+            <attribute name="format">
a41c76
+              <ref name="storageFormat"/>
a41c76
+            </attribute>
a41c76
+          </optional>
a41c76
+          <optional>
a41c76
+            <attribute name="wrpolicy">
a41c76
+              <value>immediate</value>
a41c76
+            </attribute>
a41c76
+          </optional>
a41c76
+          <ref name='virtioOptions'/>
a41c76
+        </group>
a41c76
+        <empty/>
a41c76
+      </choice>
a41c76
     </element>
a41c76
   </define>
a41c76
 
a41c76
-- 
a41c76
2.25.1
a41c76