get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 2226983,
    "url": "http://patchwork.ozlabs.org/api/patches/2226983/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/linux-cifs-client/patch/20260422-case-sensitivity-v9-3-be023cc070e2@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": "<20260422-case-sensitivity-v9-3-be023cc070e2@oracle.com>",
    "list_archive_url": null,
    "date": "2026-04-22T23:29:57",
    "name": "[v9,03/17] fat: Implement fileattr_get for case sensitivity",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "8d6423e2146bad40ae766202ca6c0f1bf44d2abd",
    "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/20260422-case-sensitivity-v9-3-be023cc070e2@oracle.com/mbox/",
    "series": [
        {
            "id": 501130,
            "url": "http://patchwork.ozlabs.org/api/series/501130/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/linux-cifs-client/list/?series=501130",
            "date": "2026-04-22T23:29:54",
            "name": "Exposing case folding behavior",
            "version": 9,
            "mbox": "http://patchwork.ozlabs.org/series/501130/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/2226983/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/2226983/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "\n <linux-cifs+bounces-11016-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=k4tE+CtT;\n\tdkim-atps=neutral",
            "legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org\n (client-ip=172.234.253.10; helo=sea.lore.kernel.org;\n envelope-from=linux-cifs+bounces-11016-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=\"k4tE+CtT\"",
            "smtp.subspace.kernel.org;\n arc=none smtp.client-ip=10.30.226.201"
        ],
        "Received": [
            "from sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10])\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 4g1Fqk4Npjz1yD5\n\tfor <incoming@patchwork.ozlabs.org>; Thu, 23 Apr 2026 09:32:02 +1000 (AEST)",
            "from smtp.subspace.kernel.org (conduit.subspace.kernel.org\n [100.90.174.1])\n\tby sea.lore.kernel.org (Postfix) with ESMTP id 3D4D130CE11A\n\tfor <incoming@patchwork.ozlabs.org>; Wed, 22 Apr 2026 23:30:25 +0000 (UTC)",
            "from localhost.localdomain (localhost.localdomain [127.0.0.1])\n\tby smtp.subspace.kernel.org (Postfix) with ESMTP id C6A643A1D1B;\n\tWed, 22 Apr 2026 23:30: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 9CA543909A2;\n\tWed, 22 Apr 2026 23:30:24 +0000 (UTC)",
            "by smtp.kernel.org (Postfix) with ESMTPSA id 2E6FDC2BCAF;\n\tWed, 22 Apr 2026 23:30:22 +0000 (UTC)"
        ],
        "ARC-Seal": "i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116;\n\tt=1776900624; cv=none;\n b=ARk0xymq3Ami/5I5YKWT8EqTRSAffyh3FaEx55+KVC8vHd1gUiNBnFB/5vZWolwONkEAfhfJHwDy1nCh8ELbdvyxFCZskYyxC8GaVFRZeotA4WJ+728r9+YzZGmxNiqn4ETptVj6yZhnZ3YM42r8Bmj9OqPL9AwB4iv2CD2joxo=",
        "ARC-Message-Signature": "i=1; a=rsa-sha256; d=subspace.kernel.org;\n\ts=arc-20240116; t=1776900624; c=relaxed/simple;\n\tbh=GBRThfl8AJdjIQY1hCpFaRdtjODXMDI8+pFJwoD6QKg=;\n\th=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References:\n\t In-Reply-To:To:Cc;\n b=MlWg4vdWmKWSi6e1/kXOmy3IrWlg0Oq4WvjOS2Af0fSa+w3PFr0HNZSOxZ7bEGBeYepDSRBKkOiJtIczF3ZGSjyygg5Ie4sFxpzYDHZWCKIQ5V5E7PHs1kEz0vZ6FxHQP0YZXtko3EkA11WmfkdfW09NRd24Ij3oN2DGGNTuslc=",
        "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=k4tE+CtT; 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=1776900624;\n\tbh=GBRThfl8AJdjIQY1hCpFaRdtjODXMDI8+pFJwoD6QKg=;\n\th=From:Date:Subject:References:In-Reply-To:To:Cc:From;\n\tb=k4tE+CtTCy91lH1KLjuk7dfQpj6x+CJYPTK6VM3JdAzb2vo+y/AHucgF/7TO2nrwC\n\t PFIqQSVrVcPTzjKI0WXiEgAudH1Ls3taP7YsEaruiOD+gHa7QWmZQA4VwVMSbyTv3e\n\t dgalGd0/+90yVhyns0efRHSGZyQYaxn4mwDEpL2MQHNUcAw1QHtnkBfSb881RrXNc5\n\t G8R7n8EYvehqtnQ7Ppn6B0zTLVs8HyS81fb7UwyBiUZfcCoO2sm+5VtczdxqG57B2/\n\t N19U3BqnNXvgq8/O5TI4SpgsFJsRlXhST7xmb4rH/iP3AsLZJg3JMRRX1rvG2t83Le\n\t 9YdrQYSLHOQwQ==",
        "From": "Chuck Lever <cel@kernel.org>",
        "Date": "Wed, 22 Apr 2026 19:29:57 -0400",
        "Subject": "[PATCH v9 03/17] fat: Implement fileattr_get for case 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": "<20260422-case-sensitivity-v9-3-be023cc070e2@oracle.com>",
        "References": "<20260422-case-sensitivity-v9-0-be023cc070e2@oracle.com>",
        "In-Reply-To": "<20260422-case-sensitivity-v9-0-be023cc070e2@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>",
        "X-Mailer": "b4 0.16-dev",
        "X-Developer-Signature": "v=1; a=openpgp-sha256; l=3856;\n i=chuck.lever@oracle.com; h=from:subject:message-id;\n bh=z0G26qNOK5JhmRz9M45By4F6NKvq8eKa6ZlbA0umD2I=;\n b=owEBbQKS/ZANAwAKATNqszNvZn+XAcsmYgBp6VoFLiiW56L89RUwmlQ1soliZZq/DIsmpLKff\n +1C1pI+Xv2JAjMEAAEKAB0WIQQosuWwEobfJDzyPv4zarMzb2Z/lwUCaelaBQAKCRAzarMzb2Z/\n lxikD/4hV6I9M/Jf/EZpJ7Rimh/r1H4+EuXqE0e13+FCtxToJagCMUfLVT5Tu6XJiukLE+qRVON\n PJ0TnIaJb5uH7KoYv7lIDR48gJHnByI2naajmjIyPpWn9sFrjAZbsqxN0NGX8YEIyaINMuLgO6M\n hvLO6BPGo1OSYLCOkE03yLxwcZYA0Yq/FEwzpME1YidTJI3SeRaDaqoVT4wR8ljZUR586OurMc3\n TNAi/vUqyl5buBLS2PoSzCYld0vmZ041CnswPJs+QeiaStllhlpyAbfksawWItng9NuxHMj5+Af\n 8CJ4OssG9/xdvKZmtTVWRr4U74BBqIsy78plQOwEPkdZKQc/Ky5Hai20Zlr8WyPYnvxi/O6GDUm\n hwtK7kLW87zDFT29P5h0M1aO719mSkbZKqpJsi8eRdM6v1USMzl0YJEEmb0Z6ztI+eTj05lwszc\n mXlbcs4cmLhg50qy+ipQBcJ5JCqca/WoTBqIADQ3tNTfBYTiAF9RWDiV5NeOgp7WlmfuYAplZXl\n oa1RcobsoKkMfP0I2UwNP2mXM8rm1bSad+oGyjIuNDXQ1GTDHGR5XnQXXNva7wpGv1eqrjk2efY\n 94ziO6VTPWSjlE6jhCHO81/8RkRx7cLM1U155965kwZSO/qP1nIijYP3NLwcfs4cEwyDsaaYZsG\n PsSVmFmotp0IkIg==",
        "X-Developer-Key": "i=chuck.lever@oracle.com; a=openpgp;\n fpr=28B2E5B01286DF243CF23EFE336AB3336F667F97"
    },
    "content": "From: Chuck Lever <chuck.lever@oracle.com>\n\nReport FAT's case sensitivity behavior via the FS_XFLAG_CASEFOLD\nand FS_XFLAG_CASENONPRESERVING flags. FAT filesystems are\ncase-insensitive by default.\n\nMSDOS supports a 'nocase' mount option that enables case-sensitive\nbehavior; check this option when reporting case sensitivity.\n\nVFAT long filename entries preserve case; without VFAT, only\nuppercased 8.3 short names are stored. MSDOS with 'nocase' also\npreserves case since the name-formatting code skips upcasing when\n'nocase' is set. Check both options when reporting case preservation.\n\nReviewed-by: Jan Kara <jack@suse.cz>\nSigned-off-by: Chuck Lever <chuck.lever@oracle.com>\n---\n fs/fat/fat.h         |  3 +++\n fs/fat/file.c        | 23 +++++++++++++++++++++++\n fs/fat/namei_msdos.c |  1 +\n fs/fat/namei_vfat.c  |  1 +\n 4 files changed, 28 insertions(+)",
    "diff": "diff --git a/fs/fat/fat.h b/fs/fat/fat.h\nindex 5a58f0bf8ce8..99ed9228a677 100644\n--- a/fs/fat/fat.h\n+++ b/fs/fat/fat.h\n@@ -10,6 +10,8 @@\n #include <linux/fs_context.h>\n #include <linux/fs_parser.h>\n \n+struct file_kattr;\n+\n /*\n  * vfat shortname flags\n  */\n@@ -408,6 +410,7 @@ extern void fat_truncate_blocks(struct inode *inode, loff_t offset);\n extern int fat_getattr(struct mnt_idmap *idmap,\n \t\t       const struct path *path, struct kstat *stat,\n \t\t       u32 request_mask, unsigned int flags);\n+int fat_fileattr_get(struct dentry *dentry, struct file_kattr *fa);\n extern int fat_file_fsync(struct file *file, loff_t start, loff_t end,\n \t\t\t  int datasync);\n \ndiff --git a/fs/fat/file.c b/fs/fat/file.c\nindex becccdd2e501..34d8588fcd3f 100644\n--- a/fs/fat/file.c\n+++ b/fs/fat/file.c\n@@ -17,6 +17,7 @@\n #include <linux/fsnotify.h>\n #include <linux/security.h>\n #include <linux/falloc.h>\n+#include <linux/fileattr.h>\n #include \"fat.h\"\n \n static long fat_fallocate(struct file *file, int mode,\n@@ -398,6 +399,27 @@ void fat_truncate_blocks(struct inode *inode, loff_t offset)\n \tfat_flush_inodes(inode->i_sb, inode, NULL);\n }\n \n+int fat_fileattr_get(struct dentry *dentry, struct file_kattr *fa)\n+{\n+\tstruct msdos_sb_info *sbi = MSDOS_SB(dentry->d_sb);\n+\n+\t/*\n+\t * FAT filesystems are case-insensitive by default. MSDOS\n+\t * supports a 'nocase' mount option for case-sensitive behavior.\n+\t *\n+\t * VFAT long filename entries preserve case. Without VFAT, only\n+\t * uppercased 8.3 short names are stored. MSDOS with 'nocase'\n+\t * also preserves case.\n+\t */\n+\tif (!sbi->options.nocase) {\n+\t\tfa->fsx_xflags |= FS_XFLAG_CASEFOLD;\n+\t\tif (!sbi->options.isvfat)\n+\t\t\tfa->fsx_xflags |= FS_XFLAG_CASENONPRESERVING;\n+\t}\n+\treturn 0;\n+}\n+EXPORT_SYMBOL_GPL(fat_fileattr_get);\n+\n int fat_getattr(struct mnt_idmap *idmap, const struct path *path,\n \t\tstruct kstat *stat, u32 request_mask, unsigned int flags)\n {\n@@ -575,5 +597,6 @@ EXPORT_SYMBOL_GPL(fat_setattr);\n const struct inode_operations fat_file_inode_operations = {\n \t.setattr\t= fat_setattr,\n \t.getattr\t= fat_getattr,\n+\t.fileattr_get\t= fat_fileattr_get,\n \t.update_time\t= fat_update_time,\n };\ndiff --git a/fs/fat/namei_msdos.c b/fs/fat/namei_msdos.c\nindex 4cc65f330fb7..0fd2971ad4b1 100644\n--- a/fs/fat/namei_msdos.c\n+++ b/fs/fat/namei_msdos.c\n@@ -644,6 +644,7 @@ static const struct inode_operations msdos_dir_inode_operations = {\n \t.rename\t\t= msdos_rename,\n \t.setattr\t= fat_setattr,\n \t.getattr\t= fat_getattr,\n+\t.fileattr_get\t= fat_fileattr_get,\n \t.update_time\t= fat_update_time,\n };\n \ndiff --git a/fs/fat/namei_vfat.c b/fs/fat/namei_vfat.c\nindex 918b3756674c..e909447873e3 100644\n--- a/fs/fat/namei_vfat.c\n+++ b/fs/fat/namei_vfat.c\n@@ -1185,6 +1185,7 @@ static const struct inode_operations vfat_dir_inode_operations = {\n \t.rename\t\t= vfat_rename2,\n \t.setattr\t= fat_setattr,\n \t.getattr\t= fat_getattr,\n+\t.fileattr_get\t= fat_fileattr_get,\n \t.update_time\t= fat_update_time,\n };\n \n",
    "prefixes": [
        "v9",
        "03/17"
    ]
}