1.3.3 on WINNT 4.0SP6: du reports disk usage incorrectly by facto r one half

Buhl, Josh josh.buhl@sdm.de
Fri Oct 5 08:30:00 GMT 2001


Hello Christopher,

thanks for replying. Sorry if I didn't describe the behaviour correctly. I
wasn't refering to a problem with the block size, but rather with the total
reported value. If a file is, say, 16000 bytes long, then du reports it
using only 8 Kb of space. Here's an example:


bash-2.04$ ls -alF
total 47
drwxr-xr-x   2 Administ Kein         4096 Oct  5 15:23 ./
drwxr-xr-x  13 Administ Kein         4096 Oct  5 15:13 ../
-rw-r--r--   1 Administ Kein        14189 Jun 11 20:16 Makefile
-rw-r--r--   1 Administ Kein        12264 Jun 11 20:11 Makefile.in
-rw-r--r--   1 Administ Kein        13604 May 25 10:35 Moon.c
-rw-r--r--   1 Administ Kein        15996 Jun 11 19:39 glunarclock.c
-rw-r--r--   1 Administ Kein          634 Jun  9 09:04 glunarclock.h
-rw-r--r--   1 Administ Kein        15869 May 25 10:35 moondatadialog.c
-rw-r--r--   1 Administ Kein         1103 May 25 10:35 moondatadialog.h
-rw-r--r--   1 Administ Kein        10872 May 28 20:43 moonproperties.c
-rw-r--r--   1 Administ Kein          330 May 25 10:35 moonproperties.h

bash-2.04$ du -ab
8.0k	./glunarclock.c
512	./glunarclock.h
7.0k	./Makefile
6.0k	./Makefile.in
7.0k	./Moon.c
8.0k	./moondatadialog.c
1.0k	./moondatadialog.h
5.5k	./moonproperties.c
512	./moonproperties.h
45k	.

-----Ursprüngliche Nachricht-----
Von: Christopher Faylor [ mailto:cygwin@cygwin.com ]

I can't duplicate this behavior.  My version of du.exe reports block sizes
in 1024 increments.  Maybe you need to upgrade your fileutils.

cgf

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/



More information about the Cygwin mailing list