{"id":2230442,"url":"http://patchwork.ozlabs.org/api/1.1/patches/2230442/?format=json","web_url":"http://patchwork.ozlabs.org/project/linux-ext4/patch/20260429-case-sensitivity-v12-12-8057123bebe0@oracle.com/","project":{"id":8,"url":"http://patchwork.ozlabs.org/api/1.1/projects/8/?format=json","name":"Linux ext4 filesystem development","link_name":"linux-ext4","list_id":"linux-ext4.vger.kernel.org","list_email":"linux-ext4@vger.kernel.org","web_url":null,"scm_url":null,"webscm_url":null},"msgid":"<20260429-case-sensitivity-v12-12-8057123bebe0@oracle.com>","date":"2026-04-29T18:07:23","name":"[v12,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/1.1/people/86689/?format=json","name":"Chuck Lever","email":"cel@kernel.org"},"delegate":null,"mbox":"http://patchwork.ozlabs.org/project/linux-ext4/patch/20260429-case-sensitivity-v12-12-8057123bebe0@oracle.com/mbox/","series":[{"id":502125,"url":"http://patchwork.ozlabs.org/api/1.1/series/502125/?format=json","web_url":"http://patchwork.ozlabs.org/project/linux-ext4/list/?series=502125","date":"2026-04-29T18:07:11","name":"Exposing case folding behavior","version":12,"mbox":"http://patchwork.ozlabs.org/series/502125/mbox/"}],"comments":"http://patchwork.ozlabs.org/api/patches/2230442/comments/","check":"pending","checks":"http://patchwork.ozlabs.org/api/patches/2230442/checks/","tags":{},"headers":{"Return-Path":"\n <SRS0=yWeD=C4=vger.kernel.org=linux-ext4+bounces-16240-patchwork-incoming=ozlabs.org@ozlabs.org>","X-Original-To":["incoming@patchwork.ozlabs.org","linux-ext4@vger.kernel.org"],"Delivered-To":["patchwork-incoming@legolas.ozlabs.org","patchwork-incoming@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=cUm5fwJv;\n\tdkim-atps=neutral","legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=ozlabs.org\n (client-ip=2404:9400:2221:ea00::3; helo=mail.ozlabs.org;\n envelope-from=srs0=ywed=c4=vger.kernel.org=linux-ext4+bounces-16240-patchwork-incoming=ozlabs.org@ozlabs.org;\n receiver=patchwork.ozlabs.org)","gandalf.ozlabs.org;\n arc=pass smtp.remote-ip=172.105.105.114 arc.chain=subspace.kernel.org","gandalf.ozlabs.org;\n dmarc=pass (p=quarantine dis=none) header.from=kernel.org","gandalf.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=cUm5fwJv;\n\tdkim-atps=neutral","gandalf.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-ext4+bounces-16240-patchwork-incoming=ozlabs.org@vger.kernel.org;\n receiver=ozlabs.org)","smtp.subspace.kernel.org;\n\tdkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org\n header.b=\"cUm5fwJv\"","smtp.subspace.kernel.org;\n arc=none smtp.client-ip=10.30.226.201"],"Received":["from mail.ozlabs.org (mail.ozlabs.org [IPv6:2404:9400:2221:ea00::3])\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 4g5QPR2sKfz1yHZ\n\tfor <incoming@patchwork.ozlabs.org>; Thu, 30 Apr 2026 04:12:11 +1000 (AEST)","from mail.ozlabs.org (mail.ozlabs.org [IPv6:2404:9400:2221:ea00::3])\n\tby gandalf.ozlabs.org (Postfix) with ESMTP id 4g5QPR2JSxz4wLM\n\tfor <incoming@patchwork.ozlabs.org>; Thu, 30 Apr 2026 04:12:11 +1000 (AEST)","by gandalf.ozlabs.org (Postfix)\n\tid 4g5QPR2D4Gz4wLX; Thu, 30 Apr 2026 04:12:11 +1000 (AEST)","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)\n\t(No client certificate requested)\n\tby gandalf.ozlabs.org (Postfix) with ESMTPS id 4g5QPM5NHRz4wLM\n\tfor <patchwork-incoming@ozlabs.org>; Thu, 30 Apr 2026 04:12:07 +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 0796530814F5\n\tfor <patchwork-incoming@ozlabs.org>; Wed, 29 Apr 2026 18:08:46 +0000 (UTC)","from localhost.localdomain (localhost.localdomain [127.0.0.1])\n\tby smtp.subspace.kernel.org (Postfix) with ESMTP id 3D4A73FE357;\n\tWed, 29 Apr 2026 18:07:59 +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 A8CD3423168;\n\tWed, 29 Apr 2026 18:07:58 +0000 (UTC)","by smtp.kernel.org (Postfix) with ESMTPSA id DE670C2BCC6;\n\tWed, 29 Apr 2026 18:07:55 +0000 (UTC)"],"ARC-Seal":["i=2; a=rsa-sha256; d=ozlabs.org; s=201707; t=1777486331; cv=pass;\n\tb=kkrMpD/Wv5fvFFvTKZD+cwMM/xPDKs/6hE20yB1ru4+3cA4aqpcOImMgh11bjfn83tIXyM3IyxwAFrJfMdes55oM0ZtmXNncHKFF82oJ9+3CEZ36lb/mzt7srmg4CimRASpCINRoEPPWHI/cYuRFx/zcZ2bU31/vGDcc9fv3vpEiVRay2k+C8ug1JyR4XSgHhmNlmNbj3h1I5G+p38HcOpKSpgzbc0OBBHudY5gjxAnFFmQt9HnHXV6xxyiuNvWuPUj33RhaTaF1wL7vfOUJk6v0QdnbAcDBEjOoZym5XI3TM1PFrdoDLj4sJqHARsOu+Bl6vsQMdxfaHkAOSygvyg==","i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116;\n\tt=1777486078; cv=none;\n b=Pt5va80dB0CeoQ4SbJ97mfxDz83aMTQXUFPsGFhqNcwllDgCh93J30g7zcBFbv9juTjGfsJsB/KymzUgH7J4Fl6PFuqA1/oF7kA7VsA0Peelx6i0kv5CxSKWPZQXej2iJHAN8kQZEDCKl7RgFMvWfWlXhXPw9ftDXlwCp0Wv0J4="],"ARC-Message-Signature":["i=2; a=rsa-sha256; d=ozlabs.org; s=201707;\n\tt=1777486331; c=relaxed/relaxed;\n\tbh=okYb1rCy7YLX9Nhkr3j1SUVMKLgwaWS0nQ+ZigFK7g8=;\n\th=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References:\n\t In-Reply-To:To:Cc;\n b=fkZ47Zd3ezrZFkfq5it5HhaaTJUJCLB654/jFOyZ3cmr+qKGhUJJlGE0xzsk8HgWUGppIXx93M+oMWZH4ce/3XlhJwRvMpvWuEpvB3GagDQ2OPVwFPBPn+5zVED6PVr+bqhfRuHS9vsnOdsB5Y5H72hh2OIOZ9LJ52eqrEIMYkZmjmvXYdGeVWdP/DZlK2xS4vzpM4rn0mAEqjrQSKURRoZvb5AXT9TraFEU56s6B/WZXHY8vIVB7XWfZnrWZMznSm00idvEHJCXPBTWm12nxtA56U/WsTAei314CxWSTnXwHZXr24LwlJDvnxpb0wqI6/4PAEx2L5pEiL6/DWjEKQ==","i=1; a=rsa-sha256; d=subspace.kernel.org;\n\ts=arc-20240116; t=1777486078; 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=Bz+gcTvTn6Jn2iwgIojSb1s1BtYg+9BMD7qnT/pmptMmimujInYxE14eQxXFwroimUNr/FVjvV0ktIi62Hm13f0ui/qqElMP8JI9NN33gwZhmGh5cIhl/eS2QADX83wbKIHqiyxLRduC7GpX2m2YRXUywdZ6tzY37eMvz719TGY="],"ARC-Authentication-Results":["i=2; gandalf.ozlabs.org;\n dmarc=pass (p=quarantine dis=none) header.from=kernel.org;\n dkim=pass (2048-bit key;\n unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256\n header.s=k20201202 header.b=cUm5fwJv; dkim-atps=neutral;\n spf=pass (client-ip=172.105.105.114; helo=tor.lore.kernel.org;\n envelope-from=linux-ext4+bounces-16240-patchwork-incoming=ozlabs.org@vger.kernel.org;\n receiver=ozlabs.org) smtp.mailfrom=vger.kernel.org","i=1; smtp.subspace.kernel.org;\n dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org\n header.b=cUm5fwJv; 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=1777486078;\n\tbh=pwh6ZK7+DyUSteq+vdVu0HYuHs8P3NPOtCprGITxaEM=;\n\th=From:Date:Subject:References:In-Reply-To:To:Cc:From;\n\tb=cUm5fwJvO94JdjbxFEj77aY3Dc1toIfZ/2e7MT3WBUFdkBc0Cb2ETUOm1TJ2z5SYw\n\t bloY2o+z8JIcJOvLoWTPN2iXZJqqbs9xTzlTZVINY+St6ZHFI6gzHUjDvKJ6UK69E9\n\t QJJP6c7MFhgXmZRXT1Jurd39OiJqKncwDb9ziXYxJOzEZM3nl8iLLZFC0xt5oERTJd\n\t YXOhEsmV6KHl4W9+JCaXZerr2yHZrKtVh2AmH2XIUxKAKHxguMxQcqacZxLwkZBd4C\n\t b9ToN2pZ6hvxobefXJQY53YpQe7vnqW8uHN6p5eQJljuY2NubVviR7WYY3lG5yY29i\n\t goGqcW8hdVU8Q==","From":"Chuck Lever <cel@kernel.org>","Date":"Wed, 29 Apr 2026 14:07:23 -0400","Subject":"[PATCH v12 12/15] isofs: Implement fileattr_get for case\n sensitivity","Precedence":"bulk","X-Mailing-List":"linux-ext4@vger.kernel.org","List-Id":"<linux-ext4.vger.kernel.org>","List-Subscribe":"<mailto:linux-ext4+subscribe@vger.kernel.org>","List-Unsubscribe":"<mailto:linux-ext4+unsubscribe@vger.kernel.org>","MIME-Version":"1.0","Content-Type":"text/plain; charset=\"utf-8\"","Content-Transfer-Encoding":"7bit","Message-Id":"<20260429-case-sensitivity-v12-12-8057123bebe0@oracle.com>","References":"<20260429-case-sensitivity-v12-0-8057123bebe0@oracle.com>","In-Reply-To":"<20260429-case-sensitivity-v12-0-8057123bebe0@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+XAcsmYgBp8kjdmZb4cmkDdd3o04vNirFUuWuF4YDSCxs1K\n 7pRxcmUuAOJAjMEAAEKAB0WIQQosuWwEobfJDzyPv4zarMzb2Z/lwUCafJI3QAKCRAzarMzb2Z/\n l7oDEACRSp9ryOfppWfuFcz+UBqCKY0jeZYBaoM62a7MBA3VqlqHxNx2z1ghpntuPE4yIjU6JKQ\n FEVGfnO96YTMdJaToRwHgaUhFQUq8Dbcs5vKKx7CZnqNajNk2gvIPWhp0hehQaLVVjvGvS8dylO\n e0hGGrLeK/zBYWBzawxUeffUKYepgoPZGiIdkpIiQXKblQxP0qrptc9w6WM40jgQToWobUAnTyk\n RK7IW6ZV0RFNkQxnWzvVPmtAB5xRO0HRbcmeTgdNCOZKu0NfkB+DRNwnVJ78PUJ2MijEVZvuJ+1\n U6o9DxhN44u1oTFVg9fYjRLK/lozB608kOsO0SQfyDsZt9uAzuaIC56y+inPT1/B8Q24318Owle\n 3l6kvXDNIOEydHmgSFTdsBfB6uLsAJ+dyl312oimhGW7D0kVsEZk3ILWVe9yWaXY1XncH+MPC77\n i+voYxn17F+KQG8v5yifNZU7gljSp0HJuPZwXroz5y3YeYeSSyPWbO6LSkCdPYtGB6mwPuhan/z\n rf1BcpBKZ/qzyq3KkqOKnh5W8lNBycPpYOBD+NOrwxcwsumtYFM+1+ntyebVlr4nTAkgQ/QfdRT\n H6h5M41pGTkpkLXJmhNhwtx84tUTNuJlSZ3iASbHp1xLm3bn475vhTBrfeabEoSXn5RgX8QXk1L\n mu65n+jQsXelg/w==","X-Developer-Key":"i=chuck.lever@oracle.com; a=openpgp;\n fpr=28B2E5B01286DF243CF23EFE336AB3336F667F97","X-Spam-Status":"No, score=-1.2 required=5.0 tests=ARC_SIGNED,ARC_VALID,\n\tDKIMWL_WL_HIGH,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DMARC_PASS,\n\tMAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=disabled\n\tversion=4.0.1","X-Spam-Checker-Version":"SpamAssassin 4.0.1 (2024-03-25) on gandalf.ozlabs.org"},"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":["v12","12/15"]}