mirror of
https://github.com/s3fs-fuse/s3fs-fuse.git
synced 2026-04-25 05:16:00 +03:00
[PR #2135] [MERGED] Changed to rename cache files when renaming large files #2354
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#2354
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/2135
Author: @ggtakec
Created: 3/19/2023
Status: ✅ Merged
Merged: 3/21/2023
Merged by: @ggtakec
Base:
master← Head:rm_opened_file📝 Commits (1)
a2ff26dChanged to rename cache files when renaming large files📊 Changes
1 file changed (+4 additions, -1 deletions)
View changed files
📝
src/s3fs.cpp(+4 -1)📄 Description
Relevant Issue (if applicable)
#2128 #2130
Details
Always deleted cache files when renaming large files(these files use multipart uploading).
The cache file for these files should have been renamed in the same way as for non-large files, so this PR changed it to rename the cache file.
This was revealed by the bug reported by #2128.
FUSE temporarily changes the file name to
/.fuse_hiddenXXXYYYif the opened file is deleted by another process etc.When the opened file is closed, this temporarily file is also deleted.
In #2128, the cache file was deleted without being renamed after renaming, so the cache filewhich under the mirror directory remained.
(Files under the mirror directory are for file descriptors used when opening files.)
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.