Skip to content

feat(mfs): Statfs#11261

Open
wjmelements wants to merge 4 commits intoipfs:masterfrom
wjmelements:statfs
Open

feat(mfs): Statfs#11261
wjmelements wants to merge 4 commits intoipfs:masterfrom
wjmelements:statfs

Conversation

@wjmelements
Copy link
Copy Markdown
Contributor

Reviewer @lidel
On macOS, Finder uses statfs(2) to check if there is enough space for a file before copying.
Without this, writing can fail with error ('there isn't enough free space').
I have only seen this issue with Finder but it's possible that statfs(2) is used by other fs browsers, so it is good to implement it.

Changes

  • implement Statfs, returning underlying FS info

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@wjmelements wjmelements requested a review from a team as a code owner March 29, 2026 23:43
@gammazero
Copy link
Copy Markdown
Contributor

Looks like CI failures due to missing int64/uint64 conversions.

@wjmelements
Copy link
Copy Markdown
Contributor Author

Looks like CI failures due to missing int64/uint64 conversions.

I am surprised these have different types on macos vs linux.

@wjmelements
Copy link
Copy Markdown
Contributor Author

test failures look unrelated

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.

2 participants