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

Yeechang Lee ylee at pobox.com
Mon Apr 27 19:11:58 UTC 2009


Chris Pinkham <cpinkham at bc2va.org> says:
> Can you compile and run the statfs.c program I attached to the
> ticket and reply here with the results of that run on your > 2TB
> filesystem?

Here is a test of my autofs-based setup using CIFS, not NFS:

statfs run on the box with the RAID array:
Info for  : /misc/machine1/mythtv/store
FS Type   : 0x3153464a
Tot Blks  : 1709292103
Free Blks : 6233285
Block Size: 4096
TotalKB   : 6837168412 KB ((1709292103 * 4096) >> 10)
FreeKB    : 24933140 KB ((25531535360 * 221026510688) >> 10)
UsedKB    : 6812235272 KB (calculated from TotalKB - FreeKB)

statfs run on my frontend:
Info for  : /misc/machine1/mythtv/store
FS Type   : 0xff534d42
Tot Blks  : 1709292103
Free Blks : 6233285
Block Size: 4096
TotalKB   : 6837168412 KB ((1709292103 * 4096) >> 10)
FreeKB    : 24933140 KB ((25531535360 * 263267346272) >> 10)
UsedKB    : 6812235272 KB (calculated from TotalKB - FreeKB)

I don't know why one number in the FreeKB lines doesn't quite match,
but everything else does. statfs properly automounts as needed, too.

-- 
Frontend/backend:	P4 3.0GHz, 1.5TB software RAID 5 array
Backend:		Quad-core Xeon 1.6GHz, 6.6TB sw RAID 6
Video inputs:		Four high-definition over FireWire/OTA
Accessories:		47" 1080p LCD, 5.1 digital, and MX-600


More information about the mythtv-dev mailing list