delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1998/09/16/15:31:15

From: BROGUIERE AT TTM DOT thomson-csf DOT com
Subject: B19 - du command - erroneous size estima
16 Sep 1998 15:31:15 -0700 :
Message-ID: <000ABAD0.MAI*/S=BROGUIERE/O=TTM/PRMD=THOMSON/ADMD=ATLAS/C=FR/.cygnus.gnu-win32@MHS>
To: gnu-win32 AT cygnus DOT com

Small problem, probably easy to fix?
(win95 explorer can be used but require to click on each directory entry to 
get its size, "du -sk *" is easier ...)

Context:
 --------
Beta 19  installed on Windows 4.00.950

Bug:
 ----
Size indicated by the disk usage command "du" is wrong.
An example is given hereafter.
The error ratio (0.5 in the example) is not constant and therefore not 
predictible (range 0.6 to 0.8 for a real full directory).
Note that the size given by "ls" command is always coherent with Windows95 
Explorer display.

Example Trace:
 ------------------------
BASH.EXE-2.01$ pwd/users/gnu/lib
BASH.EXE-2.01$ uname -a
CYGWIN32_95 BROGUI+RE 4.0 19.0 i586 unknown
BASH.EXE-2.01$ ls -l
total 32-rw-r--r--   1 500      everyone    65168 Feb 26  1998 libiberty.a
BASH.EXE-2.01$ du -k *
32      libiberty.a
BASH.EXE-2.01$

Jean-Louis Broguiere
broguiere AT thomson-csf DOT com
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request AT cygnus DOT com" with one line of text: "help".

- Raw text -


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