[mythtv-users] Disk Space Way Wrong

Mark Lord mythtv at rtr.ca
Fri Apr 20 16:40:55 UTC 2012


On 12-04-20 12:32 PM, Raymond Wagner wrote:
> On 4/20/2012 11:58, Mark Lord wrote:
>> 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.
> 
> So less a bug, and more a feature request (with a patch) for a strange and uncommon configuration.

All eight mythtv setups that I know about have the same style of configuration.

Symlinks are a "normal" (not "strange") thing on Linux,
and are often overlooked by folks more familiar with
only Microsoft systems (which lack them).

Fortunately, correctly written code rarely has to be bothered about them,
as they should be transparent.  statfs() is one of the few syscalls that
doesn't follow them automatically (for good reason).

Cheers


More information about the mythtv-users mailing list