[Libvirt-cim] [PATCH 2 of 2] Add lookup of domain to make sure it exists as part of the check

Dan Smith danms at us.ibm.com
Wed Mar 12 13:54:42 UTC 2008


HE> Sorry, I know my comment comes a bit late, as the patch is already
HE> checked in.

That's okay :)

HE> I think this check is not enough. To check if a certain
HE> Xen/KVM_ComputerSystem or the Xen/KVM_HostSystem object path is
HE> correct specified by the client, you should use the corresponding
HE> (new ;)) interfaces (get_domain_by_ref, get_host), as they check
HE> the complete object path for correctness. It raises the number of
HE> cycles a bit, but makes the behavior of all providers
HE> consistent.

Well, the reason I added this is twofold: (1) because of the fact that
we would fail late if the domain doesn't exist, and (2) because I use
the dom pointer later for the external check code.

So, I'm more than happy to add in the more rigorous checks, but we
need this part as well :)

-- 
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/20080312/5462be59/attachment.sig>


More information about the Libvirt-cim mailing list