android_storage/DCIM/.thumbnails/.thumbdata3 inconsistent file size [answered]
asked 2016-05-06 04:09:16 +0200
This post is a wiki. Anyone with karma >75 is welcome to improve it.
Hi,
When "rsyncing" the DCIM directory to my SD card, I noticed the ~/android_storage/DCIM/.thumbnails/.thumbdata3--1967290299 (anormally big) file was being transfered but what I don't understand is this :
$ ls -l android_storage/DCIM/.thumbnails/.thumbdata3--1967290299
-rw-rw-r-- 1 root nemo 967472298 2016-05-05 19:09 android_storage/DCIM/.thumbnails/.thumbdata3--1967290299
$ stat -c %s android_storage/DCIM/.thumbnails/.thumbdata3--1967290299
967472298
$ du android_storage/DCIM/.thumbnails/.thumbdata3--1967290299
64K android_storage/DCIM/.thumbnails/.thumbdata3--1967290299
Both ls
and stat
report the same size, why does du
only report 64K
for the same file ?
Maybe gigabyte digit is ignored by shell, because if you divide 967290299 by 1048576 you get 922,48 ~ 923M. Must fix this immedieate.
alloj ( 2016-05-06 14:31:33 +0200 )edit@alloj This "967290299" number is contained inside the file name.
My question is why does
SebM ( 2016-05-06 14:38:31 +0200 )editdu
report a size of 64KiB ?So real size of file is 923M?
alloj ( 2016-05-06 14:58:12 +0200 )editYes, the real file size is
967472298
And here is what my Ubuntu sees through sshfs :
The
SebM ( 2016-05-06 15:03:18 +0200 )editcoreutils
on Sailfish OS 2.0 are quite old, that's maybe why theirdu
has this bug, don't you think ?