[mythtv] [patch] mythbackend MainServer::getFreeSpace
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)) /
> usedspace = (statbuf.f_blocks - statbuf.f_bavail) /
> 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.
More information about the mythtv-dev