2017-04-07 16:10:47 UTC
I calculate the allocated size by multiplying the block count (%b) with 512
I found out in https://github.com/landley/toybox/issues/41 that the
blocksize for the blockcount calculation is hardcoded to 512. So this
should work well (and has so far).
Now a user of my app noticed that on their F2FS filesystem the allocated
size is suspiciously small:
Specifically too small by a factor of 8, as if the blocksize used for
blockcount calculation is 4096 (4096/512).
Could stat have a problem with calculating the blockcount on F2FS
filesystems or am I overlooking something else?