mirror of
https://github.com/s3fs-fuse/s3fs-fuse.git
synced 2026-04-25 13:26:00 +03:00
[PR #444] [MERGED] Add mirror file logic for removing cache file #1510
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#1510
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/444
Author: @ggtakec
Created: 7/3/2016
Status: ✅ Merged
Merged: 7/3/2016
Merged by: @ggtakec
Base:
master← Head:master📝 Commits (1)
e8a8019Add mirror file logic for removing cache file📊 Changes
4 files changed (+120 additions, -17 deletions)
View changed files
📝
src/fdcache.cpp(+99 -16)📝
src/fdcache.h(+3 -1)📝
src/s3fs_util.cpp(+16 -0)📝
src/s3fs_util.h(+2 -0)📄 Description
This PR is for #428.
If the cache file is removed during upload/download a object, s3fs uploads/downloads the object which has some null bytes.
This patch changes a logic about upload/download when using cache files.
This new logic uses mirror file which is (hard) linked the cache file, then if the cache file is removed, s3fs can continue to upload/download a object without wrong data.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.