[mythtv-users] Myth reports incorrect disk space usage?
t.tait at comcast.net
Thu Jul 15 16:07:04 EDT 2004
Henk Poley wrote:
>Op donderdag 15 juli 2004 21:00, schreef Jason Keirstead:
>>On July 15, 2004 03:41 pm, Tim Tait wrote:
>>>Wow, I didn't expect this question to draw much attention! The drive is
>>>large, so maybe the reserved root space is the reason.
>>>The df used result equates to about 6,480 MB.
>>> From Mythweb status page:
>>> Total Space: 167,428 MB
>>> Space Used: 15,440 MB
>>> Space Free: 151,988 MB
>>It is not the reserved root.
>>The reserved root space only affects the amount free on the drive. It does
>>not affect the amount used by files in any way.
>If you want to check see programs/mythbackend/mainserver.cpp for the methode
>MainServer::getFreeSpace. It uses statfs, see 'man statfs' for that.
>You could also check the mythtv mailinglist archives, as someone else said,
>this has been beaten to death before ;-)
> Henk Poley <><
Good info... It seems likes statfs doesn't return used, just the size
and free quantities. I did "google" it a few times, but it didn't turn
up anything relevant. I guess you have know the right words to look for.
stat -f /var/video
ID: 0 Namelen: 255 Type: ext2/ext3
Blocks: Total: 45155420 Free: 43496501 Available: 41202741
Inodes: Total: 22937600 Free: 22937581
Guess what, if you subtract "Available" from "blocks total" the result
is 15440MiB, the same as MythTV reports:) And subtracting "Free" from
"Total" yields 6480MiB:)
I would humbly suggest that MythTV should report as used only space that
is actually used, not merely reserved.
More information about the mythtv-users