From nobody@FreeBSD.org  Wed May  9 00:15:54 2001
Return-Path: <nobody@FreeBSD.org>
Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21])
	by hub.freebsd.org (Postfix) with ESMTP id BA2EF37B424
	for <freebsd-gnats-submit@FreeBSD.org>; Wed,  9 May 2001 00:15:53 -0700 (PDT)
	(envelope-from nobody@FreeBSD.org)
Received: (from nobody@localhost)
	by freefall.freebsd.org (8.11.1/8.11.1) id f497Frb21352;
	Wed, 9 May 2001 00:15:53 -0700 (PDT)
	(envelope-from nobody)
Message-Id: <200105090715.f497Frb21352@freefall.freebsd.org>
Date: Wed, 9 May 2001 00:15:53 -0700 (PDT)
From: liugang@usa.net
To: freebsd-gnats-submit@FreeBSD.org
Subject: utility "du" shows incorrect  disk usage when use -h option
X-Send-Pr-Version: www-1.0

>Number:         27223
>Category:       misc
>Synopsis:       utility "du" shows incorrect  disk usage when use -h option
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed May 09 00:20:01 PDT 2001
>Closed-Date:    Wed May 9 03:34:08 PDT 2001
>Last-Modified:  Wed May 09 03:38:16 PDT 2001
>Originator:     Gordon.Liu
>Release:        4.0
>Organization:
home
>Environment:
FreeBSD 4.0-RELEASE (GENERIC) #0: Mon Mar 20 22:50:22 GMT 2000
>Description:
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

>Fix:

>Release-Note:
>Audit-Trail:

From: David Malone <dwmalone@maths.tcd.ie>
To: liugang@usa.net
Cc: freebsd-gnats-submit@FreeBSD.org
Subject: Re: misc/27223: utility "du" shows incorrect  disk usage when use -h option
Date: Wed, 9 May 2001 11:27:37 +0100

 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.
State-Changed-From-To: open->closed 
State-Changed-By: dwmalone 
State-Changed-When: Wed May 9 03:34:08 PDT 2001 
State-Changed-Why:  
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 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=27223 
>Unformatted:
 >mkdir test
 >du -h test
 (output is:) 258M       test
 
 
