From nobody Sun Jan 29 08:19:31 2023 X-Original-To: dev-commits-src-all@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 4P4PP03799z3bphL; Sun, 29 Jan 2023 08:19:32 +0000 (UTC) (envelope-from git@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 4P4PNz6hwLz3F3C; Sun, 29 Jan 2023 08:19:31 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1674980371; 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=8O4d9+u8dOIUXQke0xAKYsphkDoHb3ucjvcq3J+qtG4=; b=xL2HT4PqUfKfilbeXLYDJixiLtA+4m/M9zUAh3xCpD2hUzCVYH6vuRDR6/cga4y90OQhOL BrRm2GEfKS+dt6TK5owGvF4AOihyu9L289nSFlUOpGMKx5dCIUBg/VMPSWZ+KEBjI+Lp8n 00YRQ3iCBCLnQ2Y34IhjNkH5VH6LN/UcZO/78k5mCBY6gH3cXiovccr4ZjB939Wkvgf2qH rekbYZm0lp7BJDy0hxzj0zR6RdRy7mAHyiXwy9q5V9DFr2qaRoLI/3PuNTJhEVahEYnhKZ 2mf3bzzdsNZJQ3T3QjZ8nSumHQF83VpQP2SdjP3d22WyIybsZ/NzJGZQ1qZ3+w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1674980371; 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=8O4d9+u8dOIUXQke0xAKYsphkDoHb3ucjvcq3J+qtG4=; b=Op9jKH9CCWa8N80nhWAuHakARThzVtJ2LfSdIpQvuPs4qTh6+tLX8ZtkuIOaqiibZ6cUOA u5weXFmfVXg33AwrsKIJLRnJizIUUr7J1Jo0gfv6nyfAzukzh5fX5oiQ/WQgZSKiv7Ch4u H3Z1D/vRY3v6XSkNB0IyJlISqAHvuD5XIlbBl3K+WseWq4+2a2eHHIy+NxbT/B68bj/TTf qVLd64o3ztGYaOGz/cqPBNm09iJ+Aa+8cFNspgkuYVCQZVTzuU0QFJZDxYEdyH+hYKGnyk q/dehtx/WaLMnYgZz8l9F6AsNCgVLDn6lHi/EHScEjg6LO4VDHc/Oa8tzjLxuA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1674980371; a=rsa-sha256; cv=none; b=C93uRUFhmULDeV8m4f4t/IV3oqLRvoauXpmVuwbtt88e4GjdvHpa6Eu21eiNOFDZ9dYTAH fQo45YrFV+nZpjAUUyusXm4egnqxeG/oZsoaWOmzkqBa9S3owtpwX12/lkaxKnq9tFr2UP 82iJmKvkHDmjThI/H+geTLsQaPiJp8YwVDC8pqdwLhp/8X/Jn7TO0w7rq0Y9PExj+qP96U NaZ4thwBTs8RugPr+Q9MrHjvDjZ6Wnqnh1T9CceHDBPW8U0Cpjqs2xCY4mm8wORhmUa5T7 QoJLSk3uyUu2r+JsIwICG2tuGamC6vq2n+lskCf4z6sDDphJNgY1NqMHtDg3wg== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 4P4PNz5pKRzMNN; Sun, 29 Jan 2023 08:19:31 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 30T8JVLj080282; Sun, 29 Jan 2023 08:19:31 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 30T8JV89080281; Sun, 29 Jan 2023 08:19:31 GMT (envelope-from git) Date: Sun, 29 Jan 2023 08:19:31 GMT Message-Id: <202301290819.30T8JV89080281@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Fedor Uporov Subject: git: 0de4895aac4e - main - Fix pjfstest issue tests/rename/23.t List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: fsu X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 0de4895aac4ef86dcde43ec8c992b8abd1a3fcbf Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by fsu: URL: https://cgit.FreeBSD.org/src/commit/?id=0de4895aac4ef86dcde43ec8c992b8abd1a3fcbf commit 0de4895aac4ef86dcde43ec8c992b8abd1a3fcbf Author: Fedor Uporov AuthorDate: 2023-01-26 10:23:22 +0000 Commit: Fedor Uporov CommitDate: 2023-01-29 08:12:32 +0000 Fix pjfstest issue tests/rename/23.t This test creates two files like file0 and file1, then creates link to file1 and checks ctime on it. Then renames file0 to file1. Then checks ctime on link again. It is expected, that second ctime will be higher then first ctime, because rename happen. Add ctime updating for directory entry, which will be deleted on rename. Reviewed by: kib MFC after: 2 week Differential revision: https://reviews.freebsd.org/D38051 --- sys/fs/tmpfs/tmpfs_vnops.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sys/fs/tmpfs/tmpfs_vnops.c b/sys/fs/tmpfs/tmpfs_vnops.c index da934338948b..6a58ffdc0f4b 100644 --- a/sys/fs/tmpfs/tmpfs_vnops.c +++ b/sys/fs/tmpfs/tmpfs_vnops.c @@ -1233,6 +1233,10 @@ tmpfs_rename(struct vop_rename_args *v) tde = tmpfs_dir_lookup(tdnode, tnode, tcnp); tmpfs_dir_detach(tdvp, tde); + /* Update node's ctime because of possible hardlinks. */ + tnode->tn_status |= TMPFS_NODE_CHANGED; + tmpfs_update(tvp); + /* * Free the directory entry we just deleted. Note that the * node referred by it will not be removed until the vnode is