delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/02/14/14:11:31

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
Message-ID: <6E3EFEA5A0E4D21198720008C75D2A40018C5B84@msboston2.des.jhy.us.ml.com>
From: "Javorcik, William (ITG)" <William_Javorcik AT ml DOT com>
To: "'Earnie Boyd'" <cygwin AT cygwin DOT com>
Subject: RE: 1.1.8: du reports incorrect sizes
Date: Wed, 14 Feb 2001 14:05:48 -0500
MIME-Version: 1.0
X-Mailer: Internet Mail Service (5.5.2650.21)

OK, I picked the wrong example which did not show clearly
what I was trying to say (d:/bin~ is 1.1.4).

1.1.8 does not show byte sizes, even if asked for it by the
-b switch.
d:/cygwin/bin>du -ba true
512	true
d:/cygwin/bin>d:/bin~/du -b true
395	true

1.1.8 reports incorrect sizes -- the correct amount of
stuff in the directory is about 40M.

d:/cygwin/bin>du -sk
21150	.
d:/cygwin/bin>d:/bin~/du -sk
42188	.

Bill

-----Original Message-----
From: Earnie Boyd [mailto:earnie_boyd AT yahoo DOT com]
Sent: Wednesday, February 14, 2001 13:26
To: Javorcik, William (ITG)
Cc: 'cygwin AT cygwin DOT com'
Subject: Re: 1.1.8: du reports incorrect sizes


"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