lkml.org 
[lkml]   [2003]   [Oct]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
Subjectnfs fstat st_blocks overreporting
From
>>>>> " " == 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
-
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/

\
 
 \ /
  Last update: 2005-03-22 13:49    [W:0.023 / U:0.048 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site