[docs] [issue12350] Improve stat_result.st_blocks and st_blksize documentation

Lars Wirzenius report at bugs.python.org
Fri Jun 17 20:42:10 CEST 2011


Lars Wirzenius <liw at liw.fi> added the comment:

Right. So I guess at least the following should be changed (I'll make an actual patch once there's consensus):

* st_blocks should say that the size of block is often 512 bytes, but that's not guaranteed, and there's no way to know for sure

* st_blksize should say it is size of efficient I/O, and is unrelated to st_blocks

Should there be something more? Ideally, there should be a way to find out the size of blocks for st_blocks, but I don't know how to figure that out (though probably code from GNU's du could be borrowed).

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue12350>
_______________________________________


More information about the docs mailing list