mirror of
https://github.com/s3fs-fuse/s3fs-fuse.git
synced 2026-04-25 13:26:00 +03:00
[GH-ISSUE #320] fsync does not update stat cache #167
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#167
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?
Originally created by @mcellis33 on GitHub (Dec 18, 2015).
Original GitHub issue: https://github.com/s3fs-fuse/s3fs-fuse/issues/320
When I perform these operations on a file:
statreturnsst_size == 0even though I wrote more than 0 bytes and synced them.The offending call stack is
GetStatencounters a stat cache hit, and the stat cache entry hasst_size == 0.s3fs_createcreates the stat cache entry withst_size == 0. The root cause of the bug is thats3fs_fsyncdoes not update the stat cache to reflect the new size.Here is a C program to reproduce this. You will need to point
nameat your s3fs-fuse instance. The output should look like@ggtakec commented on GitHub (Dec 20, 2015):
@mcellis33 Thans for fixing this bug.