[libvirt] [PATCH] storage: expose volume meta-type in XML

Eric Blake eblake at redhat.com
Mon Nov 25 16:05:53 UTC 2013


On 11/24/2013 09:57 PM, Osier Yang wrote:
> On 23/11/13 06:26, Eric Blake wrote:
>> 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.
>>
>> * docs/formatstorage.html.in: Document new <target type=...>.
> 
> I didn't see it relates with "target".
> 
>> * docs/schemas/storagevol.rng (target, backingStore): Add it to
>> RelaxNG.
> 
> I thought "(target, backingStore)" means add "type" to both
> of them.  Finally see it means "between"  :-)

Blah; stale commit comments.  I'll fix them as part of addressing Dan's
comment.

>> +      <dt><code>type</code></dt>
>> +      <dd>Output-only; provides the volume type that is also available
>> +        from <code>virStorageVolGetInfo()</code>.  <span
>> class="since">Since
> 
> I think it's better to mention "virsh vol-list $pool --details" instead
> of the
> API name here, as we did across the documents.  I'm fine if you keep it
> though.

The API name is more useful to anyone using bindings and not virsh.
I'll keep it with the API name.

>>
>> +VIR_ENUM_IMPL(virStorageVol,
>> +              VIR_STORAGE_VOL_LAST,
>> +              "file", "block", "dir", "network")
> 
> Here the "network-dir" type is not included though. So I guess you want
> to push this patch before the glusterfs series.
> 
> ACK if the "network-dir" is removed.

Indeed, I messed up in my rebasing.  network-dir is not supposed to be
present in this patch.  v2 coming up.

-- 
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 621 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20131125/0b443d93/attachment-0001.sig>


More information about the libvir-list mailing list