libfuse / sshfs

A network filesystem client to connect to SSH servers
GNU General Public License v2.0
5.74k stars 488 forks source link

mtime adjusted when atime should be adjusted on some bsd instances #282

Open app1007 opened 2 years ago

app1007 commented 2 years ago

Upon accessing a file such as reading the contents with diff, the mtime is changed instead of atime.

Work around is to use sshfs with -o noatime.

Client: FreeBSD xyz 13.0-STABLE FreeBSD 13.0-STABLE GENERIC amd64 (as GhostBSD)

SSHFS version 3.7.2 FUSE library version 3.10.5 using FUSE kernel interface version 7.31 mount_fusefs [fuse4bsd] version: 0.3.9-pre1

OpenSSH_8.8p1, OpenSSL 1.1.1m-freebsd 14 Dec 2021-

Server: Linux #1529 SMP PREEMPT Tue Mar 8 12:26:46 GMT 2022 aarch64 GNU/Linux

OpenSSH_7.9p1 Debian-10+deb10u2+rpt1, OpenSSL 1.1.1d 10 Sep 2019

Also happens on OS X.

Client: Darwin 20.6.0 Darwin Kernel Version 20.6.0: Wed Jun 23 00:26:31 PDT 2021; root:xnu-7195.141.2~5/RELEASE_X86_64 x86_64

SSHFS version 2.5 (OSXFUSE SSHFS 2.5.0) FUSE library version: 2.9.9

OpenSSH_8.1p1, LibreSSL 2.7.3

I tried two Linux clients and they do not seem to have the same problem.