Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/2227325/?format=api
{ "id": 2227325, "url": "http://patchwork.ozlabs.org/api/patches/2227325/?format=api", "web_url": "http://patchwork.ozlabs.org/project/linux-cifs-client/patch/20260423-case-sensitivity-v10-6-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-6-c385d674a6cf@oracle.com>", "list_archive_url": null, "date": "2026-04-23T13:12:09", "name": "[v10,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/20260423-case-sensitivity-v10-6-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/2227325/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/2227325/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "\n <linux-cifs+bounces-11049-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=YbnX9qLG;\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-11049-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=\"YbnX9qLG\"", "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)\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4g1cC05MWsz1yCv\n\tfor <incoming@patchwork.ozlabs.org>; Thu, 23 Apr 2026 23:19:56 +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 E114B30D38C6\n\tfor <incoming@patchwork.ozlabs.org>; Thu, 23 Apr 2026 13:12:53 +0000 (UTC)", "from localhost.localdomain (localhost.localdomain [127.0.0.1])\n\tby smtp.subspace.kernel.org (Postfix) with ESMTP id 1A3BC3EFD2C;\n\tThu, 23 Apr 2026 13:12:38 +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 E87E13EF0BF;\n\tThu, 23 Apr 2026 13:12:37 +0000 (UTC)", "by smtp.kernel.org (Postfix) with ESMTPSA id 6C70CC2BCB5;\n\tThu, 23 Apr 2026 13:12:35 +0000 (UTC)" ], "ARC-Seal": "i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116;\n\tt=1776949958; cv=none;\n b=il0gUvY1jIR0WUyZQStsi0fR2D/Az2RYIU0B41Sll7r/vN5Voku5y1ifwtCnliwRjgyCzsDr4MgF+VzV44YfCxf/XoTfWpk9IaGPllrwQVxNC+3okv4dkZkzQQLMDsq/BqACeFG1N/vb1LjGPyGQPlE9n73mkXiHmpX3apWlVFI=", "ARC-Message-Signature": "i=1; a=rsa-sha256; d=subspace.kernel.org;\n\ts=arc-20240116; t=1776949958; 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=XuUJy9cqu/TCHSanJccqXHUf/N1AwJBX6dimC0fxErMYUh+v7D+IPIfxOa4oBAtpH1sbFS1xsgTwj4x3yeSdEHmvvsjGlOBMWfyFuYSrDMyEcnseDPDR9sQnpjb2ln9cogMjLkpvHDvUdD4g3Bz50nbzUnPOxCU7H/Dwgi66I2s=", "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=YbnX9qLG; 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=1776949957;\n\tbh=MPKaRNRTQAJmLU63db2cpCz96vGgkp/OyFEdF/JZV/w=;\n\th=From:Date:Subject:References:In-Reply-To:To:Cc:From;\n\tb=YbnX9qLGbLoSqLXFmEo+ZrHo2w8tkXdK9XGny3lPAid0kyV9xzsR5Sqa1mfdMSN+L\n\t USknez0InEzMtqR8YVgL07V/2drgpYixdd6KuryyUv3RzU+2AZqMP5mWiNX2q7STfu\n\t t3IpnghLgGFAut9+GIANa0Bk42uR4ydWwMohzVjOn9Z+2K46cyBbje/1jAxVJR+0tZ\n\t c6ZsWC1XxhBHxQSXd5888Y5fAAp3Ud+PYaRXVyp8xWU4UUf5FHq+1QNOkZfgJtjgcE\n\t J9jO+u+OUJzwr8qeoVgmm81xSqOS+6w4nNPUQoNgbgaLulJy4Sn3iGqKMAu5gfNJ/n\n\t 5nZk2watHTCSg==", "From": "Chuck Lever <cel@kernel.org>", "Date": "Thu, 23 Apr 2026 09:12:09 -0400", "Subject": "[PATCH v10 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": "<20260423-case-sensitivity-v10-6-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=2470;\n i=chuck.lever@oracle.com; h=from:subject:message-id;\n bh=sBcf0hJ0mC4j6QqtM39zu2705aCjapPtH74zbWqfwDA=;\n b=owEBbQKS/ZANAwAKATNqszNvZn+XAcsmYgBp6hqzzbILQEa/TWCIPDoZ+K7gVeC/4E0kXJGIh\n ohl6IE0CT6JAjMEAAEKAB0WIQQosuWwEobfJDzyPv4zarMzb2Z/lwUCaeoaswAKCRAzarMzb2Z/\n l08nEACzGceBSSh2NRK6+AaJyPS8eG6EhtvrS5qjpyxCXzNdl7+8BzsQZRfmZVdVg6X0fBBXcN7\n fDo9uYYA9zVT/VI+HyniAVVh/NH5083YGjivayABq1vkCYfFSC/EOuwxcHIxTKlnSaTvVqdWAyG\n OZLikPvLkpymhBDRnhg3uJbel1ZB3HEowVEIsluR/N1tY1TpilMXGX5x8movwXRr40KNkyZf5Bo\n c388tMfQfUXcxF4+O9LUrM94ia84eXZ15RiNjgr4sv9ullebx7FW+46XmerKtZ1QtOeF1g1Jubl\n 9bApRY/nIU0s1UI2piJ16y/6SlwddqX649JfA9rrvkeBIgh3fXqtiOXm0XBunfE2czj2PgGRvZu\n y/Dyk/ySDYHQv/P6KqyR5phkYrdoP5vbfG9J2LyjYuZNj1sO0om7ImLAJZ1QE3KhsqWTA3Z5RI0\n fSYHTGG0QF3sNlhdJPIv2Jt8zsj2LvuEEqQjDTFmWDwfJuSuJLWv4Nb+Fpiap9o4W627+mPab6r\n VTu2h+9fKGBBMQyvQa7W0NKTaqs946fcGiCX7xVtBd6VSUF43pmb+eBgynvFVSsAvqbjQrKULCc\n WX6d0+azDb5xpnzK3m54FXIUMeSNw/SDKLDGTy//M5NtxAEsYWQ7ehhsN1M4uykmvt/AenFhVKQ\n DE3qfCwqPuvVV6g==", "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": [ "v10", "06/17" ] }