[Bug 261434] [sysutils/fusefs-sshfs] updating a file's atime causes its mtime to change too
- In reply to: bugzilla-noreply_a_freebsd.org: "[Bug 261434] [fusefs] change mtime and ctime on every read file"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 26 Jan 2022 01:26:45 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=261434
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 UTIME_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/71bfb92607ce2312c8adb7359a6d883473c51748
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/4496de197143a9c8aa57b5ebbf45c9941ec20b0b
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/
--
You are receiving this mail because:
You are the assignee for the bug.