From nobody Fri Apr 14 16:34:41 2023 X-Original-To: bugs@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 4Pyhqj3pxJz45YTL for ; Fri, 14 Apr 2023 16:34:41 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Pyhqj1dMQz3lqm for ; Fri, 14 Apr 2023 16:34:41 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1681490081; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=KInHo0mjdH3KLc3VwSvDe1sSgfzcufsSSh+IZ71qcQY=; b=cdokJFcFQC8G3RVNUBroMLPK432+CW1weEUF48BN/MSN0wCkMmMq/SgMHeRQajFGa/Tp3q 2HnAfbY/mgx8xPzb5gvJU9wWLSipq9UUwQkHZzmv8vqTo6gX/40h39tQoekebulDV6PyXK 8E5047xplmYomviFQxJnX9y3sv6v9jVIm3NFfWRFC+XfRiVCMBmbjv6hD3CzX1pf5wnlqS 66uXs9UotNfpwKgK19W3TCSBOvQNMHXWyxsefyNm7FGnmPhGbiRIwem+ml85gDuiS1q+yx IJu4IZFLyiR7SC6LHeJP6CvHySG6eKZ6J7XL14YWUSrt8vDs+N4Vllmu5RD2vQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1681490081; a=rsa-sha256; cv=none; b=snbu/nHsVVXnHaSWVwoRxhxXatK3P0AITMuSGU8Rsbjlmvm3pDwbTPeaBaiAXiZJ/7RRPC nKNrTLhzTRFBDekmnjZDeSBzwGSQ/0gnvhsp0q6pavpaQ8TjWQK01vVvJPp4U6W1By7A0h xzSBhSTRtHLJVibBiNdyPXxdPvnOoFid7PADGpWIzRIeaB1YCXEM/1lwK7f+vEEnzC04Eo BXUFyIB5jA3bY+lMeZs8FRij3lby3KYChAEgZS2cwjkz11/vMsfNrCZtqXoaE1IENvXPKr 0ntRo0DwJMC1n7RU/POoB3QDvuuUMX5TVL0ZaEizH3Jku4ic9Yjutjsre08x9w== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4Pyhqj0cHJzWxf for ; Fri, 14 Apr 2023 16:34:41 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 33EGYfgn070642 for ; Fri, 14 Apr 2023 16:34:41 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 33EGYfeT070641 for bugs@FreeBSD.org; Fri, 14 Apr 2023 16:34:41 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 270842] [nfsclient] sees out-of-date metadata until stat(1) Date: Fri, 14 Apr 2023 16:34:41 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: asomers@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-bugs@freebsd.org MIME-Version: 1.0 X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D270842 Bug ID: 270842 Summary: [nfsclient] sees out-of-date metadata until stat(1) Product: Base System Version: CURRENT Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: kern Assignee: bugs@FreeBSD.org Reporter: asomers@FreeBSD.org Using the NFS 4.2 client, I sometimes see out-of-date metadata, but it alwa= ys gets corrected by a stat(1) call. BACKGROUND: I do Rust development using three systems: * FreeBSD 13.1 file server * FreeBSD 13.1 editor client, mounting home dirs with NFS 4.2 * FreeBSD 14.0 build client, mounting home dirs with NFS 4.2 PROBLEM: Frequently when I save a file on the editor client, the "cargo" command on = the build client thinks that the file is unchanged. Occasionally "git diff" or "git status" also show the file is unchanged. However if I do "stat /path/to/file" on the build client, then afterwards git and cargo behave correctly. ANALYSIS: I don't know how cargo or git are checking the file's metadata and/or conte= nts. My best guess is that they're using READDIRPLUS, whereas stat(1) uses GETA= TTR. Or maybe they both check attributes the same way, but stat(1) does somethi= ng else that causes the client to refresh attributes from the server. This problem happens frequently enough that I can try to debug it using dtr= ace or anything else, if somebody can suggest what to look at. It usually happ= ens a few times per day during heavy development. --=20 You are receiving this mail because: You are the assignee for the bug.=