mirror of
https://github.com/s3fs-fuse/s3fs-fuse.git
synced 2026-04-25 05:16:00 +03:00
[PR #321] [MERGED] 320: delete stat cache entry in s3fs_fsync so st_size is refreshed #1460
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#1460
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/321
Author: @mcellis33
Created: 12/18/2015
Status: ✅ Merged
Merged: 12/20/2015
Merged by: @ggtakec
Base:
master← Head:320📝 Commits (1)
163daa5320: delete stat cache entry in s3fs_fsync so st_size is refreshed📊 Changes
1 file changed (+3 additions, -0 deletions)
View changed files
📝
src/s3fs.cpp(+3 -0)📄 Description
@ggtakec
My proposed solution to #320 is for
s3fs_fsyncto delete the stat cache entry. Then, any subsequent operations will need to refresh the stat cache with a HEAD request. This will negatively impact performance in that it will cause more round trips. However, this is the simplest way to makes3fs_fsynccorrect. Someone who understands more about how the stat cache works could try to surgically update the stat cache to reflect the new file size ins3fs_fsync.With this change, the test program from the #320 description outputs
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.