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

Sascha Wildner swildner at crater.dragonflybsd.org
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 
  Log:
  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


http://www.dragonflybsd.org/cvsweb/src/bin/df/Makefile.diff?r1=1.4&r2=1.5&f=u
http://www.dragonflybsd.org/cvsweb/src/bin/df/df.c.diff?r1=1.10&r2=1.11&f=u





More information about the Commits mailing list