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.)
Sorry, I was having browser issues, so this bug was submitted twice. *** This bug has been marked as a duplicate of 157884 ***