mirror of
https://github.com/s3fs-fuse/s3fs-fuse.git
synced 2026-04-25 13:26:00 +03:00
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#1451
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/304
Author: @ggtakec
Created: 11/29/2015
Status: ✅ Merged
Merged: 11/29/2015
Merged by: @ggtakec
Base:
master← Head:master📝 Commits (4)
730262fMerge pull request #212 from s3fs-fuse/mastere1de134Merge branch 'master' into macosx8ffff5bMerge remote-tracking branch 'upstream/macosx'7b62de8Fixed a bug about mtime - #299📊 Changes
3 files changed (+17 additions, -17 deletions)
View changed files
📝
src/fdcache.cpp(+15 -15)📝
src/fdcache.h(+1 -1)📝
src/s3fs.cpp(+1 -1)📄 Description
s3fs had a bug(#299) that was s3fs could not set mtime to the file when the file was created with specifying mtime.
The bug occurred only if you started s3fs without cache files(not specified use_case option).
FUSE calls create/utimens/flush interface for s3fs when the file is created with mtime.
But utimens interface does not have file descriptor.
s3fs should search a fd from file path which is opened local file(cache).
But s3fs did not search it when s3fs was run without use_cache option.
This patch fixed it.
Be careful following:
If a file is created with mtime by some clients at same time on s3fs without use_cache, probably mtime for the file will be undefined.
This result is the same as the file content is undefined, s3fs is not guaranteed.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.