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:
On 04/02/2010 01:56 PM, Daniel Veillard wrote:
+static int
+qemuDomainManagedSave(virDomainPtr dom,
+                      unsigned int flags ATTRIBUTE_UNUSED)
No - for future compability, we NEED to check that flags==0 or fail now.
  Otherwise, a future version, where flags has meaning, will mistakenly
think that our older version can honor those flags.

That makes sense, but there's a lot of precedence to the contrary already in the code:

find . -name \*.c | xargs grep "flags ATTRIBUTE_UNUSED" | wc
       155     832   14106

(some of these are probably false positives, but still...)

Sounds like you're volunteering for a global cleanup ;-)

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