get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 2232058,
    "url": "http://patchwork.ozlabs.org/api/patches/2232058/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/linux-ext4/patch/20260502-case-sensitivity-v13-3-aa853140311f@oracle.com/",
    "project": {
        "id": 8,
        "url": "http://patchwork.ozlabs.org/api/projects/8/?format=api",
        "name": "Linux ext4 filesystem development",
        "link_name": "linux-ext4",
        "list_id": "linux-ext4.vger.kernel.org",
        "list_email": "linux-ext4@vger.kernel.org",
        "web_url": null,
        "scm_url": null,
        "webscm_url": null,
        "list_archive_url": "",
        "list_archive_url_format": "",
        "commit_url_format": ""
    },
    "msgid": "<20260502-case-sensitivity-v13-3-aa853140311f@oracle.com>",
    "list_archive_url": null,
    "date": "2026-05-02T14:20:48",
    "name": "[v13,03/15] fat: Implement fileattr_get for case sensitivity",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "42434c8afb802003c4f4e6bfc73367ebfa3f5f88",
    "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-ext4/patch/20260502-case-sensitivity-v13-3-aa853140311f@oracle.com/mbox/",
    "series": [
        {
            "id": 502531,
            "url": "http://patchwork.ozlabs.org/api/series/502531/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/linux-ext4/list/?series=502531",
            "date": "2026-05-02T14:20:45",
            "name": "Exposing case folding behavior",
            "version": 13,
            "mbox": "http://patchwork.ozlabs.org/series/502531/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/2232058/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/2232058/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "\n <SRS0=Wxht=C7=vger.kernel.org=linux-ext4+bounces-16278-patchwork-incoming=ozlabs.org@ozlabs.org>",
        "X-Original-To": [
            "incoming@patchwork.ozlabs.org",
            "linux-ext4@vger.kernel.org"
        ],
        "Delivered-To": [
            "patchwork-incoming@legolas.ozlabs.org",
            "patchwork-incoming@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=mF7HURzM;\n\tdkim-atps=neutral",
            "legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=ozlabs.org\n (client-ip=150.107.74.76; helo=mail.ozlabs.org;\n envelope-from=srs0=wxht=c7=vger.kernel.org=linux-ext4+bounces-16278-patchwork-incoming=ozlabs.org@ozlabs.org;\n receiver=patchwork.ozlabs.org)",
            "gandalf.ozlabs.org;\n arc=pass smtp.remote-ip=\"2600:3c04:e001:36c::12fc:5321\"\n arc.chain=subspace.kernel.org",
            "gandalf.ozlabs.org;\n dmarc=pass (p=quarantine dis=none) header.from=kernel.org",
            "gandalf.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=mF7HURzM;\n\tdkim-atps=neutral",
            "gandalf.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org\n (client-ip=2600:3c04:e001:36c::12fc:5321; helo=tor.lore.kernel.org;\n envelope-from=linux-ext4+bounces-16278-patchwork-incoming=ozlabs.org@vger.kernel.org;\n receiver=ozlabs.org)",
            "smtp.subspace.kernel.org;\n\tdkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org\n header.b=\"mF7HURzM\"",
            "smtp.subspace.kernel.org;\n arc=none smtp.client-ip=10.30.226.201"
        ],
        "Received": [
            "from mail.ozlabs.org (gandalf.ozlabs.org [150.107.74.76])\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 4g798B3mJGz1yJw\n\tfor <incoming@patchwork.ozlabs.org>; Sun, 03 May 2026 00:21:46 +1000 (AEST)",
            "from mail.ozlabs.org (mail.ozlabs.org [IPv6:2404:9400:2221:ea00::3])\n\tby gandalf.ozlabs.org (Postfix) with ESMTP id 4g798B3Kq5z4wT7\n\tfor <incoming@patchwork.ozlabs.org>; Sun, 03 May 2026 00:21:46 +1000 (AEST)",
            "by gandalf.ozlabs.org (Postfix)\n\tid 4g798B3FTRz4wTH; Sun, 03 May 2026 00:21:46 +1000 (AEST)",
            "from tor.lore.kernel.org (tor.lore.kernel.org\n [IPv6:2600:3c04:e001:36c::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 gandalf.ozlabs.org (Postfix) with ESMTPS id 4g79865RF5z4wT7\n\tfor <patchwork-incoming@ozlabs.org>; Sun, 03 May 2026 00:21:42 +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 48D09300C82A\n\tfor <patchwork-incoming@ozlabs.org>; Sat,  2 May 2026 14:21:35 +0000 (UTC)",
            "from localhost.localdomain (localhost.localdomain [127.0.0.1])\n\tby smtp.subspace.kernel.org (Postfix) with ESMTP id 7801B33ADBC;\n\tSat,  2 May 2026 14:21:30 +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 36AB42820AC;\n\tSat,  2 May 2026 14:21:29 +0000 (UTC)",
            "by smtp.kernel.org (Postfix) with ESMTPSA id 80B94C2BCB3;\n\tSat,  2 May 2026 14:21:24 +0000 (UTC)"
        ],
        "ARC-Seal": [
            "i=2; a=rsa-sha256; d=ozlabs.org; s=201707; t=1777731706; cv=pass;\n\tb=M6bdyFUsySoz5cIB5eh+IL6YHZ/LMkkozCYlrjwY57tiVEMQFMibawVYxvaJt2cnNFeL47xh1QDWMnt6AezsEuJJHdhgbMdTKqvUSheQtkfeg7FhM0vTGrUpZxxKf9bstmqDWzzlCvpG0ZRwnn+NXNH/LvEZW60GcbV3JWVtiLWqooA0wdMqNSSN6Rx4qd6HQN7tZRIlhWRbFJHTQCNHjU5WxHHhCjYAm+OBefmo81e2A3OWffXQFwTyNGEdWcgIQ+xNbk4DDhIjrH2Zjum0KDrUcUJH9yw9nlqSYqqy7XffyFXnTKZKdw7A83GDnds8rWEuAH9TiT58UCaCI2+Ojg==",
            "i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116;\n\tt=1777731690; cv=none;\n b=tlR+upqDIDCEO9Gdcnt7qa/w0hNsw1Ek7QjEtXkZqhlhdBB9+pEcIuDtUSj2AAVyEZa7zGxmKGCSdX2i5DQ09lCjpt/QgXCI4naRn7dwOSD0gw9Cfnx8cOWM2FNdayacJ/AgDQIj+4s+JtsAGkVMExQpTU8lSegmUJFyyInk1NU="
        ],
        "ARC-Message-Signature": [
            "i=2; a=rsa-sha256; d=ozlabs.org; s=201707;\n\tt=1777731706; c=relaxed/relaxed;\n\tbh=K/+nQA2Wh0su98+N815/azVsLyy2ptcHLEd74SX0hIw=;\n\th=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References:\n\t In-Reply-To:To:Cc;\n b=icBL4Ih0/dWbQuhRTQm4yE1IknyhbEuxr/O/uVG19tPf0pdknzXpJGLClUG9vTk3tfO2SZfTe559dR49Lk8l/OchqUStPqeWUJ89NW9dxaTYfWQBQnV11VrHh2Zj+E/+xi+2mY9SyBLZu6iQFzl6wJjyXEpoyQ9whP/JnScl03Sr5W05LYSt18lbTj9ujkYOlIWmlTzFKjS3Bj2sf00TirIyaQlUJbnyXxbjeinYHS/Mq23VuEX+wri7ZSpCJrXWu/Zz/n16YK0K11Ni9qznlto43sE8awuktnlkAtuJWckl9IDMUB74pgTBt3tYuWEiSNj6bMLogRaLD6LSi1j2ew==",
            "i=1; a=rsa-sha256; d=subspace.kernel.org;\n\ts=arc-20240116; t=1777731690; c=relaxed/simple;\n\tbh=VR5IPc+tFJzycK0UcE5Jbwk0EDkpbGyJE15n77IJHGE=;\n\th=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References:\n\t In-Reply-To:To:Cc;\n b=ubCJNT+3fPeWdZM2ocEbEg48CckX6UXYhMbdAnsoxukhVPs862K48ZYDGoYw1EfmIg/xyZ2sta5ZS/XBKD9RH1dPd1+lWmvUaxBNtOu9v4ocmza+4uZTN18oX4bi+hqL7EI2B9hufqhtoDzRj6gEIXvECo6cQfKMjHn9CtYRvek="
        ],
        "ARC-Authentication-Results": [
            "i=2; gandalf.ozlabs.org;\n dmarc=pass (p=quarantine dis=none) header.from=kernel.org;\n dkim=pass (2048-bit key;\n unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256\n header.s=k20201202 header.b=mF7HURzM; dkim-atps=neutral;\n spf=pass (client-ip=2600:3c04:e001:36c::12fc:5321; helo=tor.lore.kernel.org;\n envelope-from=linux-ext4+bounces-16278-patchwork-incoming=ozlabs.org@vger.kernel.org;\n receiver=ozlabs.org) smtp.mailfrom=vger.kernel.org",
            "i=1; smtp.subspace.kernel.org;\n dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org\n header.b=mF7HURzM; 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=1777731689;\n\tbh=VR5IPc+tFJzycK0UcE5Jbwk0EDkpbGyJE15n77IJHGE=;\n\th=From:Date:Subject:References:In-Reply-To:To:Cc:From;\n\tb=mF7HURzMVcc76AIdcJ4gN+EjOH3PvQ+JAuxCubIcHZ3DqTATPTmSOPz/jj0c5a8eD\n\t 28ZXs+L6pe/biOR5DUyWkJHPJDw5dleKQ/IRG0xh1H5xyiuhhLw3v4NcwXJX/tNmPl\n\t slpIdOSJ4IBOx6SCzJ67PwcS8rkOVM4CDrlRuUhzIXbtan473DhGspkciBPe0VevA6\n\t Rp2ocOlWAHkGCdsO0j9rfVlgh+qZXcwWH5E8UI5KU1WwF5OW0XNdX1C6+y6HCJAWle\n\t 4bcHP6g4kfp77H3pKtZwKEQurPLu3aTximYGPcgJm6eEg/e7hAw1UNnz826iFUl/eL\n\t q1+/gmUdmiL+A==",
        "From": "Chuck Lever <cel@kernel.org>",
        "Date": "Sat, 02 May 2026 10:20:48 -0400",
        "Subject": "[PATCH v13 03/15] fat: Implement fileattr_get for case sensitivity",
        "Precedence": "bulk",
        "X-Mailing-List": "linux-ext4@vger.kernel.org",
        "List-Id": "<linux-ext4.vger.kernel.org>",
        "List-Subscribe": "<mailto:linux-ext4+subscribe@vger.kernel.org>",
        "List-Unsubscribe": "<mailto:linux-ext4+unsubscribe@vger.kernel.org>",
        "MIME-Version": "1.0",
        "Content-Type": "text/plain; charset=\"utf-8\"",
        "Content-Transfer-Encoding": "7bit",
        "Message-Id": "<20260502-case-sensitivity-v13-3-aa853140311f@oracle.com>",
        "References": "<20260502-case-sensitivity-v13-0-aa853140311f@oracle.com>",
        "In-Reply-To": "<20260502-case-sensitivity-v13-0-aa853140311f@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>,\n Roland Mainz <roland.mainz@nrubsig.org>",
        "X-Mailer": "b4 0.16-dev",
        "X-Developer-Signature": "v=1; a=openpgp-sha256; l=4362;\n i=chuck.lever@oracle.com; h=from:subject:message-id;\n bh=9b+u/mWoEz9peMeExQH28HkC0yIPxzHosHi0xcms5fc=;\n b=owEBbQKS/ZANAwAKATNqszNvZn+XAcsmYgBp9ghQ1BYK25WvfFyqzaHIDtV9hFSfc8aMAu7+E\n /AjIghIsY2JAjMEAAEKAB0WIQQosuWwEobfJDzyPv4zarMzb2Z/lwUCafYIUAAKCRAzarMzb2Z/\n l+sCEACEwFRDD4cEH+PMA/LESHjhccu/7sgZ/W4dO0ReHcgG6q8I3VlIBGNwySJb3aQT6tPBR2P\n 3fEALKs5vj4BcjwnQ/T7wi6mwonrIzt3/H+9ZpBO4ICDfo4eylvEsjK07IBWs6+VZrJSZM50aPO\n LCpBxPaF/SjqIgV5o3ECVcsngrUolIDiKCFzdZQZ7RQhKwwL62FAkCtT/F4VZK0MlnxVbmeafts\n i9IBGfkvqLlctMiKC8hRY8VkgQHfePgcxnt5Ls/dSqBQIayK1VGzji8MNrHvBQzltvnpG3JX9Ng\n 3d7SaNtBapC50AQ6O5E8D50xh3kD3/Q0Ug2WBke9rBQ1lujCwg+QLZrgBf8f9lGnCd1A5yuGuco\n kkWs7v7kK6Fkpptrz+W5oPDX5UZOv+sZY3trZiulaarYUDRjAnAU5eMnMZk4iD9avtCfSOu/t4M\n XDrmv8f9YTg829LpDEHZjaT7yjoax6U8UgWHZCuxo/Eh82T/uWHhqFBYmtnEpm8e5zzDlOYGVtV\n vLmTYoVy/zHK6VRD9YxUUgOMzcqBDdBwXp7Q/ftJiYg9aZoeOt+vX/FaauCtnkig073tY56kXP6\n eqxS31rR+BIHroVbUd7CHiXnToOhHWg25QOt1V9rfqvGyxziWOIrLyNKY8ExwBn9mYFIPwvAgNY\n 9+K8ozD0F9oABqw==",
        "X-Developer-Key": "i=chuck.lever@oracle.com; a=openpgp;\n fpr=28B2E5B01286DF243CF23EFE336AB3336F667F97",
        "X-Spam-Status": "No, score=-1.2 required=5.0 tests=ARC_SIGNED,ARC_VALID,\n\tDKIMWL_WL_HIGH,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DMARC_PASS,\n\tMAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=disabled\n\tversion=4.0.1",
        "X-Spam-Checker-Version": "SpamAssassin 4.0.1 (2024-03-25) on gandalf.ozlabs.org"
    },
    "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>\nReviewed-by: Roland Mainz <roland.mainz@nrubsig.org>\nSigned-off-by: Chuck Lever <chuck.lever@oracle.com>\n---\n fs/fat/fat.h         |  3 +++\n fs/fat/file.c        | 36 ++++++++++++++++++++++++++++++++++++\n fs/fat/namei_msdos.c |  1 +\n fs/fat/namei_vfat.c  |  1 +\n 4 files changed, 41 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..37e7049b4c8c 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,40 @@ 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+\tbool case_sensitive;\n+\n+\t/*\n+\t * FAT filesystems are case-insensitive by default. VFAT\n+\t * becomes case-sensitive when mounted with 'check=strict',\n+\t * which installs vfat_dentry_ops. MSDOS has no such option;\n+\t * its 'nocase' mount option selects case-sensitive matching.\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.isvfat)\n+\t\tcase_sensitive = sbi->options.name_check == 's';\n+\telse\n+\t\tcase_sensitive = sbi->options.nocase;\n+\n+\tif (!case_sensitive) {\n+\t\tfa->fsx_xflags |= FS_XFLAG_CASEFOLD;\n+\t\tfa->flags |= FS_CASEFOLD_FL;\n+\t\tif (!sbi->options.isvfat)\n+\t\t\tfa->fsx_xflags |= FS_XFLAG_CASENONPRESERVING;\n+\t}\n+\tif (d_inode(dentry)->i_flags & S_IMMUTABLE) {\n+\t\tfa->fsx_xflags |= FS_XFLAG_IMMUTABLE;\n+\t\tfa->flags |= FS_IMMUTABLE_FL;\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 +610,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": [
        "v13",
        "03/15"
    ]
}