-
Notifications
You must be signed in to change notification settings - Fork 489
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
sshfs file reads setting ctime, mtime instead of atime #239
Comments
Here is a similar bug affecting CIFS/SMB https://bugzilla.kernel.org/show_bug.cgi?id=198967 affecting kernel version 4.15. |
Thanks for the report! SSHFS itself does not update any timestamps, it forwards requests to the remote SSH server and forwards that the times that this server reports. So I'm afraid that whatever happens here, SSHFS can't influence it... |
Closing this for now, since there seems to be nothing that we can change in SSHFS to address this. |
We have observed timestamp changes when a backup process was reading sshfs mounted files. After analysing the situation with
incrond
andauditd
we see thatatime
is never touched, butctime
andmtime
are also touched sometimes when reading files. This makes a service like nextcloud generating conflicted copies situations, as it thinks files have been changed.Steps to reproduce
A
less
command does not always change mtime+ctime, only after some days, so that may be related to caching. But when it changes the timestamp, it is definetely the wrong one.sshfs is mounted on Ubuntu 18.04 server with kernel is 4.15.0-128-generic #131-Ubuntu i686 32bit as
[email protected]: /mnt/storage_sshfs fuse.sshfs defaults,allow_other,uid=33,gid=33,port=23,reconnect,ServerAliveInterval=30,ServerAliveCountMax=10,auto_cache,cache_timeout=115200,attr_timeout=115200,_netdev 0 0
May be related to #44, #93.
The text was updated successfully, but these errors were encountered: