Your message dated Tue, 18 Apr 2006 15:56:46 -0400
with message-id <[EMAIL PROTECTED]>
and subject line Bug#363372: coreutils: du does not ignore other filesystems
has caused the attached Bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--- Begin Message ---
Package: coreutils
Version: 5.94-1
Severity: normal


Look at this du output:

swordfish:/# du -shx *
3.5M    bin
8.4M    boot
0       cdrom
178K    dev
12M     etc
238M    home
0       initrd.img
59M     lib
12K     lost+found
3.0K    media
15K     mnt
1.0K    opt
513M    proc
8.7M    root
4.8M    sbin
1.0K    srv
0       sys
677K    tmp
1.7G    usr
1.9G    var
0       vmlinuz

Notice that usr and var are reported to be huge. But the truth is that
this filesystem is a small one and du has reported the other filesystems
mounted there. The x option should prevent this. Note that it has
successfully ignored all filesystems mounted under /mnt. 

swordfish:/# df -h . /usr /var
Filesystem            Size  Used Avail Use% Mounted on
/dev/hda6             361M  342M   21K 100% /
/dev/mapper/vg-s_usr  3.0G  1.7G  1.4G  56% /usr
/dev/mapper/vg-s_var  3.0G  1.9G  1.2G  62% /var

These are mounted like this:
/dev/hda6 on / type ext3 (rw,errors=remount-ro)
/dev/mapper/vg-s_usr on /usr type ext3 (ro)
/dev/mapper/vg-s_var on /var type reiserfs (rw)

-- System Information:
Debian Release: testing/unstable
  APT prefers testing
  APT policy: (990, 'testing'), (990, 'stable'), (99, 'unstable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.16-1-686
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)

Versions of packages coreutils depends on:
ii  libacl1                       2.2.36-1   Access control list shared library
ii  libc6                         2.3.6-3    GNU C Library: Shared libraries an
ii  libselinux1                   1.30-1     SELinux shared libraries

coreutils recommends no packages.

-- no debconf information


--- End Message ---
--- Begin Message ---
On Tue, Apr 18, 2006 at 08:47:53PM +0200, Nagy Gabor Peter wrote:
Look at this du output:

swordfish:/# du -shx *
..
Notice that usr and var are reported to be huge. But the truth is that
this filesystem is a small one and du has reported the other filesystems
mounted there. The x option should prevent this.

No, because you specifically list /usr and /var in the command line (when the * is expanded by the shell) so du processes them (but won't recurse through anything mounted below them). Try something like
du -hx --max-depth 1 /
to get output more like you're expecting.

Mike Stone

--- End Message ---

Reply via email to