[Libvirt-cim] [PATCH 1 of 2] Fix issue with VSMC enum
Dan Smith
danms at us.ibm.com
Thu Nov 29 03:49:52 UTC 2007
KR> -
KR> - s = get_vsm_cap(_BROKER, ref, &inst);
KR> + char hostname[256] = {0};
KR> +
KR> + if (gethostname(hostname, sizeof(hostname) - 1) != 0)
KR> + strcpy(hostname, "unknown");
KR> +
KR> + s = get_vsm_cap(_BROKER, ref, hostname, &inst);
This needs to be a call into the HostSystem provider. Right now, the
name of the hostname *is* the hostname, but if we rely on other
existing instrumentation for the host system, we might break here.
The purpose of Virt_HostSystem was to be a placeholder so we wouldn't
need to change several other providers if we changed where we get the
host system information from.
--
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/20071128/3163d934/attachment.sig>
More information about the Libvirt-cim
mailing list