Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 4 Jun 2004 02:31:31 -0700 (PDT)
From:      David Schultz <das@FreeBSD.org>
To:        dga@lcs.mit.edu, das@FreeBSD.org, freebsd-bugs@FreeBSD.org
Subject:   Re: bin/67467: df -m and -g incorrect with negative avail
Message-ID:  <200406040931.i549VV4g031954@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
Synopsis: df -m and -g incorrect with negative avail

State-Changed-From-To: open->closed
State-Changed-By: das
State-Changed-When: Fri Jun 4 02:30:57 PDT 2004
State-Changed-Why: 
Thanks for the analysis.  It turns out that this problem was fixed
last month in src/bin/df/df.c,v 1.56 using your first proposal.
However, in reviewing the code, I found that I was able to save 775
bytes and a small piece of my sanity by making fsbtoblk() a true
function.  This should address your concern about the ambiguity in
the type of num.

(As for gcc extensions, we use them in some places, but we try not to
depend on them when possible.)

http://www.freebsd.org/cgi/query-pr.cgi?pr=67467



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200406040931.i549VV4g031954>