bin/67467: df -m and -g incorrect with negative avail

David Schultz das at FreeBSD.org
Fri Jun 4 02:31:39 PDT 2004


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


More information about the freebsd-bugs mailing list