[Libvirt-cim] [PATCH 3 of 3] Add diskpool support to ResourceAllocationFromPool

Dan Smith danms at us.ibm.com
Fri Oct 26 14:43:29 UTC 2007


# HG changeset patch
# User Dan Smith <danms at us.ibm.com>
# Date 1193408083 25200
# Node ID addd6dbbd0464d33949466e3ff1f15e926d67cd1
# Parent  ff6c1f00f1789dfdadbacb925d6ae3314db42ae5
Add diskpool support to ResourceAllocationFromPool

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

diff -r ff6c1f00f178 -r addd6dbbd046 src/Virt_ResourceAllocationFromPool.c
--- a/src/Virt_ResourceAllocationFromPool.c	Fri Oct 26 07:13:26 2007 -0700
+++ b/src/Virt_ResourceAllocationFromPool.c	Fri Oct 26 07:14:43 2007 -0700
@@ -201,6 +201,11 @@ static CMPIStatus pool_to_rasd(const CMP
                                 NAMESPACE(ref),
                                 poolid,
                                 list);
+        else if (STARTS_WITH(poolid, "DiskPool"))
+                rasds_from_pool(CIM_RASD_TYPE_DISK,
+                                NAMESPACE(ref),
+                                poolid,
+                                list);
         else {
                 cu_statusf(_BROKER, &s,
                            CMPI_RC_ERR_FAILED,




More information about the Libvirt-cim mailing list