mirror of
https://github.com/s3fs-fuse/s3fs-fuse.git
synced 2026-04-24 21:06:02 +03:00
[PR #1319] [MERGED] Fixed upload error about mixuploading sparse file and truncating file #1916
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#1916
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/1319
Author: @ggtakec
Created: 6/27/2020
Status: ✅ Merged
Merged: 6/27/2020
Merged by: @gaul
Base:
master← Head:fix_mixupload📝 Commits (1)
32238b1Fixed upload error about mixuploading sparse file and truncating file📊 Changes
3 files changed (+101 additions, -26 deletions)
View changed files
📝
src/fdcache.cpp(+23 -7)📝
src/s3fs.cpp(+10 -2)📝
test/integration-test-main.sh(+68 -17)📄 Description
Relevant Issue (if applicable)
#1311 #1318
Details
There were cases where an error occurred when uploading a mix of files.
It occurs when the file is directly created by truncate(size larger than one entity size(5MB or more) of multipart upload).
In addition to truncate, it could also occur if the existing file size was changed significantly.
These bug has been fixed by this PR.
The fix is to set the modify flag to ON in the stretched area when performing an open(internal processing) that specifies the file size.
This bug is due to a missing fix when supporting the mix upload process.
And I also added test cases(I also changed some existing code comments).
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.