Le 23/01/2018 à 14:18, Bernhard Voelker a écrit :
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.
including with identical checksum!
Therefore, du(1) without the --apparent-size option will show what the file system reports about the size of a file:
same problem # du --apparent-size -s /run/media/jdd/intenso* 3239147738 /run/media/jdd/intenso4to 3239148282 /run/media/jdd/intenso5to2
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...
the difference between du and df is an other problem: a small file uses sector size room (I speak of static data files, both archives, so no unlinked file AFAIK) curious jdd -- http://dodin.org -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org