Re: [libvirt] [PATCH] [3/4] Implement managed save operations for qemu driver

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

 



On 04/02/2010 04:26 PM, Eric Blake wrote:
>> -static int qemudDomainSave(virDomainPtr dom,
>> -                           const char *path)
>> +static int qemudDomainSaveFlag(virDomainPtr dom, const char *path,
>> +                               int compressed)
> 
> Should that be bool compressed, since we are only using it as a binary?
>  Or are there plans to extend it in the future to allow choice between
> multiple acceptable compression algorithms, in which case it is better
> as an unsigned int?

No, it's definitely not a bool.  It's meant to take a number of different
arguments (like compressed-gzip, compressed-bzip2, etc).  So an unsigned
int seems better.

-- 
Chris Lalancette

--
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]