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

Add reporting of purgeable space on MacOS #3206

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

ledeuns
Copy link

@ledeuns ledeuns commented Dec 14, 2024

Purgeable space is space that macOS can free up when needed by removing files from your computer (you can't manually remove the files that are designated purgeable, but macOS removes them as space is required). So statfs can report low available space when in fact you can use more than that.

Tested on MacOS 14 (x86+M2) and Ubuntu 22.04
Needs to be started as root to get purgeable space info (otherwise it returns 0)

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

Successfully merging this pull request may close these issues.

1 participant