OpenVZ Forum


Home » Mailing lists » Devel » [PATCH] /proc/vmstat is visible inside vps
[PATCH] /proc/vmstat is visible inside vps [message #531] Thu, 15 December 2005 12:42 Go to next message
xemul is currently offline  xemul
Messages: 248
Registered: November 2005
Senior Member
Patch from Pavel (xemul@):
Alow /proc/vmstat entry inside vps.
Bug #56186

--- ./kernel/veowner.c.vmstt 2005-12-14 16:24:14.000000000 +0300
+++ ./kernel/veowner.c 2005-12-15 15:35:17.321904352 +0300
@@ -97,6 +97,7 @@ static void prepare_proc_misc(void)
"vz",
"user_beancounters",
"cmdline",
+ "vmstat",
NULL,
};
char **p;
Re: [PATCH] /proc/vmstat is visible inside vps [message #533 is a reply to message #531] Thu, 15 December 2005 13:26 Go to previous message
xemul is currently offline  xemul
Messages: 248
Registered: November 2005
Senior Member
Patch from Pavel (xemul@):
Alow /proc/vmstat entry inside vps, but keep it empty.
Bug #56186


--- ./kernel/veowner.c.vmstt 2005-12-14 16:24:14.000000000 +0300
+++ ./kernel/veowner.c 2005-12-15 15:35:17.321904352 +0300
@@ -97,6 +97,7 @@ static void prepare_proc_misc(void)
"vz",
"user_beancounters",
"cmdline",
+ "vmstat",
NULL,
};
char **p;
--- ./mm/page_alloc.c.vmstt 2005-12-14 16:24:14.000000000 +0300
+++ ./mm/page_alloc.c 2005-12-15 16:22:02.789408464 +0300
@@ -1756,6 +1756,9 @@ static void *vmstat_start(struct seq_fil
{
struct page_state *ps;

+ if (!ve_is_super(get_exec_env()))
+ return NULL;
+
if (*pos >= ARRAY_SIZE(vmstat_text))
return NULL;
Previous Topic: [KERNEL COMMIT]: diff-ms-mm-pageprivate-20051213
Next Topic: [KERNEL COMMIT]: diff-ve-procvmstat-20051215
Goto Forum:
  


Current Time: Mon Mar 04 21:37:56 GMT 2024

Total time taken to generate the page: 0.02161 seconds