Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/2232062/?format=api
{ "id": 2232062, "url": "http://patchwork.ozlabs.org/api/patches/2232062/?format=api", "web_url": "http://patchwork.ozlabs.org/project/linux-cifs-client/patch/20260502-case-sensitivity-v13-5-aa853140311f@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": "<20260502-case-sensitivity-v13-5-aa853140311f@oracle.com>", "list_archive_url": null, "date": "2026-05-02T14:20:50", "name": "[v13,05/15] ntfs3: Implement fileattr_get for case sensitivity", "commit_ref": null, "pull_url": null, "state": "new", "archived": false, "hash": "2e98911b4eb49a942475a5c6c35c4290447c9e53", "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/20260502-case-sensitivity-v13-5-aa853140311f@oracle.com/mbox/", "series": [ { "id": 502530, "url": "http://patchwork.ozlabs.org/api/series/502530/?format=api", "web_url": "http://patchwork.ozlabs.org/project/linux-cifs-client/list/?series=502530", "date": "2026-05-02T14:20:45", "name": "Exposing case folding behavior", "version": 13, "mbox": "http://patchwork.ozlabs.org/series/502530/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/2232062/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/2232062/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "\n <linux-cifs+bounces-11364-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=IL4KlJwn;\n\tdkim-atps=neutral", "legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org\n (client-ip=172.105.105.114; helo=tor.lore.kernel.org;\n envelope-from=linux-cifs+bounces-11364-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=\"IL4KlJwn\"", "smtp.subspace.kernel.org;\n arc=none smtp.client-ip=10.30.226.201" ], "Received": [ "from tor.lore.kernel.org (tor.lore.kernel.org [172.105.105.114])\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 4g798v4bJCz1y04\n\tfor <incoming@patchwork.ozlabs.org>; Sun, 03 May 2026 00:22:23 +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 8AC24301A7C8\n\tfor <incoming@patchwork.ozlabs.org>; Sat, 2 May 2026 14:21:43 +0000 (UTC)", "from localhost.localdomain (localhost.localdomain [127.0.0.1])\n\tby smtp.subspace.kernel.org (Postfix) with ESMTP id 3CB1C33ADBC;\n\tSat, 2 May 2026 14:21:42 +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 17FA7299929;\n\tSat, 2 May 2026 14:21:41 +0000 (UTC)", "by smtp.kernel.org (Postfix) with ESMTPSA id 31E1EC2BCB3;\n\tSat, 2 May 2026 14:21:36 +0000 (UTC)" ], "ARC-Seal": "i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116;\n\tt=1777731702; cv=none;\n b=Xg/jxsNVNst5hce5RE0CrVSMc+TsBsPo+6u4vzlD6X5Xg8b5msr9um0DCVKChhBlKvcTVheLzeGzv3Jbc0ug6JU2NMhLjnViNMio26PMtmSMp0Jh2iZeLEHgoK4izyofBz+rxnVmVwzvUf1ihemGPFOgwg34N+ljIEGys/4Wm1w=", "ARC-Message-Signature": "i=1; a=rsa-sha256; d=subspace.kernel.org;\n\ts=arc-20240116; t=1777731702; c=relaxed/simple;\n\tbh=Jr2vXTu8AWi0WLbHX7TZXwTWNGI+4Lcw2ajtKVSihdo=;\n\th=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References:\n\t In-Reply-To:To:Cc;\n b=R44VjDcEPYH1MbnlmqfuvE0qCZNQaqVZIbZXh0LCAgh7D0pVDFqyMuJvi5wHAaQbyv7i0KjpWxq/K1XN9JOlEXY+LC49qdhMzqE4sOo6B1zV485WTcKcSiTTk1wF1S0jzmz+EgUMHRcGuMpIGqJlSJUXM2Pz9SX5jVgfuHhw+Bo=", "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=IL4KlJwn; 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=1777731701;\n\tbh=Jr2vXTu8AWi0WLbHX7TZXwTWNGI+4Lcw2ajtKVSihdo=;\n\th=From:Date:Subject:References:In-Reply-To:To:Cc:From;\n\tb=IL4KlJwn2AHjnH6JLmqB8a/9HPwdh9jM7M4lM7LB8f6UCxtqoiWnoGiWDaQu0xDS7\n\t 3b+ldLWhH6AoQDYKHks+/cwmG+A9KpbHL1v6HMl6AOAuKNOjhTxHzc7n8TiCBegKCD\n\t jRatixPGX7UObX+yWwXD9429kGkjWVHONbxg1+MYah98HPoUQNcWmYwIVuJwilLKCq\n\t 8E9qB9+VOhFoer/nxjSeZz19a8HISsaCTH0APtyKcotnUkV1wKrPgGdaGELvQKjdso\n\t O0v7SSeyqUHHS5X117KsMF1sj38B3469o2tsU9DYmKMDfnSISpzLl4UZQMHTvu+8tG\n\t KToyxrpT4f6lw==", "From": "Chuck Lever <cel@kernel.org>", "Date": "Sat, 02 May 2026 10:20:50 -0400", "Subject": "[PATCH v13 05/15] ntfs3: Implement fileattr_get for case\n 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": "<20260502-case-sensitivity-v13-5-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=3431;\n i=chuck.lever@oracle.com; h=from:subject:message-id;\n bh=UmPMiHkroOwooAuYrGTrmJ1qLD7CrIqd1OwFLzWWmkc=;\n b=owEBbQKS/ZANAwAKATNqszNvZn+XAcsmYgBp9ghQ9K/sC9LWtK6pwbsZRS8OTBcf+CS39iSk7\n Nq08hmtu0+JAjMEAAEKAB0WIQQosuWwEobfJDzyPv4zarMzb2Z/lwUCafYIUAAKCRAzarMzb2Z/\n lxoFD/0bz3UIr03DhE8clH6SXUPl/ZjBHJpY/0YML8Hm999u3SXTGv22OBcRqIfFDHc98wEvZJ9\n P0JKQHwESPE5ARbuFr6qNbSvQ4I5crWuKVHugQvfYCBlZoW5M6mkb+spsJQyO5C5svtwOZFHDGF\n 8wTTKgZkfMA6fkrZ0A5YIjAhvpmfwPcnue7dCNoNHknqp1FJey/W25NX/K3BGwN2G1B416WclyT\n WALnLxgBEfKExyOEczmLkeYtM8dpC0UIdeq8pChHq8cIPVZTHcuy0uIPCul5H0Sn1TrUxA0b2qw\n 7Q7SPhx5pKMeQn/zpw7wyHGSWnKvRU06EURqhe5W349pJMNpoA/cBLB1RWiKCS1TbJPYqeLVyoC\n SlNuTD0G6WFxoc1kZY216Bbw35ZJMKlRVa5+wPxFuIJr2JupfWev9HFfBHn6H/kBpIQ7GYKDVz5\n +pGeqylvNWHHd0r1eUqvziaYJPveY4ez40J1OQGnUM60vQEH/oxQNHlBCyXPU4/fCQxqG3E1eRz\n b39WmOYUGQf8cd92747uFHrSjBHIYfviCqRnkEGPpArursdTwNrnt7OXLp1gpvTZmSNmE/WAAe+\n v5AMZ1m+CQu6GCdjkOQTVp265H/0i3OXnKN//srxKbNZ1PDnblkfKmceZwl4ZaipUMxhhYTOy/M\n YFHRYJOpCkIgkcg==", "X-Developer-Key": "i=chuck.lever@oracle.com; a=openpgp;\n fpr=28B2E5B01286DF243CF23EFE336AB3336F667F97" }, "content": "From: Chuck Lever <chuck.lever@oracle.com>\n\nReport NTFS case sensitivity behavior via the FS_XFLAG_CASEFOLD\nflag. NTFS always preserves case at rest.\n\nReviewed-by: Roland Mainz <roland.mainz@nrubsig.org>\nSigned-off-by: Chuck Lever <chuck.lever@oracle.com>\n---\n fs/ntfs3/file.c | 29 +++++++++++++++++++++++++++++\n fs/ntfs3/inode.c | 1 +\n fs/ntfs3/namei.c | 2 ++\n fs/ntfs3/ntfs_fs.h | 1 +\n 4 files changed, 33 insertions(+)", "diff": "diff --git a/fs/ntfs3/file.c b/fs/ntfs3/file.c\nindex b041639ab406..ad9350d7fc3f 100644\n--- a/fs/ntfs3/file.c\n+++ b/fs/ntfs3/file.c\n@@ -180,6 +180,34 @@ long ntfs_compat_ioctl(struct file *filp, u32 cmd, unsigned long arg)\n }\n #endif\n \n+/*\n+ * ntfs_fileattr_get - inode_operations::fileattr_get\n+ */\n+int ntfs_fileattr_get(struct dentry *dentry, struct file_kattr *fa)\n+{\n+\tstruct inode *inode = d_inode(dentry);\n+\tstruct ntfs_sb_info *sbi = inode->i_sb->s_fs_info;\n+\n+\t/* Avoid any operation if inode is bad. */\n+\tif (unlikely(is_bad_ni(ntfs_i(inode))))\n+\t\treturn -EINVAL;\n+\n+\t/*\n+\t * NTFS preserves case (the default). Case sensitivity depends on\n+\t * mount options: with \"nocase\", NTFS is case-insensitive;\n+\t * otherwise it is case-sensitive.\n+\t */\n+\tif (sbi->options->nocase) {\n+\t\tfa->fsx_xflags |= FS_XFLAG_CASEFOLD;\n+\t\tfa->flags |= FS_CASEFOLD_FL;\n+\t}\n+\tif (inode->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+\n /*\n * ntfs_getattr - inode_operations::getattr\n */\n@@ -1547,6 +1575,7 @@ const struct inode_operations ntfs_file_inode_operations = {\n \t.get_acl\t= ntfs_get_acl,\n \t.set_acl\t= ntfs_set_acl,\n \t.fiemap\t\t= ntfs_fiemap,\n+\t.fileattr_get\t= ntfs_fileattr_get,\n };\n \n const struct file_operations ntfs_file_operations = {\ndiff --git a/fs/ntfs3/inode.c b/fs/ntfs3/inode.c\nindex 42af1abe17f8..a5ff04c2efd3 100644\n--- a/fs/ntfs3/inode.c\n+++ b/fs/ntfs3/inode.c\n@@ -2095,6 +2095,7 @@ const struct inode_operations ntfs_link_inode_operations = {\n \t.get_link\t= ntfs_get_link,\n \t.setattr\t= ntfs_setattr,\n \t.listxattr\t= ntfs_listxattr,\n+\t.fileattr_get\t= ntfs_fileattr_get,\n };\n \n const struct address_space_operations ntfs_aops = {\ndiff --git a/fs/ntfs3/namei.c b/fs/ntfs3/namei.c\nindex b2af8f695e60..eb241d7796ba 100644\n--- a/fs/ntfs3/namei.c\n+++ b/fs/ntfs3/namei.c\n@@ -518,6 +518,7 @@ const struct inode_operations ntfs_dir_inode_operations = {\n \t.getattr\t= ntfs_getattr,\n \t.listxattr\t= ntfs_listxattr,\n \t.fiemap\t\t= ntfs_fiemap,\n+\t.fileattr_get\t= ntfs_fileattr_get,\n };\n \n const struct inode_operations ntfs_special_inode_operations = {\n@@ -526,6 +527,7 @@ const struct inode_operations ntfs_special_inode_operations = {\n \t.listxattr\t= ntfs_listxattr,\n \t.get_acl\t= ntfs_get_acl,\n \t.set_acl\t= ntfs_set_acl,\n+\t.fileattr_get\t= ntfs_fileattr_get,\n };\n \n const struct dentry_operations ntfs_dentry_ops = {\ndiff --git a/fs/ntfs3/ntfs_fs.h b/fs/ntfs3/ntfs_fs.h\nindex bbf3b6a1dcbe..41db22d652c4 100644\n--- a/fs/ntfs3/ntfs_fs.h\n+++ b/fs/ntfs3/ntfs_fs.h\n@@ -529,6 +529,7 @@ bool dir_is_empty(struct inode *dir);\n extern const struct file_operations ntfs_dir_operations;\n \n /* Globals from file.c */\n+int ntfs_fileattr_get(struct dentry *dentry, struct file_kattr *fa);\n int ntfs_getattr(struct mnt_idmap *idmap, const struct path *path,\n \t\t struct kstat *stat, u32 request_mask, u32 flags);\n int ntfs_setattr(struct mnt_idmap *idmap, struct dentry *dentry,\n", "prefixes": [ "v13", "05/15" ] }