[Libvirt-cim] [PATCH 0 of 9] Reorganized association provider registration

Dan Smith danms at us.ibm.com
Mon Dec 3 15:45:55 UTC 2007


HE> The association provider was registered for each subclass with a
HE> different name. That caused duplicated instances as the same
HE> provider gets called twice, but has no chance to figure out for
HE> which registration. 

It does, actually, if you use ASSOC_MATCH().  That was the little hack
we used to prevent duplicate entries while enumerating a CIM_Foo class
while we were not using connect_by_classname().  However, I think that
using the classname connection to prevent duplicates is better.  Some
care may be required in associations that do not have to connect to
libvirt.

HE> This patch set tries to fix it. Please review. Thanks.

I tested EAFP and it works for me.  I'll move on to test the rest, but
feedback from others would be good.

Thanks!

-- 
Dan Smith
IBM Linux Technology Center
Open Hypervisor Team
email: danms at us.ibm.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 188 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libvirt-cim/attachments/20071203/0dcefc7e/attachment.sig>


More information about the Libvirt-cim mailing list