Re: [PATCH] openvz: wire up more node information functions

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 2012年04月17日 05:53, Eric Blake wrote:
On 04/16/2012 01:00 AM, Guido Günther wrote:
On Mon, Apr 16, 2012 at 09:48:38AM +0800, Osier Yang wrote:
On 2012年04月15日 04:20, Guido Günther wrote:
in detail nodeGetCPUStats, nodeGetMemoryStats, nodeGetCellsFreeMemory
and nodeGetFreeMemory
---
  src/openvz/openvz_driver.c |    4 ++++
  1 file changed, 4 insertions(+)

diff --git a/src/openvz/openvz_driver.c b/src/openvz/openvz_driver.c
index 3b2ffea..41fd8e4 100644
--- a/src/openvz/openvz_driver.c
+++ b/src/openvz/openvz_driver.c
@@ -1704,6 +1704,10 @@ static virDriver openvzDriver = {
      .version = openvzGetVersion, /* 0.5.0 */
      .getMaxVcpus = openvzGetMaxVCPUs, /* 0.4.6 */
      .nodeGetInfo = nodeGetInfo, /* 0.3.2 */
+    .nodeGetCPUStats = nodeGetCPUStats, /* 0.9.11 */
+    .nodeGetMemoryStats = nodeGetMemoryStats, /* 0.9.11 */
+    .nodeGetCellsFreeMemory = nodeGetCellsFreeMemory, /* 0.9.11 */
+    .nodeGetFreeMemory = nodeGetFreeMemory, /* 0.9.11 */
      .getCapabilities = openvzGetCapabilities, /* 0.4.6 */
      .listDomains = openvzListDomains, /* 0.3.1 */
      .numOfDomains = openvzNumDomains, /* 0.3.1 */

ACK
Pushed. Thanks,

This should be 0.9.12, not 0.9.11.  Can you please push the fixup patch?


I pushed the fix with attached patch.

Regards,
Osier
>From bf8f1b3228f01f268caae3d5dbf0ba30a02257d8 Mon Sep 17 00:00:00 2001
From: Osier Yang <jyang@xxxxxxxxxx>
Date: Tue, 17 Apr 2012 10:08:53 +0800
Subject: [PATCH] openvz: Correct the comments for new node APIs

It should be 0.9.12 instead of 0.9.11
---
 src/openvz/openvz_driver.c |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/openvz/openvz_driver.c b/src/openvz/openvz_driver.c
index 9d7897f..0451c22 100644
--- a/src/openvz/openvz_driver.c
+++ b/src/openvz/openvz_driver.c
@@ -1681,10 +1681,10 @@ static virDriver openvzDriver = {
     .version = openvzGetVersion, /* 0.5.0 */
     .getMaxVcpus = openvzGetMaxVCPUs, /* 0.4.6 */
     .nodeGetInfo = nodeGetInfo, /* 0.3.2 */
-    .nodeGetCPUStats = nodeGetCPUStats, /* 0.9.11 */
-    .nodeGetMemoryStats = nodeGetMemoryStats, /* 0.9.11 */
-    .nodeGetCellsFreeMemory = nodeGetCellsFreeMemory, /* 0.9.11 */
-    .nodeGetFreeMemory = nodeGetFreeMemory, /* 0.9.11 */
+    .nodeGetCPUStats = nodeGetCPUStats, /* 0.9.12 */
+    .nodeGetMemoryStats = nodeGetMemoryStats, /* 0.9.12 */
+    .nodeGetCellsFreeMemory = nodeGetCellsFreeMemory, /* 0.9.12 */
+    .nodeGetFreeMemory = nodeGetFreeMemory, /* 0.9.12 */
     .getCapabilities = openvzGetCapabilities, /* 0.4.6 */
     .listDomains = openvzListDomains, /* 0.3.1 */
     .numOfDomains = openvzNumDomains, /* 0.3.1 */
-- 
1.7.7.3

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list

[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]