mirror of
https://github.com/s3fs-fuse/s3fs-fuse.git
synced 2026-04-25 05:16:00 +03:00
[PR #1349] [MERGED] Fixed a bug about move file over limit of ensure space #1933
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#1933
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/1349
Author: @ggtakec
Created: 8/2/2020
Status: ✅ Merged
Merged: 8/16/2020
Merged by: @gaul
Base:
master← Head:fix_ensure_mv📝 Commits (1)
7e3f939Fixed a bug about move file over limit of ensure space📊 Changes
6 files changed (+350 additions, -82 deletions)
View changed files
📝
src/fdcache.cpp(+108 -3)📝
src/fdcache.h(+8 -2)📝
src/s3fs.cpp(+198 -57)📝
src/s3fs_util.cpp(+24 -9)📝
src/s3fs_util.h(+9 -8)📝
test/integration-test-main.sh(+3 -3)📄 Description
Relevant Issue (if applicable)
#1345
Details
There is a case where the header(meta) information is put during multipart upload, and the file size becomes 0.
Thus, this PR code is that s3fs updates header(meta) information after multipart upload is completed.
About bug
This bug happens when s3fs move a file from another disk(not managed by s3fs) when there is not enough free disk space.
(It seems to be the same with a copy, but it has not been confirmed)
In such a case, we need to PUT each header information etc. after the file upload is completed.
About test case
In addition, I considered a test case for confirming this fix, but it was not decided upon completion.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.