This is the mail archive of the cygwin@sources.redhat.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]