On Fri, Jan 04, 2013 at 04:35:48PM +0100, pille wrote:
> since some weeks i've noticed that filesizes for new files differ in the
> outputs of ls and du.
> notice the different count of blocks.
I wouldn't worry too much about a difference in the block count...
> # sha1sum file copy
> 23071d0b4caeeb4aa9579283ca67c7c13e66b8ee file
> 23071d0b4caeeb4aa9579283ca67c7c13e66b8ee copy
...as long as the checksum is correct!
If you want to dig further to understand it better, check out xfs_bmap. This
will print out the block map for each file and you can see the differences in
allocation. You might be seeing some speculative allocation past eof in the
block count that has not yet been cleaned up. Probably nothing to worry about.