[Samba] dfree is broken on this system

Jeremy Allison jra at samba.org
Wed Jun 8 00:21:18 UTC 2016


On Tue, Jun 07, 2016 at 01:36:52PM -0400, Thomas Schulz wrote:
> Running Samba 4.3.4 on a Solaris 10 i386 box and Samba 4.4.3 on a
> Solaris 10 sparc box.
> I have not looked at the logs for awhile. Just checking now and I see
> many of the following on both systems.
> 
> [2016/06/01 11:22:04.402945,  0] ../source3/smbd/dfree.c:139(sys_disk_free)
>   WARNING: dfree is broken on this system
> 
> What could be the cause of this?

The code that creates this is:

        if ((*dsize)<1) {
                if (!dfree_broken) {
                        DEBUG(0,("WARNING: dfree is broken on this system\n"));
                        dfree_broken=true;
                }


Where dsize is calculated as:

        if (disk_quotas(path, &bsize_q, &dfree_q, &dsize_q)) {
                uint64_t min_bsize = MIN(*bsize, bsize_q);

                (*dfree) = (*dfree) * (*bsize) / min_bsize;
                (*dsize) = (*dsize) * (*bsize) / min_bsize;
                dfree_q = dfree_q * bsize_q / min_bsize;
                dsize_q = dsize_q * bsize_q / min_bsize;

                (*bsize) = min_bsize;
                (*dfree) = MIN(*dfree,dfree_q);
                (*dsize) = MIN(*dsize,dsize_q);
        }

Can you add DEBUG statements to see what is
going on in Solaris 10 here ?



More information about the samba mailing list