[Libvirt-cim] [PATCH 5 of 9] RAFP: Provider registered per subclass

Heidi Eckhart heidieck at linux.vnet.ibm.com
Mon Dec 3 11:37:02 UTC 2007


# HG changeset patch
# User Heidi Eckhart <heidieck at linux.vnet.ibm.com>
# Date 1196685311 -3600
# Node ID 9fac31df90d1ce6279aff869ad9da51b411223e9
# Parent  495e8bdd4e1415b253fd64f0527760ad11b75580
RAFP: Provider registered per subclass

The provider was registered for each subclass with a different
name. That caused duplicated instances as the same provider gets
called twice, but has no chance to figure out for which registration.
Signed-off-by: Heidi Eckhart <heidieck at linux.vnet.ibm.com>

diff -r 495e8bdd4e14 -r 9fac31df90d1 schema/ResourceAllocationFromPool.registration
--- a/schema/ResourceAllocationFromPool.registration	Mon Dec 03 13:35:10 2007 +0100
+++ b/schema/ResourceAllocationFromPool.registration	Mon Dec 03 13:35:11 2007 +0100
@@ -1,4 +1,4 @@
 # Copyright IBM Corp. 2007
 # Classname Namespace ProviderName ProviderModule ProviderTypes
-Xen_ResourceAllocationFromPool root/virt Xen_ResourceAllocationFromPoolProvider Virt_ResourceAllocationFromPool association
-KVM_ResourceAllocationFromPool root/virt KVM_ResourceAllocationFromPoolProvider Virt_ResourceAllocationFromPool association
\ No newline at end of file
+Xen_ResourceAllocationFromPool root/virt Virt_ResourceAllocationFromPoolProvider Virt_ResourceAllocationFromPool association
+KVM_ResourceAllocationFromPool root/virt Virt_ResourceAllocationFromPoolProvider Virt_ResourceAllocationFromPool association
\ No newline at end of file
diff -r 495e8bdd4e14 -r 9fac31df90d1 src/Virt_ResourceAllocationFromPool.c
--- a/src/Virt_ResourceAllocationFromPool.c	Mon Dec 03 13:35:10 2007 +0100
+++ b/src/Virt_ResourceAllocationFromPool.c	Mon Dec 03 13:35:11 2007 +0100
@@ -305,8 +305,7 @@ static struct std_assoc *handlers[] = {
         NULL
 };
 
-STDA_AssocMIStub(, Xen_ResourceAllocationFromPoolProvider, _BROKER, libvirt_cim_init(), handlers);
-STDA_AssocMIStub(, KVM_ResourceAllocationFromPoolProvider, _BROKER, libvirt_cim_init(), handlers);
+STDA_AssocMIStub(, Virt_ResourceAllocationFromPoolProvider, _BROKER, libvirt_cim_init(), handlers);
 
 /*
  * Local Variables:




More information about the Libvirt-cim mailing list