[Libvirt-cim] [PATCH 17 of 29] ResourceAllocationFromPool: OpenWbem support

Heidi Eckhart heidieck at linux.vnet.ibm.com
Thu Dec 20 19:34:37 UTC 2007


# HG changeset patch
# User Heidi Eckhart <heidieck at linux.vnet.ibm.com>
# Date 1198182621 -3600
# Node ID 1c5cfb9f21a045788eac5b090b7a64ab31d79541
# Parent  7eaa38dd006eced987f5d946306a4b80ff3b3fc0
ResourceAllocationFromPool: OpenWbem support

- rename provider from ResourceAllocationFromPoolProvider to ResourceAllocationFromPool
- update registration file with new providername
- add "Provider" qualifier to mof
Signed-off-by: Heidi Eckhart <heidieck at linux.vnet.ibm.com>

diff -r 7eaa38dd006e -r 1c5cfb9f21a0 schema/ResourceAllocationFromPool.mof
--- a/schema/ResourceAllocationFromPool.mof	Thu Dec 20 21:30:21 2007 +0100
+++ b/schema/ResourceAllocationFromPool.mof	Thu Dec 20 21:30:21 2007 +0100
@@ -1,11 +1,15 @@
 // Copyright IBM Corp. 2007
 
-[Association]
+[Association,
+ Provider("cmpi::Virt_ResourceAllocationFromPool")
+]
 class Xen_ResourceAllocationFromPool : CIM_ResourceAllocationFromPool
 {
 };
 
-[Association]
+[Association,
+ Provider("cmpi::Virt_ResourceAllocationFromPool")
+]
 class KVM_ResourceAllocationFromPool : CIM_ResourceAllocationFromPool
 {
 };
diff -r 7eaa38dd006e -r 1c5cfb9f21a0 schema/ResourceAllocationFromPool.registration
--- a/schema/ResourceAllocationFromPool.registration	Thu Dec 20 21:30:21 2007 +0100
+++ b/schema/ResourceAllocationFromPool.registration	Thu Dec 20 21:30:21 2007 +0100
@@ -1,4 +1,4 @@
 # Copyright IBM Corp. 2007
 # Classname Namespace ProviderName ProviderModule ProviderTypes
-Xen_ResourceAllocationFromPool root/virt Virt_ResourceAllocationFromPoolProvider Virt_ResourceAllocationFromPool association
-KVM_ResourceAllocationFromPool root/virt Virt_ResourceAllocationFromPoolProvider Virt_ResourceAllocationFromPool association
\ No newline at end of file
+Xen_ResourceAllocationFromPool root/virt Virt_ResourceAllocationFromPool Virt_ResourceAllocationFromPool association
+KVM_ResourceAllocationFromPool root/virt Virt_ResourceAllocationFromPool Virt_ResourceAllocationFromPool association
\ No newline at end of file
diff -r 7eaa38dd006e -r 1c5cfb9f21a0 src/Virt_ResourceAllocationFromPool.c
--- a/src/Virt_ResourceAllocationFromPool.c	Thu Dec 20 21:30:21 2007 +0100
+++ b/src/Virt_ResourceAllocationFromPool.c	Thu Dec 20 21:30:21 2007 +0100
@@ -290,7 +290,11 @@ static struct std_assoc *handlers[] = {
         NULL
 };
 
-STDA_AssocMIStub(, Virt_ResourceAllocationFromPoolProvider, _BROKER, libvirt_cim_init(), handlers);
+STDA_AssocMIStub(, 
+                 Virt_ResourceAllocationFromPool,
+                 _BROKER,
+                 libvirt_cim_init(),
+                 handlers);
 
 /*
  * Local Variables:




More information about the Libvirt-cim mailing list