[Libvirt-cim] [PATCH] Add support for logical pools to SDC

Sharad Mishra snmishra at us.ibm.com
Fri Jun 26 23:07:19 UTC 2009


+1

Sharad Mishra
System x Enablement
Linux Technology Center
IBM


                                                                           
             Kaitlin Rupert                                                
             <kaitlin at linux.vn                                             
             et.ibm.com>                                                To 
             Sent by:                  libvirt-cim at redhat.com              
             libvirt-cim-bounc                                          cc 
             es at redhat.com                                                 
                                                                   Subject 
                                       [Libvirt-cim] [PATCH] Add support   
             06/24/2009 09:05          for logical pools to SDC            
             AM                                                            
                                                                           
                                                                           
             Please respond to                                             
                 List for                                                  
              discussion and                                               
              development of                                               
                libvirt CIM                                                
             <libvirt-cim at redh                                             
                  at.com>                                                  
                                                                           
                                                                           




# HG changeset patch
# User Kaitlin Rupert <karupert at us.ibm.com>
# Date 1245859136 25200
# Node ID 7e50d31dd6029a354469d8b1ade7b705f02b5e1c
# Parent  983e35ff6034988d958ec4425d3419906b5c516a
Add support for logical pools to SDC

There isn't much that needs to be done for logical pools.  The user will
need to specify the Path as something like:  "/dev/VolGroup01"

When calling CreateChildResourcePool(), the user will also need to specify
the ElementName as an existing LVM volume group, like: "VolGroup01". This
is
different from the other pools (which any name for ElementName can be
used).

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

diff -r 983e35ff6034 -r 7e50d31dd602 src/Virt_SettingsDefineCapabilities.c
--- a/src/Virt_SettingsDefineCapabilities.c            Wed Jun 24 08:55:51
2009 -0700
+++ b/src/Virt_SettingsDefineCapabilities.c            Wed Jun 24 08:58:56
2009 -0700
@@ -1239,12 +1239,13 @@
         CMPIInstance *inst;
         CMPIStatus s = {CMPI_RC_OK, NULL};
         const char *path = "/dev/null";
-        int type[5] = {DISK_POOL_DIR,
+        int type[6] = {DISK_POOL_DIR,
                        DISK_POOL_FS,
                        DISK_POOL_NETFS,
                        DISK_POOL_DISK,
-                       DISK_POOL_ISCSI};
-        int pool_types = 5;
+                       DISK_POOL_ISCSI,
+                       DISK_POOL_LOGICAL};
+        int pool_types = 6;
         int i;

         switch (template_type) {

_______________________________________________
Libvirt-cim mailing list
Libvirt-cim at redhat.com
https://www.redhat.com/mailman/listinfo/libvirt-cim
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/libvirt-cim/attachments/20090626/8e80e29a/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: graycol.gif
Type: image/gif
Size: 105 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libvirt-cim/attachments/20090626/8e80e29a/attachment.gif>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pic21919.gif
Type: image/gif
Size: 1255 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libvirt-cim/attachments/20090626/8e80e29a/attachment-0001.gif>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ecblank.gif
Type: image/gif
Size: 45 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libvirt-cim/attachments/20090626/8e80e29a/attachment-0002.gif>


More information about the Libvirt-cim mailing list