/usr/bin/du 's option -h and -k conflicts when -k is added AFTER -h option. When -k option is provided after -h option, it reports half the amount of data. How-To-Repeat: % mkdir /tmp/test % cd /tmp/test % dd if=/dev/zero of=foo count=100 # 5kB % ls -l foo -rw-r--r-- 1 ginga wheel 51200 Dec 1 21:59 foo % du -sk . 51 . % du -skh . 51K . # right % du -shk . 26K . # wrong! (only 1/2 reported) %
In Sun, Dec 01, 2002 at 05:10:01AM -0800, FreeBSD-gnats-submit@FreeBSD.org wrote: > http://www.freebsd.org/cgi/query-pr.cgi?pr=45897 > > >Category: bin > >Responsible: freebsd-bugs > >Synopsis: /usr/bin/du option -h -k conflicts. > >Arrival-Date: Sun Dec 01 05:10:01 PST 2002 This problem was already fixed in the -current (remained only for 4-stable branch). Sorry for reporting already fixed problem... -- ginga
State Changed From-To: open->closed I've completed the MFC (different patch). Thanks for pointing this out!