Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tin-summer counts hardlinks twice #25

Open
sharkdp opened this issue Oct 19, 2019 · 0 comments
Open

tin-summer counts hardlinks twice #25

sharkdp opened this issue Oct 19, 2019 · 0 comments

Comments

@sharkdp
Copy link

sharkdp commented Oct 19, 2019

How to reproduce:

In an empty directory, create a 1MB file and a hard link to it:

dd if=/dev/zero bs=1M count=1 > file
ln file hardlink

sn now reports a total size of 2 MB:

▶ sn files -a
1.0  MB	 ./hardlink
1.0  MB	 ./file
2.0  MB	 .

Whereas it should rather be 1 MB:

▶ du -sh                
1,0M	.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant