libvirt/SOURCES/libvirt-schema-wrap-fsDriver-in-a-choice-group.patch
2021-09-10 11:58:15 +00:00

90 lines
2.8 KiB
Diff

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