imsnif / imsnif/diskonaut

Numbers aren't adding up

Open
#92 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Rust
Stars
3.1k
Forks
96
PR merge metrics
No merged PRs in 30d

Description

du output

```
192M /opt/rh/gcc-toolset-12/root
192M /opt/rh/gcc-toolset-12
192M /opt/rh
36M /opt/gitlab/git/bin
59M /opt/gitlab/git/libexec
72K /opt/gitlab/git/share
95M /opt/gitlab/git
267M /opt/gitlab/go/1.20.4
267M /opt/gitlab/go
636M /opt/gitlab/rust/cargo
1.2G /opt/gitlab/rust/rustup
1.8G /opt/gitlab/rust
2.2G /opt/gitlab
2.4G /opt
```

![image](https://github.com/imsnif/diskonaut/assets/224304/5850ea3a-e517-4187-8868-3e5303d0441a)

git/ isn't 2.3G. du says 95M but it's ~25 M because 4 files are hardlinked to each other.

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the reported discrepancy from the included du output and inspect the disk-usage calculation entry point. Trace how hardlinked files are counted; done means hardlinked files are counted once and the displayed directory totals reconcile with actual usage.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
cli
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.