libvirt/tests/storagevolxml2xmlin
Eric Blake 1b5c8d4cbc storage: expose volume meta-type in XML
I got annoyed at having to use both 'virsh vol-list $pool --details'
AND 'virsh vol-dumpxml $vol $pool' to learn if I had populated
the volume correctly.  Since two-thirds of the data present in
virStorageVolGetInfo() already appears in virStorageVolGetXMLDesc(),
this just adds the remaining piece of information, as:

<volume type='...'>
  ...
</volume>

* docs/formatstorage.html.in: Document new <volume type=...>.
* docs/schemas/storagevol.rng (vol): Add it to RelaxNG.
* src/conf/storage_conf.h (virStorageVolTypeToString): Declare.
* src/conf/storage_conf.c (virStorageVolTargetDefFormat): Output
the metatype.
(virStorageVolDefParseXML): Parse it, for unit tests.
* tests/storagevolxml2xmlout/vol-*.xml: Update tests to match.

Signed-off-by: Eric Blake <eblake@redhat.com>
2013-11-25 10:55:19 -07:00
..
vol-file-backing.xml storage: allow interleave in volume XML 2013-11-25 07:51:14 -07:00
vol-file-naming.xml storage: use valid XML for awkward volume names 2013-11-21 17:29:47 -07:00
vol-file.xml Added timestamps to storage volumes 2012-08-02 17:14:17 -06:00
vol-logical-backing.xml storage: expose volume meta-type in XML 2013-11-25 10:55:19 -07:00
vol-logical.xml storage: expose volume meta-type in XML 2013-11-25 10:55:19 -07:00
vol-partition.xml storage: expose volume meta-type in XML 2013-11-25 10:55:19 -07:00
vol-qcow2-0.10-lazy.xml Move volume XMLs out of storagevolxml2argvdata 2013-07-25 13:26:41 +02:00
vol-qcow2-1.1.xml Move volume XMLs out of storagevolxml2argvdata 2013-07-25 13:26:41 +02:00
vol-qcow2-lazy.xml Move volume XMLs out of storagevolxml2argvdata 2013-07-25 13:26:41 +02:00
vol-qcow2-nobacking.xml Move volume XMLs out of storagevolxml2argvdata 2013-07-25 13:26:41 +02:00
vol-qcow2.xml Move volume XMLs out of storagevolxml2argvdata 2013-07-25 13:26:41 +02:00
vol-sheepdog.xml storage: expose volume meta-type in XML 2013-11-25 10:55:19 -07:00