![](https://seccdn.libravatar.org/avatar/0ab7e02630bf8ea7396ee92940c8b594.jpg?s=120&d=mm&r=g)
On 01/23/2018 01:55 PM, jdd@dodin.org wrote:
sure, but never the less I have yet to understand why copies made with rsync are not identical :-(
they are - from the point of view of the content of the files, and with e.g. -HAXax option also from user/group/permission/hardlink/attributes point of view. Still, the file system may e.g. squeeze 10M of NULs inside a file and therefore store it differently. Therefore, du(1) without the --apparent-size option will show what the file system reports about the size of a file: $ truncate -s1T file $ ls -log file -rw-r--r-- 1 1099511627776 Jan 23 14:12 file $ du -h file 0 file $ du -h --apparent-size file 1.0T file It's just your expectation of du's output which does not match how things work. Misunderstandings like that are e.g. explained here: https://www.gnu.org/software/coreutils/faq/coreutils-faq.html#df-and-du-repo... Have a nice day, Berny -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org