[mythtv] [mythtv-commits] Ticket #6846: FreeSpace calculations don't work correctly

Chris Pinkham cpinkham at bc2va.org
Fri Aug 14 17:20:26 UTC 2009


* On Fri Aug 14, 2009 at 04:59:25PM -0000, MythTV wrote:
>  Freespace calculations are multiplying reality with what it thinks to be
>  separate filesystems.  It needs to determine if for local directories, if
>  all the directories are logically within the filesystem, or if they exist

It does this already for all directories.  It uses the total size and free
space of each filesystem to match them up.  The logic is in two places in
programs/mythbackend/backendutil.cpp where it does this comparison:

 (absLongLong(it1->totalSpaceKB - it2->totalSpaceKB) <= 32) &&
 ((size_t)absLongLong(it1->usedSpaceKB - it2->usedSpaceKB) <= maxWriteFiveSec))

>  freespace is triple what reality is.  I will look at the code and
>  determine if I can generate a patch to resolve this.

Run your master backend with "-v file,schedule,extra" and you'll get lots of
debugging output about the comparisons it goes through to determine what
directories are actually on the same filesystem.

--
Chris


More information about the mythtv-dev mailing list