Hello Michelle,

Michelle Konzack wrote:
> On my Office-Workstation (AMD Sempron 2200+, 3 GByte memory, 10/100  VIA
> OnBoard) I have tried to run the command
> 
> michelle1:/# du -xsmc /*/
> 
> which took arrond 17 hours... on a partiton of 3 GByte!!!
> 
> Why?  This pig access ANY network drives (NFS shares) it finds...

Please see the coreutils du documentation where it says:

  info coreutils 'du invocation'

  `-x'
  `--one-file-system'
       Skip directories that are on different file systems from the one
       that the argument being processed is on.

By giving the /*/ wildcard it will be expanded by your shell into
/home/, /Maildirs/, and /home_www/ because those exist for the shell.
The du command will traverse those arguments.  The -x will prevent du
from traversing mount points to different filesystems below those.
But I assume that you are expecting the -x to prevent those explicitly
listed directories from being traversed.  But the -x option prevents
traversing different filesystems from the argument.  If you
specifically list a filesystem then -x does not prevent du from
traversing it.

> I think, according to "du --help" and the manpage,  the  parameter  "-x"
> should exclude Network drives too...

The --help output says:

  -x, --one-file-system  skip directories on different file systems

It is very hard to be concise yet precise.  I can see where this may
not quite be precise enough.  If it said the following would that be
clearer?

  -x, --one-file-system  skip directories on file systems different
                         from FILE arguments

Bob



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to