[PR #554] [MERGED] cleanup cache directory when running out of disk space #1545

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

📋 Pull Request Information

Original PR: https://github.com/s3fs-fuse/s3fs-fuse/pull/554
Author: @orozery
Created: 4/2/2017
Status: Merged
Merged: 4/16/2017
Merged by: @ggtakec

Base: masterHead: cache_cleanup


📝 Commits (1)

  • 95578ca cleanup cache directory when running out of disk space

📊 Changes

4 files changed (+120 additions, -13 deletions)

View changed files

📝 src/fdcache.cpp (+95 -6)
📝 src/fdcache.h (+8 -3)
📝 src/s3fs_util.cpp (+14 -3)
📝 src/s3fs_util.h (+3 -1)

📄 Description

Details

When running out of disk space when using a cache, try to perform a global cache cleanup.
E.g. instead of cleaning up only the cache for the CURRENT file descriptor, go over all cache files an try to clean them up.
This will proof useful when the disk is mostly occupied by big unused cache files.


🔄 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/554 **Author:** [@orozery](https://github.com/orozery) **Created:** 4/2/2017 **Status:** ✅ Merged **Merged:** 4/16/2017 **Merged by:** [@ggtakec](https://github.com/ggtakec) **Base:** `master` ← **Head:** `cache_cleanup` --- ### 📝 Commits (1) - [`95578ca`](https://github.com/s3fs-fuse/s3fs-fuse/commit/95578cad4355470154c25c60e2a4164f0e020e6b) cleanup cache directory when running out of disk space ### 📊 Changes **4 files changed** (+120 additions, -13 deletions) <details> <summary>View changed files</summary> 📝 `src/fdcache.cpp` (+95 -6) 📝 `src/fdcache.h` (+8 -3) 📝 `src/s3fs_util.cpp` (+14 -3) 📝 `src/s3fs_util.h` (+3 -1) </details> ### 📄 Description #### Details When running out of disk space when using a cache, try to perform a global cache cleanup. E.g. instead of cleaning up only the cache for the CURRENT file descriptor, go over all cache files an try to clean them up. This will proof useful when the disk is mostly occupied by big unused cache files. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-04 02:00:58 +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#1545
No description provided.