(0000652)
landley
11-03-05 14:58
|
No, it doesn't. Did you actually see this bug, or try out your own patch? From the lstat man page:
The value st_blocks gives the size of the file in 512-byte blocks.
(This may be smaller than st_size/512 e.g. when the file has holes.)
The value st_blksize gives the "preferred" blocksize for efficient file
system I/O. (Writing to a file in smaller chunks may cause an ineffi-
cient read-modify-rewrite.)
I applied your patch and tested, and it gave the wrong values. Reverting it gave the right values. |