Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/2227312/?format=api
{ "id": 2227312, "url": "http://patchwork.ozlabs.org/api/patches/2227312/?format=api", "web_url": "http://patchwork.ozlabs.org/project/linux-cifs-client/patch/20260423-case-sensitivity-v10-3-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-3-c385d674a6cf@oracle.com>", "list_archive_url": null, "date": "2026-04-23T13:12:06", "name": "[v10,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/20260423-case-sensitivity-v10-3-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/2227312/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/2227312/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "\n <linux-cifs+bounces-11046-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=W9vQKqa0;\n\tdkim-atps=neutral", "legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org\n (client-ip=2600:3c15:e001:75::12fc:5321; helo=sin.lore.kernel.org;\n envelope-from=linux-cifs+bounces-11046-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=\"W9vQKqa0\"", "smtp.subspace.kernel.org;\n arc=none smtp.client-ip=10.30.226.201" ], "Received": [ "from sin.lore.kernel.org (sin.lore.kernel.org\n [IPv6:2600:3c15:e001:75::12fc:5321])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange x25519 server-signature ECDSA (secp384r1) server-digest SHA384)\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4g1c5T0WK3z1y2d\n\tfor <incoming@patchwork.ozlabs.org>; Thu, 23 Apr 2026 23:15:09 +1000 (AEST)", "from smtp.subspace.kernel.org (conduit.subspace.kernel.org\n [100.90.174.1])\n\tby sin.lore.kernel.org (Postfix) with ESMTP id 7B61B301E573\n\tfor <incoming@patchwork.ozlabs.org>; Thu, 23 Apr 2026 13:12:38 +0000 (UTC)", "from localhost.localdomain (localhost.localdomain [127.0.0.1])\n\tby smtp.subspace.kernel.org (Postfix) with ESMTP id E48883EF665;\n\tThu, 23 Apr 2026 13:12: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 BE55F3ED12B;\n\tThu, 23 Apr 2026 13:12:30 +0000 (UTC)", "by smtp.kernel.org (Postfix) with ESMTPSA id 55E32C2BCB4;\n\tThu, 23 Apr 2026 13:12:28 +0000 (UTC)" ], "ARC-Seal": "i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116;\n\tt=1776949950; cv=none;\n b=pw79oImXgx6GgsfmDJAJM6bcFofCTtt8ORn+bKVHuCRKjiJmyQpYOFBTKe0AXmv4OiL2U8NneLqOobq77ows4kUvEsluJjI8FlmyMIv6pmjylRJSUXxXt+4/D3BHKYQz55PF3XzTTKXjjVFmMdpQRhn35esTwV7p4AAFy643yRk=", "ARC-Message-Signature": "i=1; a=rsa-sha256; d=subspace.kernel.org;\n\ts=arc-20240116; t=1776949950; 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=u/CO+gXa3ccBn6x+MZbIjbrYr/aLi+1TGl3q3GXUWI4ACWIAPJsBgdOJIovB0QBD6iT1WhTAcP8UJuRarhrnLqxpTd3QMHXI+eGsQA/PqSLXKy0IZWFhGv+KJTjHcPiWL06PwkLi56lSJHuSIay3WH5yO4vfMljGmOKkrC1Pjzg=", "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=W9vQKqa0; 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=1776949950;\n\tbh=GBRThfl8AJdjIQY1hCpFaRdtjODXMDI8+pFJwoD6QKg=;\n\th=From:Date:Subject:References:In-Reply-To:To:Cc:From;\n\tb=W9vQKqa0nGOsapVu7taHMUThskjH6lMOussU0W0x1SC1O9YkQUGpUUwXja8rSN48I\n\t TwK0A5mX73dlUuAowslo8MnRqxeGaGPL00NKfyISw18j0+ksFDk6nILM7fhh2F8D2E\n\t J1cBQ09B6cpv0KxeUtbo+Jnbciotr2F6pAPcJPGbFffPtGVS0yLyoX5cCwAuNb6W9E\n\t oVWdWQsG+tzAENnpBpig/UY+W0wc9yWFsfQ07pPb9N5MoaZ+DCA+cwPmQnwIrPy8WP\n\t WjLBNmOUu/SynhlD4oo/+fxgM0X5jyhtzhSqeB1VBeXYb8Ws23DXEEW2CaMbCKDUYZ\n\t cW9TkGOXp1+Rw==", "From": "Chuck Lever <cel@kernel.org>", "Date": "Thu, 23 Apr 2026 09:12:06 -0400", "Subject": "[PATCH v10 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": "<20260423-case-sensitivity-v10-3-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>", "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+XAcsmYgBp6hqzhQ4CSX2BgNJWYYLNu38a9BCDxEokRi4Xl\n ykrZ4frVAiJAjMEAAEKAB0WIQQosuWwEobfJDzyPv4zarMzb2Z/lwUCaeoaswAKCRAzarMzb2Z/\n lxTyD/9AFx9PEDAFHBJoF2p/hUJFYsfpPsY+fQSOYOQsvZHQWT02iVJ/Ps31IZocal19lZ6Ncwz\n GAlHBA5zy3e0k4UsVKDxnGrNIydJ6xjEgzW0zbPzIQszSAnMep56jmLfIcMPP8m1taBj+Zfelj9\n nTr4v3bt44/UTLyudqklgnRfoKAIyNuPjlowtNv2DNW6F6sZD8TXOgOsw8tm1szWdS+SnUEe+jF\n Pg4QjpzGrGuIieYWxkfyPTGzrDAS1HFJHSpsG5ppT53lgLknvuEgoKlfraZ7nXGfXAQVuQ8Xnz2\n Vv+vGhxI1PQQ6DWkSdQQLV14PfoVA3weiAPVK0e1djI7VEVChPy5KMWhhcDLtG1ViT1aLD+4Zz6\n 5jJGUGP76QqiKRQwNwIgRFGKIKHaMU8KcciPMrkiJQMMJ42OKI9xglRGXbU5Ruo++I6wjr5qer7\n FUz1vurjswos2vPktcWMyh+txl/XDVTK8lWFReLdeWgZB21wiQoXHkcggzgcPdkIpMPvM04xDyn\n iWwn8WHwS3/sgl7pPyE8kIHawXuoczf7i/iYXwNHpHX5QdhJKyPE1GAIEwkAJsA6edpb0TGrOKA\n 1KMQnEV2XWxw4B3bQnZlO3bfIAf7tW7SPYHYj5xRfh5031POsCr2TiqgPIjkk3uczVwRgkj5jIo\n k7wp6gkaNgTtdgg==", "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": [ "v10", "03/17" ] }