render / rpms / libvirt

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