[mythtv] [patch] mythbackend MainServer::getFreeSpace
Isaac Richards
ijr at case.edu
Wed Mar 23 06:05:28 UTC 2005
On Wednesday 16 February 2005 09:55 pm, Jim Westfall wrote:
> These are the current calculations for getting totalspace and usedspace,
> which get reported to the frontend.
>
> totalspace = (statbuf.f_blocks - (statbuf.f_bfree - statbuf.f_bavail)) /
> (1024*1024/statbuf.f_bsize);
> usedspace = (statbuf.f_blocks - statbuf.f_bavail) /
> (1024*1024/statbuf.f_bsize);
>
> totalspace is adjusted to show total space for a non-root user, but
> usedspace isnt. You can end up with the issue I have been seeing, which
> is usedspace > totalspace when I really have 50G free.
Applied, thanks.
Isaac
More information about the mythtv-dev
mailing list