nfs fstat st_blocks overreporting

From: Trond Myklebust
Date: Mon Oct 13 2003 - 10:30:20 EST


>>>>> " " == 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...

Cheers,
Trond
-
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/