Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 26 Jan 2022 01:26:45 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 261434] [sysutils/fusefs-sshfs] updating a file's atime causes its mtime to change too
Message-ID:  <bug-261434-227-pptuuHrp78@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-261434-227@https.bugs.freebsd.org/bugzilla/>
References:  <bug-261434-227@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D261434

Ivan Rozhuk <rozhuk.im@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|Works As Intended           |FIXED

--- Comment #20 from Ivan Rozhuk <rozhuk.im@gmail.com> ---
> We have already verified, from reading its code, that sshfs ignores any U=
TIME_OMIT value.  That is the bug.


No, this is not BUG, at least not sshfs, may be libfuse.

If you look into history:
https://github.com/libfuse/libfuse/commit/71bfb92607ce2312c8adb7359a6d88347=
3c51748

in past there was flag_utime_omit_ok flag:

> If the filesystem sets this flag then ->utimens() will receive UTIME_OMIT=
 and
UTIME_NOW values as specified in utimensat(2).


That has been removed later:
https://github.com/libfuse/libfuse/commit/4496de197143a9c8aa57b5ebbf45c9941=
ec20b0b


This describes why this was done:
https://sourceforge.net/p/fuse/mailman/fuse-devel/thread/E1NN4MD-0005ZG-7M%=
40pomaz-ex.szeredi.hu/#msg24235345

https://lore.kernel.org/lkml/4B2F7421.10005@byu.net/T/

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-261434-227-pptuuHrp78>