[mythtv-users] Disk Space Way Wrong

Mark Lord mythtv at rtr.ca
Fri Apr 20 15:58:06 UTC 2012


On 12-04-20 09:02 AM, Raymond Wagner wrote:
> 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.

There's the bug.  It should open the path, and the use fstatfs(fd, ..).
Doing it that way would make symlinks transparent to it, as they should be.

Cheers


More information about the mythtv-users mailing list