Bug 27223

Summary: utility "du" shows incorrect disk usage when use -h option
Product: Base System Reporter: liugang <liugang>
Component: miscAssignee: freebsd-bugs (Nobody) <bugs>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Unspecified   
Hardware: Any   
OS: Any   

Description liugang 2001-05-09 08:20:01 UTC
utility "du" shows incorrect  disk usage size when use -h option to check a empty directory..

How-To-Repeat: let's say here we create a empty directory
Comment 1 dwmalone 2001-05-09 11:27:37 UTC
On Wed, May 09, 2001 at 12:15:53AM -0700, liugang@usa.net wrote:

> >Release-Note:
> >Audit-Trail:
> >Unformatted:
>  >mkdir test
>  >du -h test
>  (output is:) 258M       test

I can't reproduce this here:

% mkdir empty 
% du -h empty
1.0K    empty
% uname -r
4.2-STABLE

I think the version of du is unchanged since 4.0, so I don't think the
problem has been bugfixed.

	David.
Comment 2 dwmalone freebsd_committer freebsd_triage 2001-05-09 11:34:08 UTC
State Changed
From-To: open->closed

Actually - I read the logs wrong. This bug was fixed between 4.0 
and 4.1. You should be able to find the patch and new version of 
du.c off: 

http://www.FreeBSD.org/cgi/cvsweb.cgi/src/usr.bin/du/du.c?only_with_tag=RELENG_4