c401cc
From 96576fef61fdc36b342517ef517e1b30b74af1a1 Mon Sep 17 00:00:00 2001
c401cc
Message-Id: <96576fef61fdc36b342517ef517e1b30b74af1a1@dist-git>
c401cc
From: Peter Krempa <pkrempa@redhat.com>
c401cc
Date: Wed, 26 Feb 2014 14:55:13 +0100
c401cc
Subject: [PATCH] snapshot: schema: Split out snapshot disk driver definition
c401cc
c401cc
https://bugzilla.redhat.com/show_bug.cgi?id=1032370
c401cc
c401cc
Extract the definition to a new type to allow avoiding of duplication.
c401cc
c401cc
(cherry picked from commit 32487c86c6e8ab35153f5110897ebd94c65ffb8c)
c401cc
c401cc
Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
c401cc
---
c401cc
 docs/schemas/domainsnapshot.rng | 24 ++++++++++++++----------
c401cc
 1 file changed, 14 insertions(+), 10 deletions(-)
c401cc
c401cc
diff --git a/docs/schemas/domainsnapshot.rng b/docs/schemas/domainsnapshot.rng
c401cc
index 7b46df1..169fcfb 100644
c401cc
--- a/docs/schemas/domainsnapshot.rng
c401cc
+++ b/docs/schemas/domainsnapshot.rng
c401cc
@@ -124,16 +124,7 @@
c401cc
             </attribute>
c401cc
           </optional>
c401cc
           <interleave>
c401cc
-            <optional>
c401cc
-              <element name='driver'>
c401cc
-                <optional>
c401cc
-                  <attribute name='type'>
c401cc
-                    <ref name='storageFormat'/>
c401cc
-                  </attribute>
c401cc
-                </optional>
c401cc
-                <empty/>
c401cc
-              </element>
c401cc
-            </optional>
c401cc
+            <ref name='disksnapshotdriver'/>
c401cc
             <optional>
c401cc
               <element name='source'>
c401cc
                 <optional>
c401cc
@@ -150,4 +141,17 @@
c401cc
     </element>
c401cc
   </define>
c401cc
 
c401cc
+  <define name='disksnapshotdriver'>
c401cc
+    <optional>
c401cc
+      <element name='driver'>
c401cc
+        <optional>
c401cc
+          <attribute name='type'>
c401cc
+            <ref name='storageFormat'/>
c401cc
+          </attribute>
c401cc
+        </optional>
c401cc
+        <empty/>
c401cc
+      </element>
c401cc
+    </optional>
c401cc
+  </define>
c401cc
+
c401cc
 </grammar>
c401cc
-- 
c401cc
1.9.0
c401cc