Re: du vs. ls

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hey Pille,

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.

Hmm...

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

Regards,
	Ben

_______________________________________________
xfs mailing list
xfs@xxxxxxxxxxx
http://oss.sgi.com/mailman/listinfo/xfs


[Index of Archives]     [Linux XFS Devel]     [Linux Filesystem Development]     [Filesystem Testing]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux