Re: 2.4.20-pre11 /proc/partitions read

From: Andries Brouwer (
Date: Tue Oct 22 2002 - 13:40:34 EST

On Tue, Oct 22, 2002 at 04:19:57PM +0200, Jan Kasprzak wrote:

> I.e. if you read the /proc/partitions in single read() call,
> it gets read OK. However, if you read() with smaller-sized blocks,
> you get the truncated contents.

Having statistics in /proc/partitions leads to such problems.
Make sure you do not ask for them.

--- Documentation/ Mon Oct 14 01:12:13 2002
+++ Documentation/ Tue Oct 22 20:30:39 2002
@@ -561,6 +561,8 @@
   This is required for the full functionality of sar(8) and interesting
   if you want to do performance tuning, by tweaking the elevator, e.g.
+ On the other hand, it will cause random and mysterious failures for
+ fdisk, mount and other programs reading /proc/partitions.
   If unsure, say N.

(this is about CONFIG_BLK_STATS).


[I still do not understand how hch can want to add this cruft to
/proc/partitions, and how marcelo can accept it.
If some vendor made this mistake, why force it on the rest of
the world? It is bad for RedHat users, and worse for all others.]
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

This archive was generated by hypermail 2b29 : Wed Oct 23 2002 - 22:00:59 EST