bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

du v5.93: traverses subdirectories although --separate-dirs and --summar


From: Volker Badziong
Subject: du v5.93: traverses subdirectories although --separate-dirs and --summarize are set?
Date: Thu, 29 May 2008 15:17:48 +0200

Hello,

I am running "du (GNU coreutils) 5.93". When executing e.g.

     du --separate-dirs --summarize  /etc/

you are only interested in the total space consumed by stuff in /etc/, not 
within any subfolders. But nevertheless du traverses all subdirectories, 
regardless if "--summarize" is set or not. This has no effect on the produced 
output / numeric result for /etc/.

Is there a reason the traversal still happens? This causes a lot of (in my 
humble opinion) unncessary IO.

Here is a sample output of running with and without --summarize. Numbers for 
/etc/ are identical, but IO happens in both cases the same.

somehost:/ # du  --separate-dirs --block-size=1   /etc/
94208   /etc/udev/rules.d
8192    /etc/udev
4096    /etc/skel/.fonts
4096    /etc/skel/.mozilla
8192    /etc/skel/.xemacs
4096    /etc/skel/bin
8192    /etc/skel/Documents
8192    /etc/skel/public_html
81920   /etc/skel
4096    /etc/SuSEconfig
8192    /etc/X11/xim.d
...
...
8192    /etc/gre.d
4096    /etc/autoinstall
3076096 /etc/

somehost:/ # du  --separate-dirs --block-size=1  --summarize  /etc/
3076096 /etc/


Thanks and Regards,
Volker Badziong

-- 
GMX startet ShortView.de. Hier findest Du Leute mit Deinen Interessen!
Jetzt dabei sein: http://www.shortview.de/address@hidden




reply via email to

[Prev in Thread] Current Thread [Next in Thread]