Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/2197432/?format=api
{ "id": 2197432, "url": "http://patchwork.ozlabs.org/api/patches/2197432/?format=api", "web_url": "http://patchwork.ozlabs.org/project/linux-cifs-client/patch/20260217214741.1928576-7-cel@kernel.org/", "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": "<20260217214741.1928576-7-cel@kernel.org>", "list_archive_url": null, "date": "2026-02-17T21:47:30", "name": "[v8,06/17] hfs: Implement fileattr_get for case sensitivity", "commit_ref": null, "pull_url": null, "state": "new", "archived": false, "hash": "797b3d805af07a12309a2c07934aa0eb3c51bcbf", "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/20260217214741.1928576-7-cel@kernel.org/mbox/", "series": [ { "id": 492484, "url": "http://patchwork.ozlabs.org/api/series/492484/?format=api", "web_url": "http://patchwork.ozlabs.org/project/linux-cifs-client/list/?series=492484", "date": "2026-02-17T21:47:24", "name": "Subject: Exposing case folding behavior", "version": 8, "mbox": "http://patchwork.ozlabs.org/series/492484/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/2197432/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/2197432/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "\n <linux-cifs+bounces-9421-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=F0tcFrm+;\n\tdkim-atps=neutral", "legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org\n (client-ip=172.234.253.10; helo=sea.lore.kernel.org;\n envelope-from=linux-cifs+bounces-9421-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=\"F0tcFrm+\"", "smtp.subspace.kernel.org;\n arc=none smtp.client-ip=10.30.226.201" ], "Received": [ "from sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10])\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 4fFtcb4FTGz1xwC\n\tfor <incoming@patchwork.ozlabs.org>; Wed, 18 Feb 2026 08:50:55 +1100 (AEDT)", "from smtp.subspace.kernel.org (conduit.subspace.kernel.org\n [100.90.174.1])\n\tby sea.lore.kernel.org (Postfix) with ESMTP id D7D4F3068243\n\tfor <incoming@patchwork.ozlabs.org>; Tue, 17 Feb 2026 21:48:02 +0000 (UTC)", "from localhost.localdomain (localhost.localdomain [127.0.0.1])\n\tby smtp.subspace.kernel.org (Postfix) with ESMTP id 89F2E2FD1B1;\n\tTue, 17 Feb 2026 21:48:01 +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 6471C2FA0D3;\n\tTue, 17 Feb 2026 21:48:01 +0000 (UTC)", "by smtp.kernel.org (Postfix) with ESMTPSA id 0994FC19423;\n\tTue, 17 Feb 2026 21:47:58 +0000 (UTC)" ], "ARC-Seal": "i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116;\n\tt=1771364881; cv=none;\n b=TC4m7KrfSmz8nfpSHH+27o7XH1X0RTaDkkofQ9U5NT0UWUmmSZdUttc9SYL1tU715QtMi20cIwuGxIcMAtIQZv6Uiz8OeIqUbupc/3ssu4mg8+0xpyvi200Y0xsD5Au/SUNavw58GD/7zQpai0+woc+9CSi75WgafAQ7NA87LS0=", "ARC-Message-Signature": "i=1; a=rsa-sha256; d=subspace.kernel.org;\n\ts=arc-20240116; t=1771364881; c=relaxed/simple;\n\tbh=yS7ttuYwzHepG/z83tSUH0NgHRyTHV6OlDbQ8JRzYTA=;\n\th=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References:\n\t MIME-Version;\n b=CbzRd9f3DndfO/zDrKX25QC5e9zF/Okgu+pt27qjsXVFhNsRlb62NWFtkY2+llbreTeSxXrJjlxb2NcUQIDCqDmXTBAA+rnEFQoyZqwtqE5hWJXouOkHa3s9r2OSwUqyPm53eRacMvZjMFwYGlgxtoXdsmwzfEh+6+LfaFBDgeo=", "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=F0tcFrm+; 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=1771364881;\n\tbh=yS7ttuYwzHepG/z83tSUH0NgHRyTHV6OlDbQ8JRzYTA=;\n\th=From:To:Cc:Subject:Date:In-Reply-To:References:From;\n\tb=F0tcFrm+ygZycs9N8dJQtgnOLZX7H9QkIyBoYIwRLNg9Vs+NwJ3bCs1CWyitNVeTf\n\t E1f7UQID3ghZm2dZYsLpd/ZPxFv7OP54vWGsEP9vWH3T6x2PubKDcnhwaaJjyMxQ58\n\t lZbFctpSF+nvvcBcSW/R2n/70xC+Wk9HdpSiCWoOggBh4f//tdFbylOsTUHzc78M5l\n\t VxDL9CBPo0RKii+BR1KSjZIDsG7wgdgVDG21SevZbRRe8mH2rl7WldSxTMnteYLyi/\n\t Kt3dYj84jSagWCZ4yRCnSiW56oz09e4nj7w3/RWIMoHoIWOslSdzg6PzAGY2hNH1CD\n\t ZY9hm6ANZ971A==", "From": "Chuck Lever <cel@kernel.org>", "To": "Al Viro <viro@zeniv.linux.org.uk>,\n\tChristian Brauner <brauner@kernel.org>,\n\tJan Kara <jack@suse.cz>", "Cc": "linux-fsdevel@vger.kernel.org,\n\tlinux-ext4@vger.kernel.org,\n\tlinux-xfs@vger.kernel.org,\n\tlinux-cifs@vger.kernel.org,\n\tlinux-nfs@vger.kernel.org,\n\tlinux-api@vger.kernel.org,\n\tlinux-f2fs-devel@lists.sourceforge.net,\n\thirofumi@mail.parknet.co.jp,\n\tlinkinjeon@kernel.org,\n\tsj1557.seo@samsung.com,\n\tyuezhang.mo@sony.com,\n\talmaz.alexandrovich@paragon-software.com,\n\tslava@dubeyko.com,\n\tglaubitz@physik.fu-berlin.de,\n\tfrank.li@vivo.com,\n\ttytso@mit.edu,\n\tadilger.kernel@dilger.ca,\n\tcem@kernel.org,\n\tsfrench@samba.org,\n\tpc@manguebit.org,\n\tronniesahlberg@gmail.com,\n\tsprasad@microsoft.com,\n\ttrondmy@kernel.org,\n\tanna@kernel.org,\n\tjaegeuk@kernel.org,\n\tchao@kernel.org,\n\thansg@kernel.org,\n\tsenozhatsky@chromium.org,\n\tChuck Lever <chuck.lever@oracle.com>", "Subject": "[PATCH v8 06/17] hfs: Implement fileattr_get for case sensitivity", "Date": "Tue, 17 Feb 2026 16:47:30 -0500", "Message-ID": "<20260217214741.1928576-7-cel@kernel.org>", "X-Mailer": "git-send-email 2.53.0", "In-Reply-To": "<20260217214741.1928576-1-cel@kernel.org>", "References": "<20260217214741.1928576-1-cel@kernel.org>", "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-Transfer-Encoding": "8bit" }, "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 0c615c078650..f85ef69a8375 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 878535db64d6..b3e6e46ddd14 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@@ -716,6 +717,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 * Report case-insensitive behavior: all name comparisons use\n+\t * Mac OS Roman case folding. FS_XFLAG_CASENONPRESERVING remains\n+\t * unset because original case is preserved on disk.\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@@ -732,4 +744,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": [ "v8", "06/17" ] }