Messages in this thread | | | Date | Tue, 22 Oct 2002 16:10:02 -0200 (BRST) | From | Marcelo Tosatti <> | Subject | Re: 2.4.20-pre11 /proc/partitions read |
| |
On Tue, 22 Oct 2002, Andries Brouwer wrote:
> 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/Configure.help~ Mon Oct 14 01:12:13 2002 > +++ Documentation/Configure.help 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). > > Andries > > > [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.]
Its not forced behaviour. Its a config option and its defaulted to off.
Some people want it.
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |