unix-18.104.22.168 does not provide access to st_blksize and st_blocks
|Reported by:||JohnWiegley||Owned by:|
|Type of failure:||Other||Test Case:|
|Related Tickets:||Differential Rev(s):|
There is currently no clear way in Haskell to determine how much disk space a file actually occupies on disk -- only it's apparent byte size. Case in point, the popular git-annex tool has had to rely on a hack because there is no way to get at the st_blocks information in the POSIX stat record.
I recommend adding two functions to Common.hsc in unix, which are in the attached patch.