mirror of
https://github.com/s3fs-fuse/s3fs-fuse.git
synced 2026-04-24 21:06:02 +03:00
[GH-ISSUE #2751] Inconsistent mtime and size are gotten when stat an opened file #1286
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#1286
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 @fangqianan on GitHub (Nov 11, 2025).
Original GitHub issue: https://github.com/s3fs-fuse/s3fs-fuse/issues/2751
Additional Information
s3fs-fuse is mountted with an option: stat_cache_expire=10.
I opened a file inside the mountpath with python,
f=open("/mnt/mp/testdir/testfile", "rb"),and then stat this file and got size == 10, mtime == time_a.After 10 seconds, I uploaded a new testdir/testfile with size 20 onto the bucket. Now I stat this file via s3fs-fuse, I get size == 10 (as expected), but mtime == time_b (the latest mtime).
I think maybe the mtime should also be filled with time_a to keep it consistent with size.
Details about issue
s3fs-fuse version: 1.95
@ggtakec commented on GitHub (Dec 7, 2025):
We have released version 1.96.
If possible, would it be possible for you to try that version?
Thanks in advance for your assistance.