[libvirt] [PATCH v3 06/14] virsh: Create macro for common "live" option

Andrea Bolognani abologna at redhat.com
Mon Jan 11 12:43:51 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 = "live",' entries are replaced, just those that have the
> common .help string of "affect running 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'
and 'change-media' commands.

Cheers.

-- 
Andrea Bolognani
Software Engineer - Virtualization Team




More information about the libvir-list mailing list