[mythtv] [mythtv-commits] Ticket #6503: GetFilesystemInfos, TotalKB: -1 should be ignored

Chris Pinkham cpinkham at bc2va.org
Mon Apr 27 01:48:53 UTC 2009


* On Sun Apr 26, 2009 at 11:38:03PM +0200, Rudy Zijlstra wrote:
> here it comes, and although some apps have problems with it (KDE Info
> center being one), statfs works:
> 
> TotalKB   : 2930148864 KB ((11445894 * 262144) >> 10)
> FreeKB    : 1804770816 KB ((1249378304 * 0) >> 10)
> UsedKB    : 1125378048 KB (calculated from TotalKB - FreeKB)

So it appears the current code in mythbackend and libmyth works fine
since it uses the same method as my statfs.c test program.

We use "long long" to store these values, so we're not affected by
the 2 Terabyte rollover when calculating KB using a regular long to
store the value.

Thanks for testing.

Chris


More information about the mythtv-dev mailing list