get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

GET /api/patches/2197464/?format=api
HTTP 200 OK
Allow: GET, PUT, PATCH, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

{
    "id": 2197464,
    "url": "http://patchwork.ozlabs.org/api/patches/2197464/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/linux-cifs-client/patch/20260217214741.1928576-16-cel@kernel.org/",
    "project": {
        "id": 12,
        "url": "http://patchwork.ozlabs.org/api/projects/12/?format=api",
        "name": "Linux CIFS Client",
        "link_name": "linux-cifs-client",
        "list_id": "linux-cifs.vger.kernel.org",
        "list_email": "linux-cifs@vger.kernel.org",
        "web_url": "",
        "scm_url": "",
        "webscm_url": "",
        "list_archive_url": "",
        "list_archive_url_format": "",
        "commit_url_format": ""
    },
    "msgid": "<20260217214741.1928576-16-cel@kernel.org>",
    "list_archive_url": null,
    "date": "2026-02-17T21:47:39",
    "name": "[v8,15/17] nfsd: Report export case-folding via NFSv3 PATHCONF",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "355d0a66fbf89b1b8f67d2cbd3d4d8ee0ef57e89",
    "submitter": {
        "id": 86689,
        "url": "http://patchwork.ozlabs.org/api/people/86689/?format=api",
        "name": "Chuck Lever",
        "email": "cel@kernel.org"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/linux-cifs-client/patch/20260217214741.1928576-16-cel@kernel.org/mbox/",
    "series": [
        {
            "id": 492484,
            "url": "http://patchwork.ozlabs.org/api/series/492484/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/linux-cifs-client/list/?series=492484",
            "date": "2026-02-17T21:47:24",
            "name": "Subject: Exposing case folding behavior",
            "version": 8,
            "mbox": "http://patchwork.ozlabs.org/series/492484/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/2197464/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/2197464/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "\n <linux-cifs+bounces-9430-incoming=patchwork.ozlabs.org@vger.kernel.org>",
        "X-Original-To": [
            "incoming@patchwork.ozlabs.org",
            "linux-cifs@vger.kernel.org"
        ],
        "Delivered-To": "patchwork-incoming@legolas.ozlabs.org",
        "Authentication-Results": [
            "legolas.ozlabs.org;\n\tdkim=pass (2048-bit key;\n unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256\n header.s=k20201202 header.b=X3LZY0Tt;\n\tdkim-atps=neutral",
            "legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org\n (client-ip=2600:3c0a:e001:db::12fc:5321; helo=sea.lore.kernel.org;\n envelope-from=linux-cifs+bounces-9430-incoming=patchwork.ozlabs.org@vger.kernel.org;\n receiver=patchwork.ozlabs.org)",
            "smtp.subspace.kernel.org;\n\tdkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org\n header.b=\"X3LZY0Tt\"",
            "smtp.subspace.kernel.org;\n arc=none smtp.client-ip=10.30.226.201"
        ],
        "Received": [
            "from sea.lore.kernel.org (sea.lore.kernel.org\n [IPv6:2600:3c0a:e001:db::12fc:5321])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange x25519)\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4fFth573RKz1xwC\n\tfor <incoming@patchwork.ozlabs.org>; Wed, 18 Feb 2026 08:53:57 +1100 (AEDT)",
            "from smtp.subspace.kernel.org (conduit.subspace.kernel.org\n [100.90.174.1])\n\tby sea.lore.kernel.org (Postfix) with ESMTP id 87B8930B7613\n\tfor <incoming@patchwork.ozlabs.org>; Tue, 17 Feb 2026 21:48:40 +0000 (UTC)",
            "from localhost.localdomain (localhost.localdomain [127.0.0.1])\n\tby smtp.subspace.kernel.org (Postfix) with ESMTP id 364112FD7DA;\n\tTue, 17 Feb 2026 21:48:24 +0000 (UTC)",
            "from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org\n [10.30.226.201])\n\t(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))\n\t(No client certificate requested)\n\tby smtp.subspace.kernel.org (Postfix) with ESMTPS id 1080F2FC890;\n\tTue, 17 Feb 2026 21:48:23 +0000 (UTC)",
            "by smtp.kernel.org (Postfix) with ESMTPSA id 6C552C19421;\n\tTue, 17 Feb 2026 21:48:21 +0000 (UTC)"
        ],
        "ARC-Seal": "i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116;\n\tt=1771364904; cv=none;\n b=tyl1L883yVFJQ7yezMFtqA/yXDhN737vAKRd42L7le9oUi5hMB3TuZwY2+giw604YI4PcBzE9CizaOCu2YmkfF+wo4BR2KXkjqngunVh0mNox1rwFGlAnp92Oq1JE8GXEWEbrwyXcRFA47uGB2nPeZdB6lcEF1gP+oMZwxq1iz8=",
        "ARC-Message-Signature": "i=1; a=rsa-sha256; d=subspace.kernel.org;\n\ts=arc-20240116; t=1771364904; c=relaxed/simple;\n\tbh=Dd5XvbFq8sNtjT82uprdbJyovLfEA2SezO5PUkzeizk=;\n\th=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References:\n\t MIME-Version;\n b=OzAg8cYHbRqEGt5suiUjOakqvKVSaUY1mSJjL6bl6K8JK3QXiKf1nVIpKVOoW0Gvda98dhTUdju5psf0Un6SgZPhQsjNal4YdWv6JZbcrPpT5XS4h3xG5EnBOe2aJBVdjn4F28aW+CER2G3jdtFn002j0iwgIOCdMkntX64rUvA=",
        "ARC-Authentication-Results": "i=1; smtp.subspace.kernel.org;\n dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org\n header.b=X3LZY0Tt; arc=none smtp.client-ip=10.30.226.201",
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org;\n\ts=k20201202; t=1771364903;\n\tbh=Dd5XvbFq8sNtjT82uprdbJyovLfEA2SezO5PUkzeizk=;\n\th=From:To:Cc:Subject:Date:In-Reply-To:References:From;\n\tb=X3LZY0Tt9FKDrz3sFvhv/TiANCY0luVLKqB9LIanDS1Ee6w/SScEY6/m6Ua7YX8to\n\t ncQxV3sqoTYMRuUEOu/PtuXRjBwCR7pA8D7N3blOWTaO/zFbSe8d4QZ7pue9mZjkcM\n\t H0trc9udJVqfXblyTMuXbdfQbdo88sfK/LJ+bsJUjajPutx8idI0e/XefTOvbzBhCm\n\t 48EdHw5LqKMtOEUbWJyWFoMLMQrx9M+T0wFx+dOgvmqQXGEDrGvqya9HtF8DPf3dLj\n\t gIl2dGXOqVAhvaEfeSBMKPmesUuOyZbBUiIk6gLpjk2PSPPvqJiEZwO8Tdz4jy2m6k\n\t is03vSddGBfyg==",
        "From": "Chuck Lever <cel@kernel.org>",
        "To": "Al Viro <viro@zeniv.linux.org.uk>,\n\tChristian Brauner <brauner@kernel.org>,\n\tJan Kara <jack@suse.cz>",
        "Cc": "linux-fsdevel@vger.kernel.org,\n\tlinux-ext4@vger.kernel.org,\n\tlinux-xfs@vger.kernel.org,\n\tlinux-cifs@vger.kernel.org,\n\tlinux-nfs@vger.kernel.org,\n\tlinux-api@vger.kernel.org,\n\tlinux-f2fs-devel@lists.sourceforge.net,\n\thirofumi@mail.parknet.co.jp,\n\tlinkinjeon@kernel.org,\n\tsj1557.seo@samsung.com,\n\tyuezhang.mo@sony.com,\n\talmaz.alexandrovich@paragon-software.com,\n\tslava@dubeyko.com,\n\tglaubitz@physik.fu-berlin.de,\n\tfrank.li@vivo.com,\n\ttytso@mit.edu,\n\tadilger.kernel@dilger.ca,\n\tcem@kernel.org,\n\tsfrench@samba.org,\n\tpc@manguebit.org,\n\tronniesahlberg@gmail.com,\n\tsprasad@microsoft.com,\n\ttrondmy@kernel.org,\n\tanna@kernel.org,\n\tjaegeuk@kernel.org,\n\tchao@kernel.org,\n\thansg@kernel.org,\n\tsenozhatsky@chromium.org,\n\tChuck Lever <chuck.lever@oracle.com>",
        "Subject": "[PATCH v8 15/17] nfsd: Report export case-folding via NFSv3 PATHCONF",
        "Date": "Tue, 17 Feb 2026 16:47:39 -0500",
        "Message-ID": "<20260217214741.1928576-16-cel@kernel.org>",
        "X-Mailer": "git-send-email 2.53.0",
        "In-Reply-To": "<20260217214741.1928576-1-cel@kernel.org>",
        "References": "<20260217214741.1928576-1-cel@kernel.org>",
        "Precedence": "bulk",
        "X-Mailing-List": "linux-cifs@vger.kernel.org",
        "List-Id": "<linux-cifs.vger.kernel.org>",
        "List-Subscribe": "<mailto:linux-cifs+subscribe@vger.kernel.org>",
        "List-Unsubscribe": "<mailto:linux-cifs+unsubscribe@vger.kernel.org>",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit"
    },
    "content": "From: Chuck Lever <chuck.lever@oracle.com>\n\nThe hard-coded MSDOS_SUPER_MAGIC check in nfsd3_proc_pathconf()\nonly recognizes FAT filesystems as case-insensitive. Modern\nfilesystems like F2FS, exFAT, and CIFS support case-insensitive\ndirectories, but NFSv3 clients cannot discover this capability.\n\nQuery the export's actual case behavior through ->fileattr_get\ninstead. This allows NFSv3 clients to correctly handle case\nsensitivity for any filesystem that implements the fileattr\ninterface. Filesystems without ->fileattr_get continue to report\nthe default POSIX behavior (case-sensitive, case-preserving).\n\nThis change assumes the (\"fat: Implement fileattr_get for case\nsensitivity\") has been applied, which ensures FAT filesystems\nreport their case behavior correctly via the fileattr interface.\n\nSigned-off-by: Chuck Lever <chuck.lever@oracle.com>\n---\n fs/nfsd/nfs3proc.c | 18 ++++++++++--------\n fs/nfsd/vfs.c      | 25 +++++++++++++++++++++++++\n fs/nfsd/vfs.h      |  2 ++\n 3 files changed, 37 insertions(+), 8 deletions(-)",
    "diff": "diff --git a/fs/nfsd/nfs3proc.c b/fs/nfsd/nfs3proc.c\nindex 42adc5461db0..9be0aca01de0 100644\n--- a/fs/nfsd/nfs3proc.c\n+++ b/fs/nfsd/nfs3proc.c\n@@ -717,17 +717,19 @@ nfsd3_proc_pathconf(struct svc_rqst *rqstp)\n \n \tif (resp->status == nfs_ok) {\n \t\tstruct super_block *sb = argp->fh.fh_dentry->d_sb;\n+\t\tbool case_insensitive, case_preserving;\n \n-\t\t/* Note that we don't care for remote fs's here */\n-\t\tswitch (sb->s_magic) {\n-\t\tcase EXT2_SUPER_MAGIC:\n+\t\tif (sb->s_magic == EXT2_SUPER_MAGIC) {\n \t\t\tresp->p_link_max = EXT2_LINK_MAX;\n \t\t\tresp->p_name_max = EXT2_NAME_LEN;\n-\t\t\tbreak;\n-\t\tcase MSDOS_SUPER_MAGIC:\n-\t\t\tresp->p_case_insensitive = 1;\n-\t\t\tresp->p_case_preserving  = 0;\n-\t\t\tbreak;\n+\t\t}\n+\n+\t\tresp->status = nfsd_get_case_info(&argp->fh,\n+\t\t\t\t\t\t  &case_insensitive,\n+\t\t\t\t\t\t  &case_preserving);\n+\t\tif (resp->status == nfs_ok) {\n+\t\t\tresp->p_case_insensitive = case_insensitive;\n+\t\t\tresp->p_case_preserving = case_preserving;\n \t\t}\n \t}\n \ndiff --git a/fs/nfsd/vfs.c b/fs/nfsd/vfs.c\nindex c884c3f34afb..75f862beb61f 100644\n--- a/fs/nfsd/vfs.c\n+++ b/fs/nfsd/vfs.c\n@@ -32,6 +32,7 @@\n #include <linux/writeback.h>\n #include <linux/security.h>\n #include <linux/sunrpc/xdr.h>\n+#include <linux/fileattr.h>\n \n #include \"xdr3.h\"\n \n@@ -2891,3 +2892,27 @@ nfsd_permission(struct svc_cred *cred, struct svc_export *exp,\n \n \treturn err? nfserrno(err) : 0;\n }\n+\n+/**\n+ * nfsd_get_case_info - get case sensitivity info for a file handle\n+ * @fhp: file handle that has already been verified\n+ * @case_insensitive: output, true if the filesystem is case-insensitive\n+ * @case_preserving: output, true if the filesystem preserves case\n+ *\n+ * Returns nfs_ok on success, or an nfserr on failure.\n+ */\n+__be32\n+nfsd_get_case_info(struct svc_fh *fhp, bool *case_insensitive,\n+\t\t   bool *case_preserving)\n+{\n+\tstruct file_kattr fa = {};\n+\tint err;\n+\n+\terr = vfs_fileattr_get(fhp->fh_dentry, &fa);\n+\tif (err && err != -ENOIOCTLCMD)\n+\t\treturn nfserrno(err);\n+\n+\t*case_insensitive = fa.fsx_xflags & FS_XFLAG_CASEFOLD;\n+\t*case_preserving = !(fa.fsx_xflags & FS_XFLAG_CASENONPRESERVING);\n+\treturn nfs_ok;\n+}\ndiff --git a/fs/nfsd/vfs.h b/fs/nfsd/vfs.h\nindex 702a844f2106..9425f2667d95 100644\n--- a/fs/nfsd/vfs.h\n+++ b/fs/nfsd/vfs.h\n@@ -156,6 +156,8 @@ __be32\t\tnfsd_readdir(struct svc_rqst *, struct svc_fh *,\n \t\t\t     loff_t *, struct readdir_cd *, nfsd_filldir_t);\n __be32\t\tnfsd_statfs(struct svc_rqst *, struct svc_fh *,\n \t\t\t\tstruct kstatfs *, int access);\n+__be32\t\tnfsd_get_case_info(struct svc_fh *fhp, bool *case_insensitive,\n+\t\t\t\t   bool *case_preserving);\n \n __be32\t\tnfsd_permission(struct svc_cred *cred, struct svc_export *exp,\n \t\t\t\tstruct dentry *dentry, int acc);\n",
    "prefixes": [
        "v8",
        "15/17"
    ]
}