public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Hans Reiser <reiser@namesys.com>
To: Andries Brouwer <aebr@win.tue.nl>
Cc: Linus Torvalds <torvalds@transmeta.com>,
	Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH]  comments on st_blksize and f_bsize for 2.5
Date: Mon, 24 Feb 2003 15:56:17 +0300	[thread overview]
Message-ID: <3E5A1671.5060202@namesys.com> (raw)
In-Reply-To: <20030224102009.GB14024@win.tue.nl>

Andries Brouwer wrote:

>On Tue, Feb 18, 2003 at 08:25:40PM +0300, Hans Reiser wrote:
>
>  
>
>>Since a few applications, and the linux manpages, seem to not really 
>>understand what these are for, they need comments like SUSv2 has for 
>>them.  A larger discussion will be provided if requested.
>>    
>>
>
>  
>
>>+	unsigned int	st_blksize;	/* Optimal I/O size */
>>    
>>
>
>  
>
>>+	int f_bsize;	/* Filesystem blocksize */
>>    
>>
>
>Yes, discussion - I wouldnt mind seeing details.
>
>The trivial part is st_blksize: all agree.
>Quoting the man page:
>
>       The value st_blksize gives the "preferred" blocksize
>       for efficient file system I/O.  (Writing to a file in
>       smaller chunks may cause an inefficient read-modify-rewrite.)
>
Oh my, I must confess that we read just the comment on the struct in the 
manpage:

                 blksize_t     st_blksize;  /* blocksize for filesystem 
I/O */

and not the text below it which is correct if less clear than it could be.

How about using our comment on the struct on the manpage as it is more 
clear? 


How about instead saying in the manpage body:

Historically, st_blksize was the block size, and applications would do 
I/O's at that size for greater efficiency of IO.  Now, after some 
evolution, st_blksize represents the most efficient size of an IO to 
that file, and no longer always represents the actual size of blocks in 
the underlying filesystem.


Or you could even use the longer comment on the struct, but then I have 
always liked lng comments more than most....;-)

-- 
Hans



      parent reply	other threads:[~2003-02-24 13:05 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-02-18 17:25 [PATCH] comments on st_blksize and f_bsize for 2.5 Hans Reiser
2003-02-24 10:20 ` Andries Brouwer
2003-02-24 11:10   ` Oleg Drokin
2003-02-24 12:56   ` Hans Reiser [this message]

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=3E5A1671.5060202@namesys.com \
    --to=reiser@namesys.com \
    --cc=aebr@win.tue.nl \
    --cc=linux-kernel@vger.kernel.org \
    --cc=torvalds@transmeta.com \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox