From nobody Tue Jan 28 22:39:49 2025 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 4YjKwj3dTcz5mGkm; Tue, 28 Jan 2025 22:39:49 +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 4YjKwj2wgXz3Jbp; Tue, 28 Jan 2025 22:39:49 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1738103989; 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=ey9rliZGasBb3equzNOZIebWHvQU1WOPrgF1WJ4lhG8=; b=EtZw68crYwyCBwCPcxemy94NOiXS85srT9g7O0qAGET/GDZN3b0YgWC4wODNoyfRsjI1xM oPa4EqRq6gX+ps+TdO0h+smkDbiv93XhPG/vkHvVhbL3wNqZDK2WOefm3hieSkoGRPYN2t N7DfeIZgPTxcHvNvqQ8GuQX7ploxn95QKfQYEh6WSfrFcHMb0nYf7AftkiU7gXHVWIm8pQ 6LIg1rQCrk3N3nJ1dssEJWeBHR19vnwcEk0zyZ8jC87murRNX8NyBqeRml7Vper9sxA/rv QVg9IXiMhCWcZmMsjDOQ1VSm6W6ONbqH0/bjgK8EMAzFfOZ/WnCs9U+umKzaBg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1738103989; 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=ey9rliZGasBb3equzNOZIebWHvQU1WOPrgF1WJ4lhG8=; b=Qh5HkdABJINxl7gK/Fo/p6jhIDXDE3aSvrHFa+4DzQuvgKS3TFRLft6yC2llvcFmQ2J88o YBENJvs9+1QrohUjZH/j9v4u+XOsfWDOmFBkkkPKOWAtEhe/skR5pd0FAd790KUR5lYz6w 6bOZfjVpd3eUSoqdPu/2km+hD+EqSZ2R2MG7+L1PTgIqB4eBeff25hFUd5PBd40xR12rs4 X+XhCxT+nFqGNI7XU5Yha/8351/XmEmbJOaEmwtpV1gucB0++T5tzl2GoZYtU8J7rxTLIU ysOe5OZdZ95FyKHm1fx6rVUnmGgMQb7j+7DrqMaTKcyeBn00ymmvkv2Klf7AtQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1738103989; a=rsa-sha256; cv=none; b=VjQ+UXTwBRsiJVrNqfDikNQv5sKdQIRdl2JfL2wCjYndzlTsHgIF/AxSeDit9FmzxcqXXU Qt5i51IEvjRh0Ob/4DB27ZmFz4nY5wsEtLDf/tpH8UtRAjuXDZnKw49c3/Bq5T23+/6CSh alQegE8tSK+Lie2+TUPQL6BrtVZ/oyM36Wa0x8DJik2gt0xdhbFI/naefE2Wq/uE2iDTbn 4mlSZvziB6I7p2MjZ8kNXo4GDwnevRHyIseW4w27s16NKK5U/DybQ3/VY/q99nCle2g1ab 2L8o9QZT2VKPBXtpVQjAMACXdLpm3HeHsMpLGARBDyG7bBILL0RGoV7FUL5rnQ== 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 4YjKwj2TPYzblW; Tue, 28 Jan 2025 22:39:49 +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 50SMdnLo083595; Tue, 28 Jan 2025 22:39:49 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 50SMdndA083592; Tue, 28 Jan 2025 22:39:49 GMT (envelope-from git) Date: Tue, 28 Jan 2025 22:39:49 GMT Message-Id: <202501282239.50SMdndA083592@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: 7773d509d823 - stable/14 - fs: Add new VFCF_xxx flags for va_filerev 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: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@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/14 X-Git-Reftype: branch X-Git-Commit: 7773d509d823c2620abb831e2a2ff7ffe174904f Auto-Submitted: auto-generated The branch stable/14 has been updated by rmacklem: URL: https://cgit.FreeBSD.org/src/commit/?id=7773d509d823c2620abb831e2a2ff7ffe174904f commit 7773d509d823c2620abb831e2a2ff7ffe174904f Author: Rick Macklem AuthorDate: 2025-01-14 22:11:06 +0000 Commit: Rick Macklem CommitDate: 2025-01-28 22:38:52 +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 7a85d94cb4f2..efe230f518f8 100644 --- a/sys/sys/mount.h +++ b/sys/sys/mount.h @@ -687,6 +687,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 16a955bc7f6d..be24ba1e733a 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;