uutils / uutils/coreutils

df: Incorrect avilable size and percent usage

Open
#7,461 0 comments 0 reactions 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.