lkml.org 
[lkml]   [1997]   [Jan]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
SubjectRe: /proc/swaps in 2.1.24
Date
Hi Roy

> In my 2.1.24, 'cat /proc/swaps' appears to output /proc/mounts and
> not the expected swap statistics.
Confirmed! Fix:

--- linux/fs/proc/root.c~ Wed Jan 29 17:19:08 1997
+++ linux/fs/proc/root.c Wed Jan 29 17:19:18 1997
@@ -511,7 +511,7 @@
S_IFREG | S_IRUGO, 1, 0, 0,
};
static struct proc_dir_entry proc_root_swaps = {
- PROC_MTAB, 5, "swaps",
+ PROC_SWAP, 5, "swaps",
S_IFREG | S_IRUGO, 1, 0, 0,
};
static struct proc_dir_entry proc_root_profile = {
A typical "cut'n'paste" bug 8-))
--
Bye, Jojo

email:
work SCHMITZ_JOACHIM@Tandem.COM
home Joachim_Schmitz@D.maus.de

\
 
 \ /
  Last update: 2005-03-22 13:38    [W:0.021 / U:0.392 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site