delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/02/14/13:27:36

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
X-Apparently-From: <earnie?boyd AT yahoo DOT com>
Message-ID: <3A8ACDC4.A7ECBA83@yahoo.com>
Date: Wed, 14 Feb 2001 13:26:12 -0500
From: Earnie Boyd <earnie_boyd AT yahoo DOT com>
Reply-To: Earnie Boyd <cygwin AT cygwin DOT com>
X-Mailer: Mozilla 4.76 [en] (WinNT; U)
X-Accept-Language: en
MIME-Version: 1.0
To: "Javorcik, William (ITG)" <William_Javorcik AT ml DOT com>
CC: "'cygwin AT cygwin DOT com'" <cygwin AT cygwin DOT com>
Subject: Re: 1.1.8: du reports incorrect sizes
References: <6E3EFEA5A0E4D21198720008C75D2A40018C5B82 AT msboston2 DOT des DOT jhy DOT us DOT ml DOT com>

"Javorcik, William (ITG)" wrote:
> 
> Hi,
> 
> I apologize if this was already reported and/or answered.
> 
> Compared to 1.1.4, du in 1.1.8 reports incorrect file sizes
> (it seems that the reported size is 1/2 of the actual size
> computed in 512 byte blocks).
> 
> I have both versions installed on the same machine, but I
> verified that the appropriate cygwin1.dll gets loaded (by
> looking at the list of loaded dll's for the running process).
> I have no running cygwin processes so I do not think this
> is a result of a dll mixup.
> 
> NT4/SP5, output of cygcheck upon request.
> I could do more testing if needed.
> Please CC me as I am not on the list.
> 
> TIA,
> 
> Bill
> 
> This is Cygwin 1.1.8
> d:/cygwin/bin>du --version
> du (GNU fileutils) 4.0
> d:/cygwin/bin>du -ab cy*
> 28672   cygbz21.0.dll
-8<-
> 
> This is Cygwin 1.1.4
> d:/cygwin/bin>d:/bin~/du --version
> du (GNU fileutils) 3.16
> d:/cygwin/bin>d:/bin~/du -ab cy*
> 56832   cygbz21.0.dll

This appears to me to be simply one display in 1024 byte blocks and the
other in 512 byte blocks.  If you add a -k to the fileutils-3.16 version
you'll end up with the same answer as the fileutils-4.0 version.  I
suspect (don't know, don't care) that this is a configuration issue.  If
you want to always be certain you could always use --block-size=512.

Earnie.

P.S.: I prefer to use the -h or -H switch for size output.

_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019