mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Trond Myklebust <trond.myklebust@fys.uio.no>
To: Frank Cusack <fcusack@fcusack.com>
Cc: Linus Torvalds <torvalds@osdl.org>, lkml <linux-kernel@vger.kernel.org>
Subject: nfs fstat st_blocks overreporting
Date: Mon, 13 Oct 2003 11:29:26 -0400	[thread overview]
Message-ID: <16266.50390.93346.47602@charged.uio.no> (raw)
In-Reply-To: <20031013075316.A16032@google.com>

>>>>> " " == Frank Cusack <fcusack@fcusack.com> writes:

     > While you know I disagree that s_blocksize should be wtmult
     > (ie, it is wtmult?wtmult:512 and I think it should be
     > MAX(rsize,wsize)), in any event the blocks used reporting is
     > incorrect in that it assumes a 512 byte blocksize.

Frank,

     man 2 stat

  i_blocks a.k.a. stat->st_blocks is _defined_ to be in 512byte
units. It bears no relation to the st_blksize. If you don't like that,
spec then by all means appeal to the POSIX committee that wrote
it. (You probably wouldn't be the first to do so)

  Pending the outcome of such an appeal, though, the patch must be
rejected...

Cheers,
  Trond

  reply	other threads:[~2003-10-13 15:29 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-10-13 14:53 Frank Cusack
2003-10-13 15:29 ` Trond Myklebust [this message]
2003-10-14  1:00   ` Frank Cusack
2003-10-13 16:23 ` Linus Torvalds

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=16266.50390.93346.47602@charged.uio.no \
    --to=trond.myklebust@fys.uio.no \
    --cc=fcusack@fcusack.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=torvalds@osdl.org \
    /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

all inboxes | Powered by JetHome®