From: Ján Tomko Date: Tue, 28 Mar 2017 13:07:50 +0000 (+0200) Subject: schema: do not require name for certain pool types X-Git-Tag: v2.2.1~12 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=987213ac7d455bd2b77735140b87a0b311d83f06;p=thirdparty%2Flibvirt.git schema: do not require name for certain pool types Pool types that have the VIR_STORAGE_POOL_SOURCE_NAME flag set allow omitting the element and instead fill out the pool name from the element. Relax the schema to make optional for these pools. Expressing that at least one of these is required is out of scope of the schema. (cherry picked from commit 8ef12b96faa357eae17fad7ab884b63dbd70feaf) --- diff --git a/docs/schemas/storagepool.rng b/docs/schemas/storagepool.rng index 49d212f7c7..888698cf18 100644 --- a/docs/schemas/storagepool.rng +++ b/docs/schemas/storagepool.rng @@ -69,7 +69,7 @@ logical - + @@ -131,7 +131,7 @@ rbd - + @@ -142,7 +142,7 @@ sheepdog - + @@ -153,7 +153,7 @@ gluster - + @@ -164,7 +164,7 @@ zfs - + @@ -192,6 +192,21 @@ + + + + + + + + + + + + + + + diff --git a/tests/storagepoolxml2xmlin/pool-logical-noname.xml b/tests/storagepoolxml2xmlin/pool-logical-noname.xml new file mode 100644 index 0000000000..ad3f88dfe1 --- /dev/null +++ b/tests/storagepoolxml2xmlin/pool-logical-noname.xml @@ -0,0 +1,18 @@ + + 1c13165a-d0f4-3aee-b447-30fb38789091 + 99891544064 + 99220455424 + 671088640 + + zily + + + + /dev/zily + + 0700 + 0 + 0 + + +