Well that would be pretty easy to fix, wouldn't it? You just have to stat each file and cache the inode, to determine whether you have seen the file or not already before accumulating.
The only question, depending on the number of file and the number of inodes of the filesystem, is what would use less memory, a hash or a bitvec?
In reply to Re:x2 du and -s
by grinder
in thread du and -s
by rendler
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |