mirror of
https://github.com/s3fs-fuse/s3fs-fuse.git
synced 2026-04-25 05:16:00 +03:00
[PR #2150] [MERGED] Corresponded to upload in case of calling release without flush #2355
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#2355
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/2150
Author: @ggtakec
Created: 4/16/2023
Status: ✅ Merged
Merged: 4/23/2023
Merged by: @ggtakec
Base:
master← Head:without_flush📝 Commits (1)
84d55a8Corresponded to upload in case of calling release without flush📊 Changes
1 file changed (+31 additions, -18 deletions)
View changed files
📝
src/s3fs.cpp(+31 -18)📄 Description
Relevant Issue (if applicable)
#2149
Details
This PR is additional logic against #2149.
#2149 has reported that
s3fs_releaseis called without callings3fs_flushhook when the mount directory exporting via NFS.To accommodate this, when
s3fs_releaseis called, s3fs intentionally upload the file if it is still in a modified state.No file uploads are performed in case of
s3fs_flushhook is called, so this additional processing has no impact outside of NFS(for now).Not only NFS, but if this case occurs in the future, this countermeasure will be effective.
There are no additional test cases as the tests for this issue cannot be implemented with test cases.
Instead, I tried not calling the
s3fs_flushfunction and it worked. (results were fine)🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.