From 8845a0d5d365cc8c87c2fdb577f5f15f738c74e7 Mon Sep 17 00:00:00 2001 Message-Id: <8845a0d5d365cc8c87c2fdb577f5f15f738c74e7@dist-git> From: Eric Blake Date: Wed, 26 Feb 2014 14:54:39 +0100 Subject: [PATCH] storage: allow interleave in pool 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 pool from handwritten XML. * docs/schemas/storagepool.rng: Allow interleaving. * tests/storagepoolxml2xmlin/pool-sheepdog.xml: Test interleave. * tests/storagepoolxml2xmlin/pool-iscsi-auth.xml: Likewise. Signed-off-by: Eric Blake (cherry picked from commit caf516db518ce01b97314932929fbe34deafac78) Signed-off-by: Jiri Denemark --- docs/schemas/storagepool.rng | 356 ++++++++++++++----------- tests/storagepoolxml2xmlin/pool-iscsi-auth.xml | 12 +- tests/storagepoolxml2xmlin/pool-sheepdog.xml | 6 +- 3 files changed, 211 insertions(+), 163 deletions(-) diff --git a/docs/schemas/storagepool.rng b/docs/schemas/storagepool.rng index d1e8f36..8d7a94d 100644 --- a/docs/schemas/storagepool.rng +++ b/docs/schemas/storagepool.rng @@ -30,100 +30,120 @@ dir - - - - + + + + + + fs - - - - + + + + + + netfs - - - - + + + + + + logical - - - - + + + + + + disk - - - - + + + + + + iscsi - - - - + + + + + + scsi - - - - + + + + + + mpath - - - - - - + + + + + + + + rbd - - - + + + + + sheepdog - - - + + + + + @@ -138,95 +158,107 @@ - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + - - - - - - + + + - + + + + + + - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + - - - - - - - -1 - - - - - - -1 - - - - - - - + + + + + + + + -1 + + + + + + -1 + + + + + + + + - - - - + + + + + + - - - - - - + + + + + + + + @@ -424,74 +456,86 @@ - - - - - + + + + + + + - - - - - - + + + + + + + + - - - - + + + + + + + + + + - + - - - - - + - - - - - + + + + + + + - - - - - - - - - - - + + + + + + + + + + + + + - - - - + + + + + + @@ -503,18 +547,22 @@ - - - - - + + + + + + + - - + + + + diff --git a/tests/storagepoolxml2xmlin/pool-iscsi-auth.xml b/tests/storagepoolxml2xmlin/pool-iscsi-auth.xml index c81eb60..5e5d336 100644 --- a/tests/storagepoolxml2xmlin/pool-iscsi-auth.xml +++ b/tests/storagepoolxml2xmlin/pool-iscsi-auth.xml @@ -1,19 +1,19 @@ - virtimages - e9392370-2917-565e-692b-d057f46512d6 - - + + + e9392370-2917-565e-692b-d057f46512d6 - /dev/disk/by-path - 0700 0 + 0700 0 + /dev/disk/by-path + virtimages diff --git a/tests/storagepoolxml2xmlin/pool-sheepdog.xml b/tests/storagepoolxml2xmlin/pool-sheepdog.xml index 1287047..49b6baf 100644 --- a/tests/storagepoolxml2xmlin/pool-sheepdog.xml +++ b/tests/storagepoolxml2xmlin/pool-sheepdog.xml @@ -1,8 +1,8 @@ - sheepdog - 65fcba04-5b13-bd93-cff3-52ce48e11ad7 - sheepdog + + 65fcba04-5b13-bd93-cff3-52ce48e11ad7 + sheepdog -- 1.9.0