get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 2227334,
    "url": "http://patchwork.ozlabs.org/api/patches/2227334/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/linux-cifs-client/patch/20260423-case-sensitivity-v10-10-c385d674a6cf@oracle.com/",
    "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": "<20260423-case-sensitivity-v10-10-c385d674a6cf@oracle.com>",
    "list_archive_url": null,
    "date": "2026-04-23T13:12:13",
    "name": "[v10,10/17] cifs: Implement fileattr_get for case sensitivity",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "b517beaad29cf08b55eb8dea11a98d367e9c20a4",
    "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/20260423-case-sensitivity-v10-10-c385d674a6cf@oracle.com/mbox/",
    "series": [
        {
            "id": 501195,
            "url": "http://patchwork.ozlabs.org/api/series/501195/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/linux-cifs-client/list/?series=501195",
            "date": "2026-04-23T13:12:06",
            "name": "Exposing case folding behavior",
            "version": 10,
            "mbox": "http://patchwork.ozlabs.org/series/501195/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/2227334/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/2227334/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "\n <linux-cifs+bounces-11053-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=mXLpsysw;\n\tdkim-atps=neutral",
            "legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org\n (client-ip=172.105.105.114; helo=tor.lore.kernel.org;\n envelope-from=linux-cifs+bounces-11053-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=\"mXLpsysw\"",
            "smtp.subspace.kernel.org;\n arc=none smtp.client-ip=10.30.226.201"
        ],
        "Received": [
            "from tor.lore.kernel.org (tor.lore.kernel.org [172.105.105.114])\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 4g1cDK0fp7z1y2d\n\tfor <incoming@patchwork.ozlabs.org>; Thu, 23 Apr 2026 23:21:05 +1000 (AEST)",
            "from smtp.subspace.kernel.org (conduit.subspace.kernel.org\n [100.90.174.1])\n\tby tor.lore.kernel.org (Postfix) with ESMTP id E672130E7819\n\tfor <incoming@patchwork.ozlabs.org>; Thu, 23 Apr 2026 13:13:17 +0000 (UTC)",
            "from localhost.localdomain (localhost.localdomain [127.0.0.1])\n\tby smtp.subspace.kernel.org (Postfix) with ESMTP id A77B03EFD34;\n\tThu, 23 Apr 2026 13:12:47 +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 808D23E6DC6;\n\tThu, 23 Apr 2026 13:12:47 +0000 (UTC)",
            "by smtp.kernel.org (Postfix) with ESMTPSA id EA7ACC2BCB3;\n\tThu, 23 Apr 2026 13:12:44 +0000 (UTC)"
        ],
        "ARC-Seal": "i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116;\n\tt=1776949967; cv=none;\n b=Xtt568VLyIO5qeEkGQV8Lt5xiyYOURvirnBWqEfMEbA1nYHSV7UqM0rDjAacw14ucTWma/D+vDbGaUjpZTVSM1v3YAEtzM7NrVN8vM6q3QOZqQpb9dF8rfQgAnZIdhlTZn2o/r9vEX6FMJ0E1rF6ru2AL2ewOMByJVV5cJgHR8E=",
        "ARC-Message-Signature": "i=1; a=rsa-sha256; d=subspace.kernel.org;\n\ts=arc-20240116; t=1776949967; c=relaxed/simple;\n\tbh=7+KkoL3tT74ISbeLjawhJGX0pW4ZmQxGjH85QN72LoE=;\n\th=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References:\n\t In-Reply-To:To:Cc;\n b=GfsOXJfenVPB4yOvJjj/Ak26uL42UYA5R5l9a1+KfeqkiJpGK9ZsntjIo6nQAFoeogdyFNNQsKj2VCqc/Lc0LkFfKJVHnav6yBO7P5sQwLG4DEmTkVZv4Y6XVJ+nWsVBI9287DIeoROfUJ5j2V8IXHoZv987VioLLzFTMU86xGA=",
        "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=mXLpsysw; 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=1776949967;\n\tbh=7+KkoL3tT74ISbeLjawhJGX0pW4ZmQxGjH85QN72LoE=;\n\th=From:Date:Subject:References:In-Reply-To:To:Cc:From;\n\tb=mXLpsyswAnbg9YRnbdDz5iilJiJtO5A5NQKk4LLzYeYItugpZscHoMirsrTqdZklw\n\t uRtkt78P0tF2usiCD+AzS4DxtaFn09xWma60+OGMZDGC2z4KLuqlsVgVocBnT7pLN3\n\t fc64IaGd2c1zVnDMRXRPz8Yy3toUI4J6tXtIgz6oc9OeYAFmoWvWPJRtVRyijJdoZV\n\t q0sD8aHG6YvDLotHaXuFyr0SPfx/7edOwTyfUiI21xIqb/RDDQlbcOb7OFnCwpf2qi\n\t Er0QIXU00YmycTsOCInxKPdy5CSClVcIkivfVV+dtzWSu+NEuNvT8HtwfZ4/hcePzt\n\t fHCr2rk40/L+g==",
        "From": "Chuck Lever <cel@kernel.org>",
        "Date": "Thu, 23 Apr 2026 09:12:13 -0400",
        "Subject": "[PATCH v10 10/17] cifs: Implement fileattr_get for case\n sensitivity",
        "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-Type": "text/plain; charset=\"utf-8\"",
        "Content-Transfer-Encoding": "7bit",
        "Message-Id": "<20260423-case-sensitivity-v10-10-c385d674a6cf@oracle.com>",
        "References": "<20260423-case-sensitivity-v10-0-c385d674a6cf@oracle.com>",
        "In-Reply-To": "<20260423-case-sensitivity-v10-0-c385d674a6cf@oracle.com>",
        "To": "Al Viro <viro@zeniv.linux.org.uk>,\n Christian Brauner <brauner@kernel.org>, Jan Kara <jack@suse.cz>",
        "Cc": "linux-fsdevel@vger.kernel.org, linux-ext4@vger.kernel.org,\n linux-xfs@vger.kernel.org, linux-cifs@vger.kernel.org,\n linux-nfs@vger.kernel.org, linux-api@vger.kernel.org,\n linux-f2fs-devel@lists.sourceforge.net, hirofumi@mail.parknet.co.jp,\n linkinjeon@kernel.org, sj1557.seo@samsung.com, yuezhang.mo@sony.com,\n almaz.alexandrovich@paragon-software.com, slava@dubeyko.com,\n glaubitz@physik.fu-berlin.de, frank.li@vivo.com, tytso@mit.edu,\n adilger.kernel@dilger.ca, cem@kernel.org, sfrench@samba.org,\n pc@manguebit.org, ronniesahlberg@gmail.com, sprasad@microsoft.com,\n trondmy@kernel.org, anna@kernel.org, jaegeuk@kernel.org, chao@kernel.org,\n hansg@kernel.org, senozhatsky@chromium.org,\n Chuck Lever <chuck.lever@oracle.com>, Steve French <stfrench@microsoft.com>",
        "X-Mailer": "b4 0.16-dev",
        "X-Developer-Signature": "v=1; a=openpgp-sha256; l=2890;\n i=chuck.lever@oracle.com; h=from:subject:message-id;\n bh=x1bL8ZBB5Twab/6NumFLSBXEoTJcokaVZadIWFYQ2n4=;\n b=owEBbQKS/ZANAwAKATNqszNvZn+XAcsmYgBp6hq0DXYznTMLZfGDAShXh1kvv0fNjsbzn9DLA\n 4AHx4CpQRGJAjMEAAEKAB0WIQQosuWwEobfJDzyPv4zarMzb2Z/lwUCaeoatAAKCRAzarMzb2Z/\n l54FD/9J8IzDKD52G1HUWHY/FdLPMd/d+7cKv1E+H3pyAxYHbbvkBHQTOo20aZ4/jcIsKgebJk7\n 9O4KuEmRZdd1a7qxwEMwfae4Vdu5dwkZMKH340nVkskS4IV+ebV6VfpbRH5M8jmqXwmbE8x5x11\n CeQryqSIHtAB2vKyul0bDADKJVUABgdwcsVL3adw2OsR4isefIEmaok0e9pyKI0aQWmCK23daJp\n 1uGzMw11Z/kKLNhyexCnbFwzKnhvBEO4u+DruN3WfawsoZ3sR8D2/eekZIYTfaZMj8kr8BhTQ4z\n TgXOgXQOP8u4vmsPSG7qmVyABySAHuLYy/vMWGMnnBK/Bz6h8sZBZuIirGTrIVmC7Kw/9D0tiI/\n WZ3BmTYhsj2D9HGff+17Rpt4TCWRmiBI+IEccebG8+/fWJRTwjdAxr1dGbDmjZNEFoGakPKfrPy\n KVjK5LhJ/s7r6wnHVgcI7bnJ3vVjNA8YByiewwHEm33OVRyAFYCOym7imTZT4hAOx6S2IEmDl7P\n 920UVfYLeUU/KnNTPuXXv5W2237g8G90GpKuslHpUxCP+pMK1jD2qS3vGpGIky/BdpfnFZ697UP\n baZKfK7peDX96Z44E065p6B1U7ijJ7txWBmXNElNsgKhs+7vUaiN1cjvdKIj6SA1ySOYcURyUdQ\n IKLvYStt3oWHO8A==",
        "X-Developer-Key": "i=chuck.lever@oracle.com; a=openpgp;\n fpr=28B2E5B01286DF243CF23EFE336AB3336F667F97"
    },
    "content": "From: Chuck Lever <chuck.lever@oracle.com>\n\nUpper layers such as NFSD need a way to query whether a filesystem\nhandles filenames in a case-sensitive manner. Report CIFS/SMB case\nhandling behavior via the FS_XFLAG_CASEFOLD flag.\n\nCIFS servers (typically Windows or Samba) are usually case-insensitive\nbut case-preserving, meaning they ignore case during lookups but store\nfilenames exactly as provided.\n\nThe implementation reports case sensitivity based on the nocase mount\noption, which reflects whether the client expects the server to perform\ncase-insensitive comparisons. When nocase is set, the mount is reported\nas case-insensitive.\n\nThe callback is registered in all three inode_operations structures\n(directory, file, and symlink) to ensure consistent reporting across\nall inode types.\n\nAcked-by: Steve French <stfrench@microsoft.com>\nSigned-off-by: Chuck Lever <chuck.lever@oracle.com>\n---\n fs/smb/client/cifsfs.c | 20 ++++++++++++++++++++\n 1 file changed, 20 insertions(+)",
    "diff": "diff --git a/fs/smb/client/cifsfs.c b/fs/smb/client/cifsfs.c\nindex 2025739f070a..9b70ffa3e01d 100644\n--- a/fs/smb/client/cifsfs.c\n+++ b/fs/smb/client/cifsfs.c\n@@ -30,6 +30,7 @@\n #include <linux/xattr.h>\n #include <linux/mm.h>\n #include <linux/key-type.h>\n+#include <linux/fileattr.h>\n #include <uapi/linux/magic.h>\n #include <net/ipv6.h>\n #include \"cifsfs.h\"\n@@ -1199,6 +1200,22 @@ struct file_system_type smb3_fs_type = {\n MODULE_ALIAS_FS(\"smb3\");\n MODULE_ALIAS(\"smb3\");\n \n+static int cifs_fileattr_get(struct dentry *dentry, struct file_kattr *fa)\n+{\n+\tstruct cifs_sb_info *cifs_sb = CIFS_SB(dentry->d_sb);\n+\tstruct cifs_tcon *tcon = cifs_sb_master_tcon(cifs_sb);\n+\n+\t/*\n+\t * The nocase mount option installs case-insensitive dentry\n+\t * operations on this superblock. SMB preserves case on the\n+\t * wire and at rest, so the mount matches FS_XFLAG_CASEFOLD\n+\t * semantics: case-folded lookup, verbatim storage.\n+\t */\n+\tif (tcon->nocase)\n+\t\tfa->fsx_xflags |= FS_XFLAG_CASEFOLD;\n+\treturn 0;\n+}\n+\n const struct inode_operations cifs_dir_inode_ops = {\n \t.create = cifs_create,\n \t.atomic_open = cifs_atomic_open,\n@@ -1217,6 +1234,7 @@ const struct inode_operations cifs_dir_inode_ops = {\n \t.listxattr = cifs_listxattr,\n \t.get_acl = cifs_get_acl,\n \t.set_acl = cifs_set_acl,\n+\t.fileattr_get = cifs_fileattr_get,\n };\n \n const struct inode_operations cifs_file_inode_ops = {\n@@ -1227,6 +1245,7 @@ const struct inode_operations cifs_file_inode_ops = {\n \t.fiemap = cifs_fiemap,\n \t.get_acl = cifs_get_acl,\n \t.set_acl = cifs_set_acl,\n+\t.fileattr_get = cifs_fileattr_get,\n };\n \n const char *cifs_get_link(struct dentry *dentry, struct inode *inode,\n@@ -1261,6 +1280,7 @@ const struct inode_operations cifs_symlink_inode_ops = {\n \t.setattr = cifs_setattr,\n \t.permission = cifs_permission,\n \t.listxattr = cifs_listxattr,\n+\t.fileattr_get = cifs_fileattr_get,\n };\n \n /*\n",
    "prefixes": [
        "v10",
        "10/17"
    ]
}