From f5580bd6d653e74a22f742cf20a9e864c8f52837 Mon Sep 17 00:00:00 2001 From: Eric Blake Date: Fri, 22 Nov 2013 12:40:15 -0700 Subject: [PATCH] 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 --- docs/schemas/storagevol.rng | 138 ++++++++++-------- .../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 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 -- GitLab