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

From: <bugzilla-noreply_at_freebsd.org>
Date: Mon, 24 Jan 2022 22:30:00 UTC

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

> The FUSE_SETATTR command allows the kernel to set any combination of timestamps

It may allow whatever, but it call utimens() with limited interface.
Even more, this utimens() can not accept UTIME_OMIT because it have different
values on linux and bsd. UTIME_NOW can be handled by sshfs locally.

My point is: kernel must call utimens() with correct atime+mtime values.

> So it's probably an sshfs bug that it always sets mtime whenever the kernel sets atime.

utimens() send SSH_FXP_SETSTAT/SSH_FXP_FSETSTAT that requires both: atime +

> Have you tried reproducing on Linux?

No. I load my linux first time since November 2020 just to make sure that this
is not fresh openssh issue.
Linux community too big to report and fix this issue years ago.

> It will probably happen if you mount with atime=on

I always use sshfs with atime=on, this is default.

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