[libvirt] [PATCH v3 07/14] virsh: Create macro for common "current" option

Andrea Bolognani abologna at redhat.com
Mon Jan 11 12:50:41 UTC 2016


On Sat, 2016-01-09 at 08:36 -0500, John Ferlan wrote:
> Rather than continually cut-n-paste the strings into each command,
> create a common macro to be used generically.  Note that not all
> '{.name = "current",' entries are replaced, just those that have the
> common .help string of "affect current domain".
> 
> Non replaced instances are unique to the command.
> 
> Signed-off-by: John Ferlan <jferlan at redhat.com>
> ---
>  tools/virsh-domain.c | 111 +++++++++++++--------------------------------------
>  1 file changed, 27 insertions(+), 84 deletions(-)

Same comments as for the 'config' option with regard to the 'dommemstat'
command.

Cheers.

-- 
Andrea Bolognani
Software Engineer - Virtualization Team




More information about the libvir-list mailing list