From nobody Tue Jan 28 22:43:55 2025 X-Original-To: dev-commits-src-branches@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 4YjL1R2pkDz5mH3V; Tue, 28 Jan 2025 22:43:55 +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 "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4YjL1R1y8bz3KJ5; Tue, 28 Jan 2025 22:43:55 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1738104235; 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=E4whhopDHXiK/67SCIiNDTerMje62unH6RLdxMlGm9g=; b=fbKcncpEDVdxXkuskrfJImbqBfGW8RsZFk3DXVQyCAzV4yVbQWNM4Yvpz0sxA2IBI2Uxsf xEWyeP85hUCTIz/gVjNzubSBKL9EmZG1BEh5UhjxoF9zxzlNLOZVo6ywvWjPA4RLnohvPZ Jba7fk/trFE+sYTi4yFkaAuT9a+dKB9MnJwbdFcFQ2pxi1w1F3h1YggBwz9m+rYnli2V8e BnDkye8ZI2fWpSRlx1uyt+5W27Nwk/Eu17CYeB5qNqT2yr6/TtOK9dWLm883bT0cZq1WPI XdPPcljKIcS0Q0ATQ5PjHqs3xDPdqfp+c2HyjYX/HWkd1+0LWBRES6J4sGXU5Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1738104235; 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=E4whhopDHXiK/67SCIiNDTerMje62unH6RLdxMlGm9g=; b=iBEXxvtQ2qoV4zDEs/q5/IX1OVCi57i9ZKHq+YkR7zVtSxNYHQ5JHs6gqTir29T7RHZRSc to941khgKDUjpgou7D02/R0ULHwvAfJBi90BkmkRcc1T2141oVixiyhCp1DNI+HpDOm3d8 yGg0uJTa4zAoOQKFG73PIW471aX93NEk2hR0EzgLltulDQoRemEgJDQQFgW3Po7IPeH27X QBRQXO0ugEwlqgZQSGFztyK0Pi4J39K2XE+j5lTD89/TB4I6+EfwCpDWFjtT2bt2tMXh/v oo40NrxAa86VkHQsUBlt3T+Pq33WhpdjCrbc5K38tJPQpfxZNUw8VihVhtSTWw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1738104235; a=rsa-sha256; cv=none; b=tiYWDZnqtt51xL9FK4Sn0THUD9AwQORVENTosMpvFN5Wb/VmBYSrw3nXReV4y/d5sT3D8c gOqu29EAhzQcsEd97uEEpZcDjD/77K+j0d43h49DhzWsSOHUpFOoEJtPMi3qL8mqDpcdie 8rWZT9YgogFV0l3vfTB5VVVhCFDTAxDydUTHTj5afVHq4iAbkhzdh1KUF6E/aOrDByarUT QlAOfC+pWXnpLKd4VM6cMA3/QCQlGjIPBxzpbrbfV+VnBTISROnQXzg8Mh9Zd0nq94qSAm 2grP3dpX195CigkHyAhS6ugFDWkYmwnWKc7dzf/8Za/4+YOpGxLXyP0e2cNJMA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none 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 4YjL1R1S4rzbbh; Tue, 28 Jan 2025 22:43:55 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 50SMhtDw099975; Tue, 28 Jan 2025 22:43:55 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 50SMhttg099972; Tue, 28 Jan 2025 22:43:55 GMT (envelope-from git) Date: Tue, 28 Jan 2025 22:43:55 GMT Message-Id: <202501282243.50SMhttg099972@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Rick Macklem Subject: git: 0f1f6d18d722 - stable/13 - fs: Add new VFCF_xxx flags for va_filerev List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-branches@freebsd.org Sender: owner-dev-commits-src-branches@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: rmacklem X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: 0f1f6d18d722834bc90b701dbcf4d924f2075310 Auto-Submitted: auto-generated The branch stable/13 has been updated by rmacklem: URL: https://cgit.FreeBSD.org/src/commit/?id=0f1f6d18d722834bc90b701dbcf4d924f2075310 commit 0f1f6d18d722834bc90b701dbcf4d924f2075310 Author: Rick Macklem AuthorDate: 2025-01-14 22:11:06 +0000 Commit: Rick Macklem CommitDate: 2025-01-28 22:43:21 +0000 fs: Add new VFCF_xxx flags for va_filerev Richard Kojedzinszky reported a problem via email, where the Linux NFSv4.2 client did not detect a change in a directory on a FreeBSD NFSv4.2 server. Adding support for the NFSv4.2 change_attr_type attribute seems to have fixed the problem. This requires that the server file system indicate if it increments va_filerev by one, since that file attribute is used for the NFSv4.2 change attribute. Fuse requires an indication that va_filerev is based on ctime. This patch adds VFCF_FILEREVINC and VFCF_FILEREVCT to indicate this. A future patch to the NFS server will use these flags. (cherry picked from commit 1cd455f39d886f27c33f7726f79fc4cc566da7b3) --- sys/sys/mount.h | 2 ++ sys/ufs/ffs/ffs_vfsops.c | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/sys/sys/mount.h b/sys/sys/mount.h index 90e68e560b2f..6e1da7ad12fe 100644 --- a/sys/sys/mount.h +++ b/sys/sys/mount.h @@ -653,6 +653,8 @@ struct ovfsconf { #define VFCF_SBDRY 0x01000000 /* Stop at Boundary: defer stop requests to kernel->user (AST) transition */ #define VFCF_FILEMOUNT 0x02000000 /* allow mounting files */ +#define VFCF_FILEREVINC 0x04000000 /* va_filerev is incr. by one */ +#define VFCF_FILEREVCT 0x08000000 /* va_filerev is set to ctime */ typedef uint32_t fsctlop_t; diff --git a/sys/ufs/ffs/ffs_vfsops.c b/sys/ufs/ffs/ffs_vfsops.c index 62d63210531a..a77784b32d78 100644 --- a/sys/ufs/ffs/ffs_vfsops.c +++ b/sys/ufs/ffs/ffs_vfsops.c @@ -117,7 +117,7 @@ static struct vfsops ufs_vfsops = { .vfs_susp_clean = process_deferred_inactive, }; -VFS_SET(ufs_vfsops, ufs, 0); +VFS_SET(ufs_vfsops, ufs, VFCF_FILEREVINC); MODULE_VERSION(ufs, 1); static b_strategy_t ffs_geom_strategy;