[mythtv] Detection of shared disks in storage groups

Chris Pinkham cpinkham at bc2va.org
Mon Dec 4 04:58:03 UTC 2006


* On Sun Dec 03, 2006 at 07:30:50PM -0800, Gregorio Gervasio, Jr. wrote:
>         freespace = statbuf.f_bsize * (statbuf.f_bavail >> 10);
>         total = statbuf.f_bsize * (statbuf.f_blocks >> 10);

OK, I committed a fix:

        freespace = (statbuf.f_bsize * statbuf.f_bavail) >> 10;
        total     = (statbuf.f_bsize * statbuf.f_blocks) >> 10;

It looks like I don't need the fudge factor of 16 with this fix either,
but I left it in for now.

Thanks for tracking this down.  The bug has been there a while, but only
became evident (and critical) with the introduction of Storage Groups.

--
Chris


More information about the mythtv-dev mailing list