]> git.ipfire.org Git - thirdparty/libvirt.git/commit
virsh: Create macros for common "vol" options
authorJohn Ferlan <jferlan@redhat.com>
Sat, 9 Jan 2016 13:36:31 +0000 (08:36 -0500)
committerJohn Ferlan <jferlan@redhat.com>
Mon, 11 Jan 2016 23:14:01 +0000 (18:14 -0500)
commit5b436359a825713975b1b39e597a02910cf57f90
tree920ecd1060d8999eb6337d8df5b7e8ddbab7151b
parentfebf69b5e9fa5cff1baea8ed2c6da13d5cb32722
virsh: Create macros for common "vol" options

Rather than continually cut-n-paste the strings into each command,
create common macros to be used generically.  Replace the more commonly
used "vol" option with a macro. This also adjusts 2 commands that
didn't have the correct helpstr - 'vol-create-from' and 'vol-clone'.
Both are described in the man page as taking vol, path, or key and
the code uses the virshCommandOptVol instead of virshCommandOptVolBy.

Signed-off-by: John Ferlan <jferlan@redhat.com>
tools/virsh-volume.c