[Libvirt-cim] [PATCH] Add PoolID into DevicePool instances

Dan Smith danms at us.ibm.com
Wed May 7 15:24:20 UTC 2008


# HG changeset patch
# User Dan Smith <danms at us.ibm.com>
# Date 1210173475 25200
# Node ID a63bdadd9f6739b78b9f09f5483bb87b315a0953
# Parent  d21b04d0ee82ac63d4ceb0cfc2446fee9fd50ac7
Add PoolID into DevicePool instances

Signed-off-by: Dan Smith <danms at us.ibm.com>

diff -r d21b04d0ee82 -r a63bdadd9f67 src/Virt_DevicePool.c
--- a/src/Virt_DevicePool.c	Wed May 07 07:25:09 2008 -0700
+++ b/src/Virt_DevicePool.c	Wed May 07 08:17:55 2008 -0700
@@ -600,6 +600,9 @@ static CMPIStatus mempool_instance(virCo
         CMSetProperty(inst, "InstanceID",
                       (CMPIValue *)id, CMPI_chars);
 
+        CMSetProperty(inst, "PoolID",
+                      (CMPIValue *)id, CMPI_chars);
+
         CMSetProperty(inst, "ResourceType",
                       (CMPIValue *)&type, CMPI_uint16);
 
@@ -635,6 +638,9 @@ static CMPIStatus procpool_instance(virC
         set_units(inst, "Processors");
 
         CMSetProperty(inst, "InstanceID",
+                      (CMPIValue *)id, CMPI_chars);
+
+        CMSetProperty(inst, "PoolID",
                       (CMPIValue *)id, CMPI_chars);
 
         CMSetProperty(inst, "ResourceType",
@@ -690,6 +696,8 @@ static CMPIStatus _netpool_for_network(s
 
         CMSetProperty(inst, "InstanceID",
                       (CMPIValue *)str, CMPI_chars);
+        CMSetProperty(inst, "PoolID",
+                      (CMPIValue *)str, CMPI_chars);
         free(str);
 
         bridge = virNetworkGetBridgeName(network);
@@ -786,6 +794,9 @@ static CMPIInstance *diskpool_from_path(
                 return NULL;
 
         CMSetProperty(inst, "InstanceID",
+                      (CMPIValue *)poolid, CMPI_chars);
+
+        CMSetProperty(inst, "PoolID",
                       (CMPIValue *)poolid, CMPI_chars);
 
         CMSetProperty(inst, "ResourceType",




More information about the Libvirt-cim mailing list