cvs commit: src/bin/df Makefile df.c

Sascha Wildner swildner at
Sat Aug 2 15:58:09 PDT 2008

swildner    2008/08/02 15:56:52 PDT

DragonFly src repository

  Modified files:
    bin/df               Makefile df.c 
  Use humanize_number() from libtool instead of rolling our own version for
  -h and -H.
  As a side effect, this fixes an issue with showing a negative value in
  the 'Avail' column (for UFS file systems which are using the MINFREE
  reserve) by casting f_bavail to signed when passing it to prthumanval(),
  like it was done before already for fstoblk().
  f_bavail used to be signed in struct fsstat but is now unsigned in struct
  vfsstat (in accordance with SUS).
  Taken-from: FreeBSD
  Revision  Changes    Path
  1.5       +2 -2      src/bin/df/Makefile
  1.11      +15 -70    src/bin/df/df.c

More information about the Commits mailing list