[mythtv-users] Disk Space Way Wrong

Raymond Wagner raymond at wagnerrp.com
Fri Apr 20 13:02:56 UTC 2012


On 4/19/2012 22:35, Mark Lord wrote:
> On 12-04-19 10:04 PM, Gavin Hurlbut wrote:
>> On Thu, Apr 19, 2012 at 9:59 AM, Mark Lord<mythtv at rtr.ca>  wrote:
>>> Most likely it's the old bug whereby Mythtv shows the space free
>>> on the root filesystem rather than on the filesystem where
>>> recordings are kept.
>> What old bug is that?  I do not recall ever having seen this.  Got a
>> trac ticket number?
> Nope.  It just reports wrong on every system I've set up,
> always showing the root partition free space instead of
> where the recordings are kept.
>
> I think perhaps it trips up on symlinks or something.

Here is the code in question.

https://github.com/MythTV/mythtv/blob/master/mythtv/libs/libmythbase/mythcoreutil.cpp#L39

It's not doing anything fancy, it just runs statfs on the path you give 
it.  If that path lies on some other filesystem, and you're tricking it 
with symlinks, it makes no attempt to outsmart you.


More information about the mythtv-users mailing list