[libvirt] [PATCH] rng: Move sgio attr definition to a separate block

Erik Skultety eskultet at redhat.com
Mon Apr 20 08:15:11 UTC 2015


it might be worth having sgio attribute defined in a separate block the same way
as rawio attribute.
---
As Jan suggested, I moved unrelated hunks into a separate commit and then
pushed it as trivial.
Erik

 docs/schemas/domaincommon.rng | 22 ++++++++++------------
 1 file changed, 10 insertions(+), 12 deletions(-)

diff --git a/docs/schemas/domaincommon.rng b/docs/schemas/domaincommon.rng
index 9cc5e76..19461f5 100644
--- a/docs/schemas/domaincommon.rng
+++ b/docs/schemas/domaincommon.rng
@@ -1193,12 +1193,7 @@
             <ref name="rawIO"/>
           </optional>
           <optional>
-            <attribute name="sgio">
-              <choice>
-                <value>filtered</value>
-                <value>unfiltered</value>
-              </choice>
-            </attribute>
+            <ref name="sgIO"/>
           </optional>
           <interleave>
             <choice>
@@ -3680,12 +3675,7 @@
       <value>scsi</value>
     </attribute>
     <optional>
-      <attribute name="sgio">
-        <choice>
-          <value>filtered</value>
-          <value>unfiltered</value>
-        </choice>
-      </attribute>
+        <ref name="sgIO"/>
     </optional>
     <optional>
       <ref name="rawIO"/>
@@ -5190,4 +5180,12 @@
       <ref name="virYesNo"/>
     </attribute>
   </define>
+  <define name="sgIO">
+    <attribute name="sgio">
+      <choice>
+        <value>filtered</value>
+        <value>unfiltered</value>
+      </choice>
+    </attribute>
+  </define>
 </grammar>
-- 
1.9.3




More information about the libvir-list mailing list