Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/2226975/?format=api
{ "id": 2226975, "url": "http://patchwork.ozlabs.org/api/patches/2226975/?format=api", "web_url": "http://patchwork.ozlabs.org/project/linux-cifs-client/patch/20260422-case-sensitivity-v9-6-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-6-be023cc070e2@oracle.com>", "list_archive_url": null, "date": "2026-04-22T23:30:00", "name": "[v9,06/17] hfs: Implement fileattr_get for case sensitivity", "commit_ref": null, "pull_url": null, "state": "new", "archived": false, "hash": "5c668612d1bf4aec3af9fb07103a7d157c7d8fb3", "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-6-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/2226975/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/2226975/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "\n <linux-cifs+bounces-11019-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=e1fXpcMg;\n\tdkim-atps=neutral", "legolas.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-cifs+bounces-11019-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=\"e1fXpcMg\"", "smtp.subspace.kernel.org;\n arc=none smtp.client-ip=10.30.226.201" ], "Received": [ "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 server-signature ECDSA (secp384r1) server-digest SHA384)\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4g1Fpf3JFDz1yD5\n\tfor <incoming@patchwork.ozlabs.org>; Thu, 23 Apr 2026 09:31:06 +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 8EBB0309A68A\n\tfor <incoming@patchwork.ozlabs.org>; Wed, 22 Apr 2026 23:30:32 +0000 (UTC)", "from localhost.localdomain (localhost.localdomain [127.0.0.1])\n\tby smtp.subspace.kernel.org (Postfix) with ESMTP id 060983A3E66;\n\tWed, 22 Apr 2026 23:30:32 +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 D4F4834C9AC;\n\tWed, 22 Apr 2026 23:30:31 +0000 (UTC)", "by smtp.kernel.org (Postfix) with ESMTPSA id 4CB28C2BCAF;\n\tWed, 22 Apr 2026 23:30:29 +0000 (UTC)" ], "ARC-Seal": "i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116;\n\tt=1776900631; cv=none;\n b=aRKDIR7MK8goySVLJ4odrAyLUfPfOvewXNnixBjUEke+LIyIsmiYZWMeugW0Y3fksVBQiop8kc8Qo1S8BncsbaLFUWllbvjnZcNDdpfwrPs9PqVG11VxapING5jAEGgEHAIzc7/CuTSIeSn5JlxmTwK/NiUCMXS1xfTwVSpMqSM=", "ARC-Message-Signature": "i=1; a=rsa-sha256; d=subspace.kernel.org;\n\ts=arc-20240116; t=1776900631; c=relaxed/simple;\n\tbh=MPKaRNRTQAJmLU63db2cpCz96vGgkp/OyFEdF/JZV/w=;\n\th=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References:\n\t In-Reply-To:To:Cc;\n b=O6jtvbrnQyKyfmpukWt/xXv5TOcTuh1LiJiKu/qWtFf66pWOkNxFB5aIZu2DO1nKtcwNxENS5ei95i65i87C3QUfw3ovWBqiUb8A9dvAg8NmMKMJurZoCWidp6hAwvzjZ+Qp/hI9lUIOZb9lT7xDqszwfaqZy8tkgOvE5GamyrQ=", "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=e1fXpcMg; 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=1776900631;\n\tbh=MPKaRNRTQAJmLU63db2cpCz96vGgkp/OyFEdF/JZV/w=;\n\th=From:Date:Subject:References:In-Reply-To:To:Cc:From;\n\tb=e1fXpcMgY2SMHELymHXAHGmlviYXMcVNNlzqAal1VpBV7erYU5endNHTdfpX5MooZ\n\t f+JuWCRMqWL8e80hPpoWXAMxwkLn7IB16/cZi65NHBXkaEf5TnjrdoRFxM8gZBlUgw\n\t Jk5gSsECQJX431rYYHXu3slHqw18xxQLdCv2bHvyydinfN/H8Och5gEK/HOFZ1URNE\n\t sikpykcJTWAt1mjnIFmlUtkZL/SlIfOInaRd0XfuqRpPEkd5nL/zwnCt0YOWtB4QCE\n\t qVqm6JBvyG2Jyn5j2Fqlxel64Q8npSc62QcurcUgvsUsFjsTWnYi5wPy/wVugDgj3N\n\t c0Cs7DCx8Ifaw==", "From": "Chuck Lever <cel@kernel.org>", "Date": "Wed, 22 Apr 2026 19:30:00 -0400", "Subject": "[PATCH v9 06/17] hfs: 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-6-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=2470;\n i=chuck.lever@oracle.com; h=from:subject:message-id;\n bh=sBcf0hJ0mC4j6QqtM39zu2705aCjapPtH74zbWqfwDA=;\n b=owEBbQKS/ZANAwAKATNqszNvZn+XAcsmYgBp6VoFF0e4b6ogjDyg7qWQkKa2tzF23QmRrkvgl\n 1JhhI/4PUiJAjMEAAEKAB0WIQQosuWwEobfJDzyPv4zarMzb2Z/lwUCaelaBQAKCRAzarMzb2Z/\n l6l6D/47inW6njVnLrm9cGl7rHBeXIeOzLam4R8IitrDpY/z9a0zHYqOMJJtNF4VPorGh56iQmq\n /Y33ADa4D2dGJvToyK1aWZiTwsw+VjlbXb8UFyE40/8uCycVaLHZzxWWKH9s4MECvRJ8nkhSh/N\n rYsQCA5w9+t/IOUESMngCZN63l6bwvacQhWLL155XEsRY0XECv4Y6CQtbJH48v9WH885Ai9sr7v\n XlvyYXX7BowqvkHrRxctP8guMj0SVXnKJXnlY2U53sWE3BYeIejoxMnc6IVfYQnv/r81SBpuRj0\n jPXLpDfwbrklFXl3YBT2jrfPnO+dnjRWY1GIvEmYRMOAWFfCapZl1ugQ+PSX2RZ27MwTfLjNcU8\n brWqM7TwREyysQvVO1A11EoMHpUWqw8U2CzrylD5rQt8EeYl7WG6WAGFUxdqZYLRtgB9mGxDfTF\n /qnkuIbEku1s8PeZW0ZgguYkwD4iXOAdJZaOauoHa8GJ/cFg0ibvBufljiRD/96SVfAw5iR+0/6\n Z19gbXyPIL9b5rK4/m+yxTHbgJ8v7ZLIs5KVqLYRgkj/LX+C7oXRKSeYnBzRe9B7K7Mip7V+QLq\n J1HUIJX2OJifJx3FpAitNTAGywhsnFNHHR9na6cAAoNKdYNJxTJlSASJz14vppwK7TS5KJZA28l\n 5dJ1Gsn27wSg1ow==", "X-Developer-Key": "i=chuck.lever@oracle.com; a=openpgp;\n fpr=28B2E5B01286DF243CF23EFE336AB3336F667F97" }, "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>\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 | 13 +++++++++++++\n 3 files changed, 16 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..f9a10444353a 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,17 @@ 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+\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 +727,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": [ "v9", "06/17" ] }