[libvirt] [PATCH] Add node prefix to virNodeGet(CPU|Memory)Stats structs and defines
Eric Blake
eblake at redhat.com
Wed Jun 15 13:52:13 UTC 2011
On 06/15/2011 07:40 AM, Matthias Bolte wrote:
> ---
> daemon/remote.c | 4 +-
> include/libvirt/libvirt.h.in | 99 ++++++++++++++++++++----------------------
> src/driver.h | 4 +-
> src/libvirt.c | 38 ++++++++--------
> src/nodeinfo.c | 40 ++++++++--------
> src/nodeinfo.h | 4 +-
> src/remote/remote_driver.c | 4 +-
> tools/virsh.c | 18 ++++----
> 8 files changed, 103 insertions(+), 108 deletions(-)
API change, but on an unreleased API. Now's the time to do it, if we
are in agreement :)
The change is correct coding-wise, but I have a technical concern
holding back my ack:
Is there any chance that we might later add an API that can query CPU
and Memory statistics of a domain, at which point, both
virNodeGetCPUStats and virNodeGetMemoryStats could share the same
vir{CPU,Memory}Stats structure with the theoretical virDomainGetCPUStats
and virDomainGetMemoryStats?
If so, then leaving things as-is for the common struct name makes sense.
If not, then the rename makes sense. Thoughts?
--
Eric Blake eblake at redhat.com +1-801-349-2682
Libvirt virtualization library http://libvirt.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 619 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20110615/cf517cb5/attachment-0001.sig>
More information about the libvir-list
mailing list