Re: [PATCH 2/2] storage: Introduce --inactive for pool-dumpxml

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 25.06.2012 12:38, Daniel P. Berrange wrote:
> On Mon, Jun 25, 2012 at 12:32:48PM +0200, Michal Privoznik wrote:
>> Storage is one of the last domains in libvirt where we don't fully
>> utilize inactive and live XML. Okay, it might be because we don't
>> have support for that. So implement such support. However, we need
>> to fallback when talking to old daemon which doesn't support this
>> new flag.
>> ---
>>  src/storage/storage_driver.c |   10 ++++++++--
>>  tools/virsh.c                |   24 ++++++++++++++++++++++--
>>  tools/virsh.pod              |    4 +++-
>>  3 files changed, 33 insertions(+), 5 deletions(-)
>>
>> diff --git a/src/storage/storage_driver.c b/src/storage/storage_driver.c
>> index 3b95c70..0b65369 100644
>> --- a/src/storage/storage_driver.c
>> +++ b/src/storage/storage_driver.c
>> @@ -960,9 +960,10 @@ storagePoolGetXMLDesc(virStoragePoolPtr obj,
>>  {
>>      virStorageDriverStatePtr driver = obj->conn->storagePrivateData;
>>      virStoragePoolObjPtr pool;
>> +    virStoragePoolDefPtr def;
>>      char *ret = NULL;
>>  
>> -    virCheckFlags(0, NULL);
>> +    virCheckFlags(VIR_DOMAIN_XML_INACTIVE, NULL);
> 
> We can't just use the VIR_DOMAIN_XML_INACTIVE flag - we
> must have a VIR_STORAGE_XML_INACTIVE flag here.
> 
> Daniel
> 

While I would fundamentally agree, unfortunately we've already
documented that flags passed to virStoragePoolGetXMLDesc() are typeof
virDomainXMLFlags;

On the other hand, there currently are no flags yet, so nobody uses this
nowadays. So let me resend with VIR_STORAGE_XML_INACTIVE.

Michal

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list


[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]