mirror of
https://github.com/s3fs-fuse/s3fs-fuse.git
synced 2026-04-25 13:26:00 +03:00
[GH-ISSUE #1961] NFS client does not notice file updates via s3fs mount #992
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#992
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 @ggtakec on GitHub (Jun 12, 2022).
Original GitHub issue: https://github.com/s3fs-fuse/s3fs-fuse/issues/1961
Details about issue
When the directory mounted by s3fs is mounted by NFS, the file object created in S3 bucket by s3fs is not reflected.
It is unknown whether this is a problem with the NFS specifications.
Reproduction procedure
/mnt/s3with s3fs/mnt/s3on/mnt/nfswith NFS/mnt/s3(ex.touch /mnt/s3/test)/mnt/nfsis displayed byls.However, you can display
ls /mnt/nfs/test.A quick check shows that
GETATTR(/)is called from FUSE, but it seems that subsequentGETATTR(/test)has not been called.@ggtakec commented on GitHub (Jun 13, 2022):
It is uncertain, but it is suspected that the cause is that s3fs has not changed the stat(
mtime/atime) of the parent directory of the manipulated file.I continue to work this and test.
@giulianoc commented on GitHub (Jun 13, 2022):
Thank you, let me know if I can help you testing in my scenario.
@ggtakec commented on GitHub (Feb 12, 2023):
@giulianoc
Added
update_parent_dir_statoption to update parent directory stat information when file operations are performed.With this, I think that you can catch file and directory updates when used with NFS.
See #2016 for details.
Try using master's code with the
update_parent_dir_statoption.