Re: nfs fstat st_blocks overreporting

From: Frank Cusack
Date: Mon Oct 13 2003 - 20:06:16 EST


On Mon, Oct 13, 2003 at 11:29:26AM -0400, Trond Myklebust wrote:
> >>>>> " " == Frank Cusack <fcusack@xxxxxxxxxxx> 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...

I'm an idiot.

/fc
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/