Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/2232079/?format=api
{ "id": 2232079, "url": "http://patchwork.ozlabs.org/api/patches/2232079/?format=api", "web_url": "http://patchwork.ozlabs.org/project/linux-cifs-client/patch/20260502-case-sensitivity-v13-12-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-12-aa853140311f@oracle.com>", "list_archive_url": null, "date": "2026-05-02T14:20:57", "name": "[v13,12/15] isofs: Implement fileattr_get for case sensitivity", "commit_ref": null, "pull_url": null, "state": "new", "archived": false, "hash": "eb65cee559bf6ddcae1ec39e091481bd96bf2fd1", "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-12-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/2232079/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/2232079/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "\n <linux-cifs+bounces-11371-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=V7gGtwXW;\n\tdkim-atps=neutral", "legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org\n (client-ip=2600:3c0a:e001:db::12fc:5321; helo=sea.lore.kernel.org;\n envelope-from=linux-cifs+bounces-11371-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=\"V7gGtwXW\"", "smtp.subspace.kernel.org;\n arc=none smtp.client-ip=10.30.226.201" ], "Received": [ "from sea.lore.kernel.org (sea.lore.kernel.org\n [IPv6:2600:3c0a:e001:db::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 4g79D15WlLz1y04\n\tfor <incoming@patchwork.ozlabs.org>; Sun, 03 May 2026 00:25:05 +1000 (AEST)", "from smtp.subspace.kernel.org (conduit.subspace.kernel.org\n [100.90.174.1])\n\tby sea.lore.kernel.org (Postfix) with ESMTP id E3247303F7CB\n\tfor <incoming@patchwork.ozlabs.org>; Sat, 2 May 2026 14:22:25 +0000 (UTC)", "from localhost.localdomain (localhost.localdomain [127.0.0.1])\n\tby smtp.subspace.kernel.org (Postfix) with ESMTP id BB30E33DEDF;\n\tSat, 2 May 2026 14:22:24 +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 94B8F2820AC;\n\tSat, 2 May 2026 14:22:24 +0000 (UTC)", "by smtp.kernel.org (Postfix) with ESMTPSA id EE902C19425;\n\tSat, 2 May 2026 14:22:18 +0000 (UTC)" ], "ARC-Seal": "i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116;\n\tt=1777731744; cv=none;\n b=dNxyjLEtL3XW/SdvZ+ZH6aqjVd7qoAGY5amK8MXr+1ybRfZhkUGTCxpztwABoKIRWddVDpD/yLF8EJyfoTwUlKo/rSyVFsI7egqSlHoHww9GeTWs8InAHwv04g1XSZBzxRxFfrGJBiAOiHNX5DRUZkQPBSgZ91QgNlhFLq0VpEM=", "ARC-Message-Signature": "i=1; a=rsa-sha256; d=subspace.kernel.org;\n\ts=arc-20240116; t=1777731744; c=relaxed/simple;\n\tbh=pwh6ZK7+DyUSteq+vdVu0HYuHs8P3NPOtCprGITxaEM=;\n\th=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References:\n\t In-Reply-To:To:Cc;\n b=BaseEBqzRg22I2shTjBHnqrTxni9PUMhiG4NRhYFhaxBk724usLshCll0WwOfMDxzlxHUbPDuhkpdjuGpy+Cc/v3dZWBcw59sk9Uyx6hZaK1yN+ZBmPFh7Gr1Nvl6OPIEY4QXprGPJxLzD2ejbi9nxiVvxzjHIIXEwUMTto9kU8=", "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=V7gGtwXW; 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=1777731744;\n\tbh=pwh6ZK7+DyUSteq+vdVu0HYuHs8P3NPOtCprGITxaEM=;\n\th=From:Date:Subject:References:In-Reply-To:To:Cc:From;\n\tb=V7gGtwXWvdc054nee6dm5o/oXbrStaF3jLaTBarlmfXlJ0D0UmzSSfweiMCZWtnoN\n\t 96IS/Ow1rwMyUu69nV25/xpQZg+6WHEjpEABfSQIdF8sn1DHxB/5VenGgmGPaw1KnX\n\t r02ULa1af/nSXvUERFrMCsVcx0jQcXXSVmkxRf9osCqTJh9CG0/KXE7XbTt7WiA8g3\n\t uLNXlwHxmiX9tH3fOVCRWngmI9renhE9ufP7psv5VMvEe1G55nzBuHDHTcAru5G/R+\n\t 1w/SvrnRoaTK6NiOvTgjDPFFxaN1Rhk9LAB3rGimaZ8IbgJb/yTlF3k5oLJt8dcmf0\n\t HTJkPXUNlyBxg==", "From": "Chuck Lever <cel@kernel.org>", "Date": "Sat, 02 May 2026 10:20:57 -0400", "Subject": "[PATCH v13 12/15] isofs: 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-12-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=3535;\n i=chuck.lever@oracle.com; h=from:subject:message-id;\n bh=eE/CDF09GJkNn3nT+HwwWprfQOLLBRzGLyDUxw4X/sk=;\n b=owEBbQKS/ZANAwAKATNqszNvZn+XAcsmYgBp9ghRmCEuePPe//SHQ502dQGkoxCxjuAHC/hRa\n fUBXU2YYumJAjMEAAEKAB0WIQQosuWwEobfJDzyPv4zarMzb2Z/lwUCafYIUQAKCRAzarMzb2Z/\n lxWnEACPaz1eUuja7jmdPVv0JQHyIuo1ugA0aXldtbzVmcSfI1X/R9iBPFT7lrP+ZPpjVDsCUYy\n bqKDSGPnPly4DFYUoAofKx1COpc7J/fxDdcV+zZyoP+sPBLVBw1seGdYmCDuFmBuVKFfcXsWDrH\n DaPQIf6NaLKNVLcTNTPccYfu3uCNwLtLFQfoL5jd46aD301fMKBspM9KnfqGRZ+sQ2wa79NImQY\n ckRcwwsqJAmOGZaq1+qNT6G/DHvEVfyYAjHivZDfMEtTbQg7HvcsOl47aJQ67WIC0Oh4k5jrip3\n peWH6RQdRzgpqQD63Ql1E1vJ7fYBVtxvmAfp+Zl7RpOI55APHqn5WaocktAW8WBJ5tDSLE2de5k\n dJUWq1y8Zjh194+280R0ZhI/v5qUNiCRZnD1WrxDMr4Fhwkb8PmHW922k/ozL7Jkn1IMxWcMcwv\n f793VW48j9v/+ZRAMdFmG5YJ49eVIPsTW8Y5VskBOEqp0sg7fAQQbSt+DtY4ELcGj3TduKS/Lg4\n M90PmHKaFbPWBlEyqxj5ALiWqw8A6/jqth90thXdYI8DuEtAWjoQVk1dwk6skwmA+Gv2lItW3Oa\n f1bFKMXN5Yh0iCnm/I/CvC2L2QR5Iqi/dFfmNT1lPk/jdfFIkTcG6c4XnZAi1ZAs/CekBIDpHq6\n iRgJpm7Ft4TL5aw==", "X-Developer-Key": "i=chuck.lever@oracle.com; a=openpgp;\n fpr=28B2E5B01286DF243CF23EFE336AB3336F667F97" }, "content": "From: Chuck Lever <chuck.lever@oracle.com>\n\nUpper layers such as NFSD need a way to query whether a\nfilesystem handles filenames in a case-sensitive manner so\nthey can provide correct semantics to remote clients. Without\nthis information, NFS exports of ISO 9660 filesystems cannot\nadvertise their filename case behavior.\n\nImplement isofs_fileattr_get() to report ISO 9660 case handling\nbehavior. The 'check=r' (relaxed) mount option enables\ncase-insensitive lookups and is reported via FS_XFLAG_CASEFOLD.\nBy default, Joliet extensions operate in relaxed mode while\nplain ISO 9660 uses strict (case-sensitive) mode.\n\nPlain ISO 9660 names on the medium are uppercase. When neither\nRock Ridge nor Joliet is in effect, the default 'map=n' option\n(and 'map=a') routes lookup and readdir through\nisofs_name_translate(), which forces A-Z to a-z. The names\nvisible to userspace then differ in case from the on-disc form,\nso report FS_XFLAG_CASENONPRESERVING in that configuration. Rock\nRidge and Joliet both deliver names as authored, and 'map=o'\nemits the raw on-disc name unchanged, so those configurations\nremain case-preserving.\n\nCasefolding is a directory property, and the in-tree consumers\n(NFSD, ksmbd) issue the query against a directory: NFSD walks\nto the parent for non-directory dentries before calling\nvfs_fileattr_get(), and ksmbd reports per-share attributes from\nthe share root. Wire .fileattr_get only on\nisofs_dir_inode_operations. The CASEFOLD flag is set in both\nfa->fsx_xflags and fa->flags so FS_IOC_FSGETXATTR and\nFS_IOC_GETFLAGS agree.\n\nReviewed-by: Jan Kara <jack@suse.cz>\nReviewed-by: Roland Mainz <roland.mainz@nrubsig.org>\nSigned-off-by: Chuck Lever <chuck.lever@oracle.com>\n---\n fs/isofs/dir.c | 16 ++++++++++++++++\n fs/isofs/isofs.h | 3 +++\n 2 files changed, 19 insertions(+)", "diff": "diff --git a/fs/isofs/dir.c b/fs/isofs/dir.c\nindex 2fd9948d606e..55385a72a4ce 100644\n--- a/fs/isofs/dir.c\n+++ b/fs/isofs/dir.c\n@@ -14,6 +14,7 @@\n #include <linux/gfp.h>\n #include <linux/filelock.h>\n #include \"isofs.h\"\n+#include <linux/fileattr.h>\n \n int isofs_name_translate(struct iso_directory_record *de, char *new, struct inode *inode)\n {\n@@ -267,6 +268,20 @@ static int isofs_readdir(struct file *file, struct dir_context *ctx)\n \treturn result;\n }\n \n+int isofs_fileattr_get(struct dentry *dentry, struct file_kattr *fa)\n+{\n+\tstruct isofs_sb_info *sbi = ISOFS_SB(dentry->d_sb);\n+\n+\tif (sbi->s_check == 'r') {\n+\t\tfa->fsx_xflags |= FS_XFLAG_CASEFOLD;\n+\t\tfa->flags |= FS_CASEFOLD_FL;\n+\t}\n+\tif (!sbi->s_joliet_level && !sbi->s_rock &&\n+\t (sbi->s_mapping == 'n' || sbi->s_mapping == 'a'))\n+\t\tfa->fsx_xflags |= FS_XFLAG_CASENONPRESERVING;\n+\treturn 0;\n+}\n+\n const struct file_operations isofs_dir_operations =\n {\n \t.llseek = generic_file_llseek,\n@@ -281,6 +296,7 @@ const struct file_operations isofs_dir_operations =\n const struct inode_operations isofs_dir_inode_operations =\n {\n \t.lookup = isofs_lookup,\n+\t.fileattr_get = isofs_fileattr_get,\n };\n \n \ndiff --git a/fs/isofs/isofs.h b/fs/isofs/isofs.h\nindex 506555837533..0ec8b24a42ed 100644\n--- a/fs/isofs/isofs.h\n+++ b/fs/isofs/isofs.h\n@@ -197,6 +197,9 @@ isofs_normalize_block_and_offset(struct iso_directory_record* de,\n \t}\n }\n \n+struct file_kattr;\n+int isofs_fileattr_get(struct dentry *dentry, struct file_kattr *fa);\n+\n extern const struct inode_operations isofs_dir_inode_operations;\n extern const struct file_operations isofs_dir_operations;\n extern const struct address_space_operations isofs_symlink_aops;\n", "prefixes": [ "v13", "12/15" ] }