[Libvirt-cim] [PATCH 1 of 2] Add structure to hold info about new resources to be added to resource pools

Kaitlin Rupert kaitlin at linux.vnet.ibm.com
Mon Aug 10 20:55:47 UTC 2009


# HG changeset patch
# User Kaitlin Rupert <karupert at us.ibm.com>
# Date 1249937577 25200
# Node ID aa8fb78cb7fc77496f962e80b2ff2468f91a6625
# Parent  2de7d9bdb9af3414ddc01f28d7a007d6c3d19bbc
Add structure to hold info about new resources to be added to resource pools

Signed-off-by: Kaitlin Rupert <karupert at us.ibm.com>

diff -r 2de7d9bdb9af -r aa8fb78cb7fc libxkutil/pool_parsing.h
--- a/libxkutil/pool_parsing.h	Fri Aug 07 15:53:57 2009 -0700
+++ b/libxkutil/pool_parsing.h	Mon Aug 10 13:52:57 2009 -0700
@@ -64,6 +64,24 @@
         char *id;
 };
 
+struct storage_vol {
+        enum {VOL_FORMAT_UNKNOWN,
+              VOL_FORMAT_RAW} format_type;
+        char *vol_name;
+        char *path;
+        uint16_t alloc;
+        uint16_t cap;
+        char *cap_units;
+};
+
+struct virt_pool_res {
+        uint16_t type;
+        union {
+                struct storage_vol storage_vol;
+        } res;
+        char *pool_id;
+};
+
 void cleanup_virt_pool(struct virt_pool **pool);
 
 int get_pool_from_xml(const char *xml, struct virt_pool *pool, int type);




More information about the Libvirt-cim mailing list