[PR #2037] [MERGED] Fixed statfs(free inodes) for macos #2311

Closed
opened 2026-03-04 02:04:53 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/s3fs-fuse/s3fs-fuse/pull/2037
Author: @ggtakec
Created: 9/24/2022
Status: Merged
Merged: 9/25/2022
Merged by: @gaul

Base: masterHead: mac_statfs


📝 Commits (1)

  • 3363528 Fixed statfs(free inodes) for macos

📊 Changes

1 file changed (+6 additions, -1 deletions)

View changed files

📝 src/s3fs.cpp (+6 -1)

📄 Description

Relevant Issue (if applicable)

#1982

Details

On macOS, the value of the statfs member was too large and overflowed.
Also this PR added inode related values for macOS.
This will change the value of df as below.

Before

$ df -k
Filesystem    1024-blocks Used Available Capacity iused ifree %iused  Mounted on
s3fs@macfuse0        1020    0      1020       0%     0     0   100%  /Users/users/mnt/s3fsmountpoint

After

$ df -k
Filesystem    1024-blocks Used   Available Capacity iused      ifree %iused Mounted on
s3fs@macfuse0 17179869180    0 17179869180       0%     0 4294967295     0% /Users/users/mnt/s3fsmountpoint

(Sorry, I rewrote the PR comment multiple times.)


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/s3fs-fuse/s3fs-fuse/pull/2037 **Author:** [@ggtakec](https://github.com/ggtakec) **Created:** 9/24/2022 **Status:** ✅ Merged **Merged:** 9/25/2022 **Merged by:** [@gaul](https://github.com/gaul) **Base:** `master` ← **Head:** `mac_statfs` --- ### 📝 Commits (1) - [`3363528`](https://github.com/s3fs-fuse/s3fs-fuse/commit/336352849babf46f12ad0350d02fa48228e1a778) Fixed statfs(free inodes) for macos ### 📊 Changes **1 file changed** (+6 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `src/s3fs.cpp` (+6 -1) </details> ### 📄 Description ### Relevant Issue (if applicable) #1982 ### Details On macOS, the value of the statfs member was too large and overflowed. Also this PR added inode related values for macOS. This will change the value of df as below. #### Before ``` $ df -k Filesystem 1024-blocks Used Available Capacity iused ifree %iused Mounted on s3fs@macfuse0 1020 0 1020 0% 0 0 100% /Users/users/mnt/s3fsmountpoint ``` #### After ``` $ df -k Filesystem 1024-blocks Used Available Capacity iused ifree %iused Mounted on s3fs@macfuse0 17179869180 0 17179869180 0% 0 4294967295 0% /Users/users/mnt/s3fsmountpoint ``` _(Sorry, I rewrote the PR comment multiple times.)_ --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-04 02:04:53 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/s3fs-fuse#2311
No description provided.