From cfa345c23cbb5f9e863f8b9cf1cd288229b78b44 Mon Sep 17 00:00:00 2001 Message-Id: From: Eric Blake Date: Wed, 26 Feb 2014 14:54:18 +0100 Subject: [PATCH] storage: allow interleave in volume XML https://bugzilla.redhat.com/show_bug.cgi?id=1032370 The RNG grammar did not allow arbitrary interleaving, which makes it harder than necessary to create a new volume from handwritten XML. (Compare also to commit caf516db for pools). * docs/schemas/storagevol.rng: Support interleaving. * tests/storagevolxml2xmlin/vol-file-backing.xml: Test it. Signed-off-by: Eric Blake (cherry picked from commit f5580bd6d653e74a22f742cf20a9e864c8f52837) Conflicts: tests/storagevolxml2xmlin/vol-file-backing.xml: context Signed-off-by: Jiri Denemark --- docs/schemas/storagevol.rng | 138 +++++++++++++------------ tests/storagevolxml2xmlin/vol-file-backing.xml | 15 +-- 2 files changed, 82 insertions(+), 71 deletions(-) diff --git a/docs/schemas/storagevol.rng b/docs/schemas/storagevol.rng index 5da8e1f..e79bc35 100644 --- a/docs/schemas/storagevol.rng +++ b/docs/schemas/storagevol.rng @@ -13,55 +13,61 @@ - - - - - - + + + - - - - - - - - - + + + + + + + + + + + + + + - - - - - - - - - - + + + + + + + + + + + + - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + @@ -103,36 +109,40 @@ - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + - - - - - + + + + + + + diff --git a/tests/storagevolxml2xmlin/vol-file-backing.xml b/tests/storagevolxml2xmlin/vol-file-backing.xml index 73e7f28..8610ea4 100644 --- a/tests/storagevolxml2xmlin/vol-file-backing.xml +++ b/tests/storagevolxml2xmlin/vol-file-backing.xml @@ -1,25 +1,26 @@ - sparse.img + /var/lib/libvirt/images/sparse.img - 10 - 0 + - /var/lib/libvirt/images/sparse.img - 0 0744 + 0 0 + /var/lib/libvirt/images/sparse.img + 0 - /var/lib/virt/images/master.img + /var/lib/virt/images/master.img 0744 + 1 1 - + sparse.img -- 1.9.0