Re: /proc/swaps in 2.1.24

Joachim Schmitz (jojo@unixpc.dus.Tandem.COM)
Wed, 29 Jan 1997 17:21:56 +0100 (MET)


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