Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 157883 - du -x omits directories on the same file system (sys-apps/coreutils-6.4)
Summary: du -x omits directories on the same file system (sys-apps/coreutils-6.4)
Status: RESOLVED DUPLICATE of bug 157884
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-12-11 21:12 UTC by David Holl
Modified: 2006-12-11 21:27 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description David Holl 2006-12-11 21:12:50 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:27:34 UTC
Sorry, I was having browser issues, so this bug was submitted twice.

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