[libvirt] [PATCH 2/3] storage: New flags to allow building the pool while creating it
jyang at redhat.com
Tue Jul 24 13:31:11 UTC 2012
On 2012年07月24日 17:53, Peter Krempa wrote:
> On 07/11/12 16:27, Osier Yang wrote:
>> We see the requirement for allowing to build the pool while pool-create
>> /pool-create-as/pool-start often in either upstream list or bugzilla,
>> so this patch introduces the flags virStoragePoolCreateFlags for
>> both virStoragePoolCreate and virStoragePoolCreateXML.
>> VIR_STORAGE_POOL_CREATE_WITH_BUILD allows to build the pool as
>> normal (for a filesystem pool, means only making the directory),
>> VIR_STORAGE_POOL_CREATE_WITH_BUILD_OVERWRITE allows to build
>> the pool with overwriting the existed pool data. Oppositely,
>> VIR_STORAGE_POOL_CREATE_WITH_BUILD_NO_OVERWRITE doesn't allow
>> to overwrite anything.
>> include/libvirt/libvirt.h.in | 13 +++++++++++++
>> src/libvirt.c | 4 ++--
>> src/storage/storage_driver.c | 38 ++++++++++++++++++++++++++++++++++++--
>> 3 files changed, 51 insertions(+), 4 deletions(-)
> This patch does not longer apply cleanly. Could you please repost a
> rebased version?
Sure, my fault. v2 is posted.
More information about the libvir-list