[Bug 261434] [fusefs] mtime and ctime changed on every read file

From: <bugzilla-noreply_at_freebsd.org>
Date: Mon, 24 Jan 2022 21:26:12 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=261434

--- Comment #6 from Ivan Rozhuk <rozhuk.im@gmail.com> ---
(In reply to Alan Somers from comment #5)

> The kernel only tries to change the file's mtime.

_M_time?


> I think this must be a bug in sshfs.  Have you tried reporting it upstream?

No, I do not try to do this.
I suppose that if linux do same than it already fixed, because bug is very
annoying.

https://github.com/libfuse/sshfs/blob/a2054a2b737577b63e97ea34d8c9976048766719/sshfs.c#L2663
This function transfer atime and mtime to remote side.

If time not set - sshfs uses current time:
https://github.com/libfuse/sshfs/blob/a2054a2b737577b63e97ea34d8c9976048766719/sshfs.c#L2676
Code added by this commit:
https://github.com/libfuse/sshfs/commit/f0452119e0e5365bd140e8dd47ff268d274f55de

Does kernel/fusefs set both times proper?

-- 
You are receiving this mail because:
You are the assignee for the bug.