From nobody@FreeBSD.ORG  Tue Jul 18 07:42:53 2000
Return-Path: <nobody@FreeBSD.ORG>
Received: by hub.freebsd.org (Postfix, from userid 32767)
	id B447037BE49; Tue, 18 Jul 2000 07:42:53 -0700 (PDT)
Message-Id: <20000718144253.B447037BE49@hub.freebsd.org>
Date: Tue, 18 Jul 2000 07:42:53 -0700 (PDT)
From: jan.rhebergen@pobox.com
Sender: nobody@FreeBSD.ORG
To: freebsd-gnats-submit@FreeBSD.org
Subject: du -hcs * gives different wrong results directories compared to du -cs *
X-Send-Pr-Version: www-1.0

>Number:         20007
>Category:       misc
>Synopsis:       du -hcs * gives different wrong results directories compared to du -cs *
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    mharo
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Jul 18 07:50:01 PDT 2000
>Closed-Date:    Fri Nov 24 14:50:35 PST 2000
>Last-Modified:  Fri Nov 24 14:50:42 PST 2000
>Originator:     Jan Rhebergen
>Release:        4.0 release
>Organization:
private
>Environment:
FreeBSD doors.linux.bogus 4.0-RELEASE FreeBSD 4.0-RELEASE #0: Mon Mar 20 22:50:22 GMT 2000     root@monster.cdrom.com:/usr/src/sys/compile/GENERIC  i386

>Description:
When trying

du -hcs * 

from my home directory it incorrectly states the size of one of the directories, while

du -cs *

give the correct result.

The totals are correct in both cases though.


>How-To-Repeat:
Example:

bash-2.03$ du -csh *
267K    GNUstep
1.0K    cvsupfile
6.3M    ftp
3.0K    mail
6.6M    nsmail
2.0K    osnotes
4.0K    stable-supfile_
6.6M    total

The 6.6M for the nsmail directory is wrong!

Look at this:

bash-2.03$ du -cs *
268     GNUstep
1       cvsupfile
6457    ftp
4       mail
1       nsmail
2       osnotes
4       stable-supfile_
6737    total

>Fix:
Not a clue!

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->mharo 
Responsible-Changed-By: sheldonh 
Responsible-Changed-When: Tue Jul 18 08:05:27 PDT 2000 
Responsible-Changed-Why:  
His code. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=20007 
State-Changed-From-To: open->feedback 
State-Changed-By: mharo 
State-Changed-When: Tue Jul 18 23:28:22 PDT 2000 
State-Changed-Why:  
I believe this bug was fixed after 4.0-release was released. 

Please upgrade to 4.x-stable or wait for 4.1 to be released. 
If you want I can send you a patch you can apply to the 4.0 
source code, but upgrading to 4.x-stable would do this anyway. 

If you have upgraded and this isn't the case I'll look into  
this some more. 

Michael 

http://www.freebsd.org/cgi/query-pr.cgi?pr=20007 
State-Changed-From-To: feedback->closed 
State-Changed-By: mharo 
State-Changed-When: Fri Nov 24 14:50:35 PST 2000 
State-Changed-Why:  
timeout 

http://www.freebsd.org/cgi/query-pr.cgi?pr=20007 
>Unformatted:
