Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/1.1/patches/2230433/?format=api
{ "id": 2230433, "url": "http://patchwork.ozlabs.org/api/1.1/patches/2230433/?format=api", "web_url": "http://patchwork.ozlabs.org/project/linux-ext4/patch/20260429-case-sensitivity-v12-6-8057123bebe0@oracle.com/", "project": { "id": 8, "url": "http://patchwork.ozlabs.org/api/1.1/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 }, "msgid": "<20260429-case-sensitivity-v12-6-8057123bebe0@oracle.com>", "date": "2026-04-29T18:07:17", "name": "[v12,06/15] hfs: Implement fileattr_get for case sensitivity", "commit_ref": null, "pull_url": null, "state": "new", "archived": false, "hash": "8074446b4f4a470bc60c70bd0615bef356af1ace", "submitter": { "id": 86689, "url": "http://patchwork.ozlabs.org/api/1.1/people/86689/?format=api", "name": "Chuck Lever", "email": "cel@kernel.org" }, "delegate": null, "mbox": "http://patchwork.ozlabs.org/project/linux-ext4/patch/20260429-case-sensitivity-v12-6-8057123bebe0@oracle.com/mbox/", "series": [ { "id": 502125, "url": "http://patchwork.ozlabs.org/api/1.1/series/502125/?format=api", "web_url": "http://patchwork.ozlabs.org/project/linux-ext4/list/?series=502125", "date": "2026-04-29T18:07:11", "name": "Exposing case folding behavior", "version": 12, "mbox": "http://patchwork.ozlabs.org/series/502125/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/2230433/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/2230433/checks/", "tags": {}, "headers": { "Return-Path": "\n <SRS0=X+hD=C4=vger.kernel.org=linux-ext4+bounces-16234-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=sn5WNYcw;\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=x+hd=c4=vger.kernel.org=linux-ext4+bounces-16234-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=sn5WNYcw;\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-16234-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=\"sn5WNYcw\"", "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 4g5QMY39pnz1yHZ\n\tfor <incoming@patchwork.ozlabs.org>; Thu, 30 Apr 2026 04:10:33 +1000 (AEST)", "from mail.ozlabs.org (mail.ozlabs.org [IPv6:2404:9400:2221:ea00::3])\n\tby gandalf.ozlabs.org (Postfix) with ESMTP id 4g5QMY2hVvz4w9R\n\tfor <incoming@patchwork.ozlabs.org>; Thu, 30 Apr 2026 04:10:33 +1000 (AEST)", "by gandalf.ozlabs.org (Postfix)\n\tid 4g5QMY2cvTz4wLt; Thu, 30 Apr 2026 04:10:33 +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 4g5QMR5xBBz4w9R\n\tfor <patchwork-incoming@ozlabs.org>; Thu, 30 Apr 2026 04:10:27 +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 43A74306A8DD\n\tfor <patchwork-incoming@ozlabs.org>; Wed, 29 Apr 2026 18:08:17 +0000 (UTC)", "from localhost.localdomain (localhost.localdomain [127.0.0.1])\n\tby smtp.subspace.kernel.org (Postfix) with ESMTP id 0DA1A41B37B;\n\tWed, 29 Apr 2026 18:07:45 +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 CF2EB41C2F4;\n\tWed, 29 Apr 2026 18:07:43 +0000 (UTC)", "by smtp.kernel.org (Postfix) with ESMTPSA id 13A24C19425;\n\tWed, 29 Apr 2026 18:07:41 +0000 (UTC)" ], "ARC-Seal": [ "i=2; a=rsa-sha256; d=ozlabs.org; s=201707; t=1777486233; cv=pass;\n\tb=iEYPR/3VYlqLWKf214Nc990qlVRKVZS4phlVu3h+fb6nHayqFHGevQTpDlVSLPdeDGc7gHVlOaziRHkG44lhR0fTq4GIf3Ty3065q5tlezNCVDpIdrj/n23ZoKvmJ4krbL6SaC8DnVSPXB9/LdEFbaYDcCr+RX1v0zvNGWcfcsqy+IZvxgYneeHZnSsVOHl3rPCi+vncfrSvslNDfaqXfoOWI5MEAU6CFu4dw9H3l2nUwmsoH8K4onFZBeIGrFawky7yNt7y1tcTF/CekuGSeC/2sz4s+28jV7y6BUw43IpootgqmNxDgmRsqJuKMl9moCKwrOJmWujgYt8X1Jr9rg==", "i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116;\n\tt=1777486064; cv=none;\n b=iuzi7gpdi9BRwTBZEjnkeq088+LvmIlLdS/YzAlcZzm2Nh9RaiMoeN430084JTjNvi1ObWI9jBPawhalPDvgCc9khwiY+QjQhV6P+tN8t14Azv9DeX8iwWOl0ku9BcaEpRXq0IO/RORmWRNdzuQC+83o04T6X8kaUggpYSlLUP4=" ], "ARC-Message-Signature": [ "i=2; a=rsa-sha256; d=ozlabs.org; s=201707;\n\tt=1777486233; c=relaxed/relaxed;\n\tbh=KQ6v8/XE00gOuJZ2DMrbUuMMEc2T2hPgO5EDoJ7YR40=;\n\th=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References:\n\t In-Reply-To:To:Cc;\n b=gGOp3QUTi0WWkxH2FOsecoScNp7DZyioVhIsTO+beQyjSXwSPXCAzF192ajbnHqT11MguO/S2JhKTkB/wyCMrdeOdaE8ZoH4dcyRM1ozwOFqVOkLSajKYUNJPFju/AGzjZ66lNBoKNHvoJ7j4sIA64peAxh7xbuQ5lRwcWa9hxWbpZaQU4FznHuCgJJo3Dse3SI7gl3cAE/CFJBZIvQ3cLT/aj92xUfz4HmreweGVH8bkHPBrUz9W9WNqBlxr+0M9DG/Mo3C3lYO1AxlODy4FMFpUQwLSGla3l+JX8HqE8sc4HlWaB1SUVmQ8qKV6tM/IC5IftwuK09n74zzVNv/tA==", "i=1; a=rsa-sha256; d=subspace.kernel.org;\n\ts=arc-20240116; t=1777486064; c=relaxed/simple;\n\tbh=+3MOBq8tIY5WA12oHUqvFyZTiNAU0Ok39mLnTTLF1eI=;\n\th=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References:\n\t In-Reply-To:To:Cc;\n b=GLZvWBYLzrjjxxb9hWCGMd+hHrFTLd2oDzGiUnovDumM4O6k8OAKI0/V87U/BmUeCzEBrqxzjX2qAcSTWinxHNumr/qS4/FgqwWH8Tcj/a0dXOV7OpHp/RSLi+EQiyNnC4B99IGoHFfC0wzPGNaUMe1I4oVYFfRMYdhkmYcasBU=" ], "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=sn5WNYcw; 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-16234-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=sn5WNYcw; 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=1777486063;\n\tbh=+3MOBq8tIY5WA12oHUqvFyZTiNAU0Ok39mLnTTLF1eI=;\n\th=From:Date:Subject:References:In-Reply-To:To:Cc:From;\n\tb=sn5WNYcwOS5XkPUDifxALSSvjDsQAw+ctspndg7a+7yGJf66U5P/pwLtU37qZgdMl\n\t LIKkqy62iDfd5R6bLLajEXvtUAepv4Qzue7IPilxoZgCg1lGP05qvpG2DS33iWExBD\n\t 6TjR9HPXAEFvLzL/FKMQR/q2Kdpb2dXYT+v6J4EjhVSTGFAq76Ce3yGRQCH6WqYlR3\n\t Yand7R2gFHFpRIM9CeDi1VGnHS2Dltv3UyfJvZh//bW6cZa4+vzZzkgXqNiV8aDjXu\n\t /1MUlShgFOIPwiMYGDqwi+ECUr/tDxKCY5mfIRqvbxkoeHazrCHDp+G7lB9yrEPiE8\n\t +/l5Gi/iOpYDw==", "From": "Chuck Lever <cel@kernel.org>", "Date": "Wed, 29 Apr 2026 14:07:17 -0400", "Subject": "[PATCH v12 06/15] hfs: 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": "<20260429-case-sensitivity-v12-6-8057123bebe0@oracle.com>", "References": "<20260429-case-sensitivity-v12-0-8057123bebe0@oracle.com>", "In-Reply-To": "<20260429-case-sensitivity-v12-0-8057123bebe0@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=2557;\n i=chuck.lever@oracle.com; h=from:subject:message-id;\n bh=2Xqe+DnVGNfulHUCzpURt2jTiqbh233GQupN+nsg0Mc=;\n b=owEBbQKS/ZANAwAKATNqszNvZn+XAcsmYgBp8kjcMbu8J3ZZsnJNx5OSfXNR0ib9yCFwb/FWx\n f6j5ru9r0OJAjMEAAEKAB0WIQQosuWwEobfJDzyPv4zarMzb2Z/lwUCafJI3AAKCRAzarMzb2Z/\n l0ElD/9CG/JBuZOsRDy5u0rsIVVp85xaf9Pwdb9wPm1EMWgEdP/MtQqJT+aF418t1ODxydLtMbc\n URaCw4swffGw8Y9Ye6yA58Rkqc7e3fnaboPeS8N4szbZKUjx31UN4UTJ1w2EtNmSsjJtewLfetr\n OAxzPaqmIwv4QgVmC0Ds66xv6/aICpiNRrkjn6OWG+qngSobPfJ8OGwPVTY3kJ2Wi6XSVaGgxzg\n FS09eFYuvC+OPL3xmuMIy+fBg5PXd1X64C5Xg1QJQQGV+KOEREy9WK6sywnWl4HPWmv10GgbART\n 4w11eU0QBjohFy2eW8cW3EXzdRKo+odZPIruAWWjXhVHLpEIis9vXChLWL4QiLqIPP9QySWzkPX\n Z0gxKe2VuAHjwMp4+FDkWU16A6H5+OOz2bBOrPABYoJpopDyMTvU8YfeJ0XroDBvTWv/Gvuvch2\n skDD1L0DvmgD8s89IBfqWRHsjdphECH/yAOdJtm44UNqIyaWA9VKbZb3N2KUHkIyMWEf7noSinH\n Gr2WAV6ebteMNaqeWqfeUzVR6N83mRgI32XBHGpui0ZP6iqgrx9S1tepz2qjQmTu65Y+s4pgKiY\n P05zJTQuM1wDP6Jnzc03kVW9sL9G+15YpY9OkzbPgzrfORIqiEfZnfDijD53dLzj3EGx7LHm/ju\n NctRkRdmw4g3Sow==", "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 HFS case sensitivity behavior via the FS_XFLAG_CASEFOLD\nflag. HFS is always case-insensitive (using Mac OS Roman case\nfolding) and always preserves case at rest.\n\nReviewed-by: Viacheslav Dubeyko <slava@dubeyko.com>\nReviewed-by: Roland Mainz <roland.mainz@nrubsig.org>\nSigned-off-by: Chuck Lever <chuck.lever@oracle.com>\n---\n fs/hfs/dir.c | 1 +\n fs/hfs/hfs_fs.h | 2 ++\n fs/hfs/inode.c | 14 ++++++++++++++\n 3 files changed, 17 insertions(+)", "diff": "diff --git a/fs/hfs/dir.c b/fs/hfs/dir.c\nindex f5e7efe924e7..c4c6e1623f55 100644\n--- a/fs/hfs/dir.c\n+++ b/fs/hfs/dir.c\n@@ -328,4 +328,5 @@ const struct inode_operations hfs_dir_inode_operations = {\n \t.rmdir\t\t= hfs_remove,\n \t.rename\t\t= hfs_rename,\n \t.setattr\t= hfs_inode_setattr,\n+\t.fileattr_get\t= hfs_fileattr_get,\n };\ndiff --git a/fs/hfs/hfs_fs.h b/fs/hfs/hfs_fs.h\nindex ac0e83f77a0f..1b23448c9a48 100644\n--- a/fs/hfs/hfs_fs.h\n+++ b/fs/hfs/hfs_fs.h\n@@ -177,6 +177,8 @@ extern int hfs_get_block(struct inode *inode, sector_t block,\n extern const struct address_space_operations hfs_aops;\n extern const struct address_space_operations hfs_btree_aops;\n \n+struct file_kattr;\n+int hfs_fileattr_get(struct dentry *dentry, struct file_kattr *fa);\n int hfs_write_begin(const struct kiocb *iocb, struct address_space *mapping,\n \t\t loff_t pos, unsigned int len, struct folio **foliop,\n \t\t void **fsdata);\ndiff --git a/fs/hfs/inode.c b/fs/hfs/inode.c\nindex 89b33a9d46d5..f41cc261684d 100644\n--- a/fs/hfs/inode.c\n+++ b/fs/hfs/inode.c\n@@ -18,6 +18,7 @@\n #include <linux/uio.h>\n #include <linux/xattr.h>\n #include <linux/blkdev.h>\n+#include <linux/fileattr.h>\n \n #include \"hfs_fs.h\"\n #include \"btree.h\"\n@@ -699,6 +700,18 @@ static int hfs_file_fsync(struct file *filp, loff_t start, loff_t end,\n \treturn ret;\n }\n \n+int hfs_fileattr_get(struct dentry *dentry, struct file_kattr *fa)\n+{\n+\t/*\n+\t * HFS compares filenames using Mac OS Roman case folding, so\n+\t * lookup is always case-insensitive. Names are stored on disk\n+\t * with case intact; CASENONPRESERVING stays clear.\n+\t */\n+\tfa->fsx_xflags |= FS_XFLAG_CASEFOLD;\n+\tfa->flags |= FS_CASEFOLD_FL;\n+\treturn 0;\n+}\n+\n static const struct file_operations hfs_file_operations = {\n \t.llseek\t\t= generic_file_llseek,\n \t.read_iter\t= generic_file_read_iter,\n@@ -715,4 +728,5 @@ static const struct inode_operations hfs_file_inode_operations = {\n \t.lookup\t\t= hfs_file_lookup,\n \t.setattr\t= hfs_inode_setattr,\n \t.listxattr\t= generic_listxattr,\n+\t.fileattr_get\t= hfs_fileattr_get,\n };\n", "prefixes": [ "v12", "06/15" ] }