du -sh shows incorrect size for directories with hard links
Issue
- When running
du -shon directories that share hard links, the first directory shows the correct size while the other directories report a smaller size dunot accounting for hard linksdu -shshowing wrong size calculations
Environment
- Red Hat Enterprise Linux 6
- Directories with numerous hard links
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.