[libvirt] [PATCH 4/6] virsh: Create macro for "overwrite" and no-overwrite" options

John Ferlan jferlan at redhat.com
Wed Dec 16 13:44:50 UTC 2015



On 12/16/2015 08:35 AM, Peter Krempa wrote:
> On Wed, Dec 16, 2015 at 14:18:22 +0100, Michal Privoznik wrote:
>> On 25.11.2015 20:11, John Ferlan wrote:
>>> Although not currently used in more than one command, it soon will be
>>> so create a common macro to be used in the new command location.
>>>
>>> Additionally, add the ".flags = 0," for both to match the expections
>>> of the structure being predefined.
>>>
>>> Signed-off-by: John Ferlan <jferlan at redhat.com>
>>> ---
>>>  tools/virsh-pool.c | 24 ++++++++++++++++--------
>>>  1 file changed, 16 insertions(+), 8 deletions(-)
>>>
>>
>> ACK
> 
> I don't really fancy this one. It introduces the macro for a very
> uncommon option value. If it will be used more that 10 times it would
> make sense. For 2 or 3 uses it does not.
> 
> Peter
> 

So then in your opinion and using the same logic, patch 3 is also nixed?
This one will get used in patch 6.

Like I noted in the cover letter - I see value in having the macros and
I also see the pain (having to go look them up).

Adjusting the changes to remove/use commas is fine - just made the
initial cut-n-paste easier

John




More information about the libvir-list mailing list