![]() | |||||||||||||
Messages in this thread Patch in this message |
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 12:38 [W:0.388 / U:8.420 seconds] ©2003-2008 Jasper Spaans | |||||||||||||