mirror of
https://github.com/s3fs-fuse/s3fs-fuse.git
synced 2026-04-25 13:26:00 +03:00
[PR #104] [MERGED] fix rename before close #1347
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#1347
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/104
Author: @kahing
Created: 1/12/2015
Status: ✅ Merged
Merged: 1/13/2015
Merged by: @ggtakec
Base:
master← Head:rename_before_close📝 Commits (1)
03d84a0fix rename before close📊 Changes
8 files changed (+386 additions, -269 deletions)
View changed files
📝
src/fdcache.cpp(+13 -0)📝
src/fdcache.h(+2 -0)📝
src/s3fs.cpp(+3 -0)📝
test/Makefile.am(+6 -0)📝
test/integration-test-common.sh(+1 -1)➕
test/integration-test-main.sh(+292 -0)➕
test/rename_before_close.c(+67 -0)📝
test/small-integration-test.sh(+2 -268)📄 Description
nautilus does this when you drag and drop to overwrite a file:
previously, doing this on s3fs would result in an empty target file
because after the rename, s3fs would not flush the content of
.goutputstream-XXXXXX to target file.
this change moves the FdEntity from the old path to the new path
whenever rename happens. On flush s3fs would now flush the correct
content to the rename target.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.