mirror of
https://github.com/s3fs-fuse/s3fs-fuse.git
synced 2026-04-25 05:16:00 +03:00
[PR #1345] [CLOSED] repair write file corruption when the disk space is insufficient #1927
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#1927
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/1345
Author: @liuyongqing
Created: 7/31/2020
Status: ❌ Closed
Base:
master← Head:master📝 Commits (1)
1d36003repair write file corruption when the disk space is insufficient📊 Changes
1 file changed (+15 additions, -30 deletions)
View changed files
📝
src/fdcache.cpp(+15 -30)📄 Description
Relevant Issue (if applicable)
https://github.com/s3fs-fuse/s3fs-fuse/issues/1346
Version: S3FS 1.8.6

Os:CentOS
Description:
When the disk space is insufficient, we use mv command move one file to s3fs mount point, the final data exist in s3 is zero length object, we can use -oensure_diskfree to easily reproduce it
Analysis:
the following is what happened in disk space sufficient case:
according to above analysis, a non expect zero object exist in s3,in other case, the data is corrupt.

Solution:
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.