Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 157884

Summary: sys-apps/coreutils-6.4 - du -x omits directories on the same file system
Product: Gentoo Linux Reporter: David Holl <dholl>
Component: [OLD] Core systemAssignee: Gentoo's Team for Core System packages <base-system>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: High    
Version: 2006.1   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: emerge --info

Description David Holl 2006-12-11 21:22:45 UTC
This works fine:
# dd if=/dev/zero bs=1M count=32 of=t1
# dd if=/dev/zero bs=1M count=32 of=t2
# du -x t1 t2
32800   t1
32800   t2

But this does not work:
# mkdir t1 t2
# dd if=/dev/zero bs=1M count=32 of=t1/t
# dd if=/dev/zero bs=1M count=32 of=t2/t
# du -x t1 t2
32800   t1
0       t2

Since both directories and all files under them are on the same device, du should have reported the size for t2 as well.  (This had worked in past versions of du, but unfortunately, I don't recall the first time I noticed this bug -- possibly several months to a year ago.)
Comment 1 David Holl 2006-12-11 21:23:52 UTC
Created attachment 103840 [details]
emerge --info
Comment 2 David Holl 2006-12-11 21:27:34 UTC
*** Bug 157883 has been marked as a duplicate of this bug. ***
Comment 3 SpanKY gentoo-dev 2006-12-12 10:11:35 UTC

*** This bug has been marked as a duplicate of 156049 ***