[libvirt] Domain XML format using defined storage volume + RFC
Stefan de Konink
skinkie at xs4all.nl
Tue May 20 23:20:29 UTC 2008
Daniel P. Berrange schreef:
>>> and a volume can be either a file
>>> or a physical device, so fixing it to be 'phy:' is not correct.
>> How can we know if the volume is a file or a device?
>
> virStorageVolGetInfo() will tell you via the 'info' field of the struct
> it fills
As attached. I updated the 'typ' option.
>>> We also need to apply the reverse mapping when generating the XML. eg
>>> do a virStorageVolLookupByPath() to discover the volume/pool.
>> Mmm... that sounds not trivial... (I mean duplicate wise).
>
> This is true - until we merge all the XML processing for drivers together
> there will be a non-trivial bit of duplication
Not done yet... and I prefer the last thing to be a different patch.
Stefan
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: pool.patch
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20080521/49f1c6dc/attachment-0001.ksh>
More information about the libvir-list
mailing list