]> xenbits.xensource.com Git - libvirt.git/commit
virsh: Add build flags to pool-create[-as] and pool-start
authorJohn Ferlan <jferlan@redhat.com>
Wed, 25 Nov 2015 14:51:51 +0000 (09:51 -0500)
committerJohn Ferlan <jferlan@redhat.com>
Thu, 17 Dec 2015 16:56:18 +0000 (11:56 -0500)
commite1937354508938231ffa4d708f0e742f4d90e076
tree6c8013cd72cebb7015a82457586b06bb650390aa
parent5372d49b11002b402cfbed2a08ecc4384c11448f
virsh: Add build flags to pool-create[-as] and pool-start

https://bugzilla.redhat.com/show_bug.cgi?id=830056

Utilize recently added VIR_STORAGE_POOL_CREATE_WITH_BUILD* flags in
order to pass the flags along to the virStoragePoolCreateXML and
virStoragePoolCreate API's.

This affects the 'virsh pool-create', 'virsh pool-create-as', and
'virsh pool-start' commands.  While it could be argued that pool-start
doesn't need the flags, they could prove useful for someone trying to
do one command build --overwrite and start command processing or
essentially starting with a clean slate.

NB:
This patch is loosely based upon code originally authored by Osier
Yang that were not reviewed and pushed, see:

https://www.redhat.com/archives/libvir-list/2012-July/msg00497.html
tools/virsh-pool.c
tools/virsh.pod