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

From: <bugzilla-noreply_at_freebsd.org>
Date: Tue, 25 Jan 2022 01:34:06 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=261434

--- Comment #11 from Alan Somers <asomers@FreeBSD.org> ---
(In reply to Ivan Rozhuk from comment #10)
Always sending mtime along with atime would be exactly the wrong thing for the
kernel to do.  Only sending atime is what it's supposed to do.

Looking at the code you sent, sshfs_utimens is ignoring the tv_nsec field,
which is clearly a bug.  If those fields are set to UTIME_OMIT then it
shouldn't set that timestamp.  This is a bug in sshfs, and you should report it
upstream.

Did your friend use "-o strictatime"?  It looks like that mount option is
required on Linux in order for it to actually update the atime.

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