[PATCH 1/4] api: add virStoragePoolDefineFlags

Kristina Hanicova khanicov at redhat.com
Tue Aug 24 14:51:08 UTC 2021


Signed-off-by: Kristina Hanicova <khanicov at redhat.com>
---
 include/libvirt/libvirt-storage.h | 4 ++++
 src/libvirt-storage.c             | 2 +-
 2 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/include/libvirt/libvirt-storage.h b/include/libvirt/libvirt-storage.h
index 089e1e0bd1..b459fe3e8e 100644
--- a/include/libvirt/libvirt-storage.h
+++ b/include/libvirt/libvirt-storage.h
@@ -271,6 +271,10 @@ virStoragePoolPtr       virStoragePoolLookupByVolume    (virStorageVolPtr vol);
 virStoragePoolPtr       virStoragePoolLookupByTargetPath(virConnectPtr conn,
                                                          const char *path);
 
+typedef enum {
+    VIR_STORAGE_POOL_DEFINE_VALIDATE = 1 << 0, /* Validate the XML document against schema */
+} virStoragePoolDefineFlags;
+
 /*
  * Creating/destroying pools
  */
diff --git a/src/libvirt-storage.c b/src/libvirt-storage.c
index 2a7cdca234..5ec61c7d99 100644
--- a/src/libvirt-storage.c
+++ b/src/libvirt-storage.c
@@ -589,7 +589,7 @@ virStoragePoolCreateXML(virConnectPtr conn,
  * virStoragePoolDefineXML:
  * @conn: pointer to hypervisor connection
  * @xml: XML description for new pool
- * @flags: extra flags; not used yet, so callers should always pass 0
+ * @flags: bitwise-OR of virStoragePoolDefineFlags
  *
  * Define an inactive persistent storage pool or modify an existing persistent
  * one from the XML description.
-- 
2.31.1




More information about the libvir-list mailing list