All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jan Kasprzak <kas@informatics.muni.cz>
To: Marcelo Tosatti <marcelo@conectiva.com.br>
Cc: Andries Brouwer <aebr@win.tue.nl>,
	linux-kernel@vger.kernel.org, hch@infradead.org
Subject: Re: 2.4.20-pre11 /proc/partitions read
Date: Wed, 23 Oct 2002 10:36:16 +0200	[thread overview]
Message-ID: <20021023103616.B20511@fi.muni.cz> (raw)
In-Reply-To: <Pine.LNX.4.44L.0210221609260.7060-100000@freak.distro.conectiva>; from marcelo@conectiva.com.br on Tue, Oct 22, 2002 at 04:10:02PM -0200

Marcelo Tosatti wrote:
: 
: 
: 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.

	Yes I have CONFIG_BLK_STATS (and I need this to know
when my server gets overloaded).
: 
: Its not forced behaviour. Its a config option and its defaulted to off.
: 
: Some people want it.

	Yes.

	Maybe it should be documented that you have to read it
in a single read() syscall with big enough buffer.

-Yenya

-- 
| Jan "Yenya" Kasprzak  <kas at {fi.muni.cz - work | yenya.net - private}> |
| GPG: ID 1024/D3498839      Fingerprint 0D99A7FB206605D7 8B35FCDE05B18A5E |
| http://www.fi.muni.cz/~kas/   Czech Linux Homepage: http://www.linux.cz/ |
|-- If you start doing things because you hate others and want to screw  --|
|-- them over the end result is bad.   --Linus Torvalds to the BBC News  --|

  reply	other threads:[~2002-10-23  8:30 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-10-22 14:19 2.4.20-pre11 /proc/partitions read Jan Kasprzak
2002-10-22 15:10 ` Richard B. Johnson
2002-10-22 16:14   ` Jan Kasprzak
2002-10-22 18:40 ` Andries Brouwer
2002-10-22 18:10   ` Marcelo Tosatti
2002-10-23  8:36     ` Jan Kasprzak [this message]
2002-10-22 18:45   ` Christoph Hellwig
2002-10-22 18:59     ` Andries Brouwer
2002-10-22 18:26       ` Marcelo Tosatti
2002-10-22 19:32         ` Andries Brouwer
2002-10-22 19:35           ` Christoph Hellwig
2002-10-22 19:58             ` Andries Brouwer
2002-10-22 20:32               ` Alan Cox
2002-10-23  8:39             ` Jan Kasprzak
2002-10-23  9:13     ` Jan Kasprzak

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20021023103616.B20511@fi.muni.cz \
    --to=kas@informatics.muni.cz \
    --cc=aebr@win.tue.nl \
    --cc=hch@infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=marcelo@conectiva.com.br \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.