From nobody Mon Feb 21 14:43:27 2022
X-Original-To: freebsd-questions@mlmmj.nyi.freebsd.org
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1])
	by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 207B519C781E
	for <freebsd-questions@mlmmj.nyi.freebsd.org>; Mon, 21 Feb 2022 14:43:38 +0000 (UTC)
	(envelope-from freebsd@jschneider.net)
Received: from slave.jschneider.net (slave90.jschneider.net [IPv6:2a00:1098:0:86:1000:4b:0:90])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256)
	(Client did not present a certificate)
	by mx1.freebsd.org (Postfix) with ESMTPS id 4K2Q614dCRz3rft
	for <freebsd-questions@FreeBSD.org>; Mon, 21 Feb 2022 14:43:37 +0000 (UTC)
	(envelope-from freebsd@jschneider.net)
X-Disposition: Mostly harlmess; Mon, 21 Feb 2022 14:43:36 +0000
Message-ID: <b2a23dd2-6543-05bd-f679-665f1666aa77@jschneider.net>
Date: Mon, 21 Feb 2022 14:43:27 +0000
List-Id: User questions <freebsd-questions.freebsd.org>
List-Archive: https://lists.freebsd.org/archives/freebsd-questions
List-Help: <mailto:questions+help@freebsd.org>
List-Post: <mailto:questions@freebsd.org>
List-Subscribe: <mailto:questions+subscribe@freebsd.org>
List-Unsubscribe: <mailto:questions+unsubscribe@freebsd.org>
Sender: owner-freebsd-questions@freebsd.org
X-BeenThere: freebsd-questions@freebsd.org
MIME-Version: 1.0
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101
 Thunderbird/91.6.0
To: freebsd-questions@FreeBSD.org
Content-Language: en-GB
From: Jon Schneider <freebsd@jschneider.net>
Subject: Mysterious atime changes
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Rspamd-Queue-Id: 4K2Q614dCRz3rft
X-Spamd-Bar: --
Authentication-Results: mx1.freebsd.org;
	dkim=none;
	dmarc=none;
	spf=pass (mx1.freebsd.org: domain of freebsd@jschneider.net designates 2a00:1098:0:86:1000:4b:0:90 as permitted sender) smtp.mailfrom=freebsd@jschneider.net
X-Spamd-Result: default: False [-2.01 / 15.00];
	 ARC_NA(0.00)[];
	 NEURAL_HAM_MEDIUM(-0.61)[-0.610];
	 FROM_HAS_DN(0.00)[];
	 TO_MATCH_ENVRCPT_ALL(0.00)[];
	 R_SPF_ALLOW(-0.20)[+ip6:2a00:1098:0:86:1000:4b:0:30/96];
	 MIME_GOOD(-0.10)[text/plain];
	 TO_DN_NONE(0.00)[];
	 DMARC_NA(0.00)[jschneider.net];
	 RCPT_COUNT_ONE(0.00)[1];
	 NEURAL_HAM_LONG(-0.17)[-0.172];
	 NEURAL_HAM_SHORT(-0.93)[-0.930];
	 MLMMJ_DEST(0.00)[freebsd-questions];
	 RCVD_COUNT_ZERO(0.00)[0];
	 FROM_EQ_ENVFROM(0.00)[];
	 R_DKIM_NA(0.00)[];
	 MIME_TRACE(0.00)[0:+];
	 ASN(0.00)[asn:44684, ipnet:2a00:1098::/32, country:GB];
	 MID_RHS_MATCH_FROM(0.00)[]
X-ThisMailContainsUnwantedMimeParts: N

I have a customer running a November update to 13.0 formerly 11.2 .

ZFS mirror with no exotic features used, normal Samba 4.13 port, common 
MS Windows clients. Perfectly common share definition configuration.

A problem came up with Solidworks whinging about clocks. Like so many 
error messages the real problem was something else specifically atimes 
of files getting set to Jan 19 03:14:07 2038 and this happens in front 
of my eyes on open files. The affected files are not just Solidworks but 
also Excel (unless they're using something else to write .xlsx files 
which I doubt).

So what could be going on (bearing in mind this happened with 11.2 as 
well) ? There's something at the client end (at least Solidworks and 
Excel), Samba, FreeBSD, old ZFS and OpenZFS involved.

Also 2038 isn't exactly what you expect with 64 bit systems and not that 
far in the future.

For fun I scanned my own server which is a syncthing dump and found only 
some Zwift files which syncthing had brought over from my Mac sometime 
mid-pandemic. On my Mac they don't have future atimes but just maybe 
they did when syncthing picked them up. Or is this the same filesystem bug ?

If anybody wouldn't find a quick look on their own machines I'd be 
interested to know. They're easy to find like this.

find somewhere -atime -0 etc.

Jon