From: Eric Blake Date: Fri, 22 Nov 2013 19:40:15 +0000 (-0700) Subject: storage: allow interleave in volume XML X-Git-Tag: v1.2.0-rc1~14 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f5580bd6d653e74a22f742cf20a9e864c8f52837;p=thirdparty%2Flibvirt.git storage: allow interleave in volume XML 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 --- diff --git a/docs/schemas/storagevol.rng b/docs/schemas/storagevol.rng index 5da8e1febc..e79bc35919 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 73e7f288df..8610ea42eb 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