mirror of
https://github.com/s3fs-fuse/s3fs-fuse.git
synced 2026-04-25 05:16:00 +03:00
[PR #2674] [MERGED] Refactor StatCache truncate processing #2699
Labels
No labels
bug
bug
dataloss
duplicate
enhancement
feature request
help wanted
invalid
need info
performance
pull-request
question
question
testing
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/s3fs-fuse#2699
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/s3fs-fuse/s3fs-fuse/pull/2674
Author: @ggtakec
Created: 5/31/2025
Status: ✅ Merged
Merged: 6/8/2025
Merged by: @gaul
Base:
master← Head:stat/01_truncate📝 Commits (1)
1e0e2ccRefactor StatCache truncate processing📊 Changes
2 files changed (+157 additions, -134 deletions)
View changed files
📝
src/cache.cpp(+152 -130)📝
src/cache.h(+5 -4)📄 Description
Relevant Issue (if applicable)
n/a
Details
This PR is Phase 1 of fixes to refactor and improve StatCache.
(Subsequent PRs will follow based on this PR codes.)
TruncateCache/TruncateSymlinkarguments to truncate only when the size exceeds the limit.GetStat/IsNoObjectCache/AddStat/AddNoObjectCache/GetSymlink/AddSymlink/DelSymlinkHasLockto support the added flag.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.