[PATCH RFC 1/3] conf: Add flags to the storage pool source

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Add a flags argument to the storage pool source to handle allowing some
feature to be passed to the lower/backend for the purpose of executing
specific code paths or making decisions on algorithms.

Signed-off-by: John Ferlan <jferlan@xxxxxxxxxx>
---
 src/conf/storage_conf.h | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/src/conf/storage_conf.h b/src/conf/storage_conf.h
index ec59c17..bb6bcc7 100644
--- a/src/conf/storage_conf.h
+++ b/src/conf/storage_conf.h
@@ -198,6 +198,14 @@ struct _virStoragePoolSourceAdapter {
     } data;
 };
 
+/* Flags to be used in pool source for some feature or dependency of
+ * the source that the backends may need to know about in order to make
+ * decisions on how data is presented
+ */
+typedef enum {
+    VIR_STORAGE_POOL_SOURCE_USER_FRIENDLY_NAMES           = 1 << 0,
+} virStoragePoolSourceFlags;
+
 typedef struct _virStoragePoolSource virStoragePoolSource;
 typedef virStoragePoolSource *virStoragePoolSourcePtr;
 struct _virStoragePoolSource {
@@ -234,6 +242,9 @@ struct _virStoragePoolSource {
      * or lvm version, etc.
      */
     int format;
+
+    /* Pool specific flags */
+    unsigned int flags;  /* virStoragePoolSourceFlags */
 };
 
 typedef struct _virStoragePoolTarget virStoragePoolTarget;
-- 
2.5.0

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list



[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]