Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sources DOT redhat DOT com Delivered-To: mailing list cygwin AT sources DOT redhat DOT com X-Apparently-From: Message-ID: <3A8ACDC4.A7ECBA83@yahoo.com> Date: Wed, 14 Feb 2001 13:26:12 -0500 From: Earnie Boyd Reply-To: Earnie Boyd X-Mailer: Mozilla 4.76 [en] (WinNT; U) X-Accept-Language: en MIME-Version: 1.0 To: "Javorcik, William (ITG)" CC: "'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> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit "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