df: Incorrect avilable size and percent usage
Open
Nobody has claimed this yet.
U - df
- Dominant language
- Rust
- Stars
- 24.1k
- Forks
- 2k
- Avg merge
- 1d 5h
- Merged PRs (30d)
- 365
Description
Envrioment
OS
❯ coreutils uname -a
Windows_NT SETSUNA 10.0 26100 x86_64 MS/Windows (Windows 11)
uutils/coreutils
coreutils on main is 📦 v0.0.30 via 🦀 v1.85.0-nightly
Problem
❯ cargo r -r -- df -h
Finished `release` profile [optimized] target(s) in 0.70s
Running `target\release\coreutils.exe df -h`
Filesystem Size Used Avail Use% Mounted on
\Device\HarddiskVolume2 256G 180G 0 100%
\Device\HarddiskVolume3 677G 494G 0 100%
\Device\HarddiskVolume4 1.9T 1.8T 0 100%
\Device\HarddiskVolume1 50M 35M 0 100%
\Device\HarddiskVolume8 11T 5.9T 0 100%
The colums Avail and Use% are inccorect.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing cargo r -r -- df -h on Windows 11 and compare the Avail and Use% columns with the system's actual disk values. Investigate the df command's Windows filesystem-statistics path; done means the reported available space and percentage usage are correct for the listed volumes.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- cli, operating-systems
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100