From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id BE6A0280331; Wed, 14 Jan 2026 14:29:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768400976; cv=none; b=llUleHC3paBO11Zq+CRSrIE8VFHQm8RUvLhQQDpP/4inPiOZzZRVv1QAfgFbsF0XXQShOGeC/SHXAw7rxTNeKcuqZm12kZwYAVWRVxZuEabgJ9z5eDDOrga7vG64H3NG6ozQCtGZcpeBgzDf6/Vh9t7Qq7mwJ/hNdk56OAK6bcU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768400976; c=relaxed/simple; bh=ybvM1kaY1V4Mcy01w16uCg2E273b09cBL9S5NnTYbjA=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=QsttqX0QeyTCDrKvmcfzp9v1BGvv7BBT9koMkueCiem5L0MyJMeZD384EClBydhKrJtJh+GMyJCbPY0qE7I71JjZ7Fzdn/yevZ5yxfraGC/m1n5teZl8E/Qfw5RG1GoVXws4yfFozxdr1uQUNWcXrtkXNeX9jQJkwCR73JKDtcA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=srmKTD0Q; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="srmKTD0Q" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 45245C4CEF7; Wed, 14 Jan 2026 14:29:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1768400976; bh=ybvM1kaY1V4Mcy01w16uCg2E273b09cBL9S5NnTYbjA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=srmKTD0QtMAIoXojQGafdEDUElJSbxtqMqloz9Mx0GcoduChcl0eAXHJw0a0+e10O U77kOjg5e4xVgxSXcxTG2pmKkAWitNvg5OGncIin1CtfawcIeMpNHEuxP3Qhw7iaKJ Z6w0NMRlGK1GoulyNAY2+0UH51mTwakmIESBpk4MwattCRB0wIQwi4AuB+TPIvIXxO SFSMwpCptdmoSXunk+vV/vzf7E7D2jG0+Jm9Qrt/+ESrpkLf1cb/bpg/e4aBQK3jvu 0hTVE72zWYT/6L/zATk24TOG0jG0wj+0ehlLpnnZzzWxGgkti3vcNOWhFufDnvCF31 d0szph0umN1gw== From: Chuck Lever To: vira, Christian Brauner , Jan Kara Cc: , linux-ext4@vger.kernel.org, linux-xfs@vger.kernel.org, linux-cifs@vger.kernel.org, , linux-f2fs-devel@lists.sourceforge.net, hirofumi@mail.parknet.co.jp, linkinjeon@kernel.org, sj1557.seo@samsung.com, yuezhang.mo@sony.com, almaz.alexandrovich@paragon-software.com, slava@dubeyko.com, glaubitz@physik.fu-berlin.de, frank.li@vivo.com, tytso@mit.edu, adilger.kernel@dilger.ca, cem@kernel.org, sfrench@samba.org, pc@manguebit.org, ronniesahlberg@gmail.com, sprasad@microsoft.com, trondmy@kernel.org, anna@kernel.org, jaegeuk@kernel.org, chao@kernel.org, hansg@kernel.org, senozhatsky@chromium.org, Chuck Lever Subject: [PATCH v4 13/16] isofs: Implement fileattr_get for case sensitivity Date: Wed, 14 Jan 2026 09:28:56 -0500 Message-ID: <20260114142900.3945054-14-cel@kernel.org> X-Mailer: git-send-email 2.52.0 In-Reply-To: <20260114142900.3945054-1-cel@kernel.org> References: <20260114142900.3945054-1-cel@kernel.org> Precedence: bulk X-Mailing-List: linux-cifs@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: Chuck Lever Upper layers such as NFSD need a way to query whether a filesystem handles filenames in a case-sensitive manner so they can provide correct semantics to remote clients. Without this information, NFS exports of ISO 9660 filesystems cannot properly advertise their filename case behavior. Implement isofs_fileattr_get() to report ISO 9660 case handling behavior. The 'check=r' (relaxed) mount option enables case-insensitive lookups, and this setting determines the value reported through the file_kattr structure. By default, Joliet extensions operate in relaxed mode while plain ISO 9660 uses strict (case-sensitive) mode. All ISO 9660 variants are case-preserving, meaning filenames are stored exactly as they appear on the disc. The callback is registered only on isofs_dir_inode_operations because isofs has no custom inode_operations for regular files, and symlinks use the generic page_symlink_inode_operations. Reviewed-by: Jan Kara Signed-off-by: Chuck Lever --- fs/isofs/dir.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/fs/isofs/dir.c b/fs/isofs/dir.c index 09df40b612fb..7f95ddeb5991 100644 --- a/fs/isofs/dir.c +++ b/fs/isofs/dir.c @@ -12,6 +12,7 @@ * isofs directory handling functions */ #include +#include #include "isofs.h" int isofs_name_translate(struct iso_directory_record *de, char *new, struct inode *inode) @@ -266,6 +267,15 @@ static int isofs_readdir(struct file *file, struct dir_context *ctx) return result; } +static int isofs_fileattr_get(struct dentry *dentry, struct file_kattr *fa) +{ + struct isofs_sb_info *sbi = ISOFS_SB(dentry->d_sb); + + /* ISO 9660 preserves case (the default). */ + fa->case_insensitive = sbi->s_check == 'r'; + return 0; +} + const struct file_operations isofs_dir_operations = { .llseek = generic_file_llseek, @@ -279,6 +289,7 @@ const struct file_operations isofs_dir_operations = const struct inode_operations isofs_dir_inode_operations = { .lookup = isofs_lookup, + .fileattr_get = isofs_fileattr_get, }; -- 2.52.0 From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.sourceforge.net (lists.sourceforge.net [216.105.38.7]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id D41E3D37E39 for ; Wed, 14 Jan 2026 14:29:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.sourceforge.net; s=beta; h=Content-Transfer-Encoding:Content-Type:Cc: Reply-To:From:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:Subject:MIME-Version:References:In-Reply-To: Message-ID:Date:To:Sender:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=0AVlgP9xpYrAdQWrUmV+9w/OgTs5FipPQnbjAW0rScw=; b=V41uWv8He4QmQhQkDVhdEBbOdP 4n8LSBOc/Jj6XcQks0rJjbm4f84hESYyeB3LfeNTg47jIma5ZWMRuumuHoCL+iH1LjOJbApcPI4aQ CsLA/BaZ4SQ9niwdy0Ezw05QHrV+p8zy7uh+ZX0k/XiQAeu9EUeSSuXvfQ2m84zxKTic=; Received: from [127.0.0.1] (helo=sfs-ml-2.v29.lw.sourceforge.com) by sfs-ml-2.v29.lw.sourceforge.com with esmtp (Exim 4.95) (envelope-from ) id 1vg1sP-0003GO-P0; Wed, 14 Jan 2026 14:29:38 +0000 Received: from [172.30.29.66] (helo=mx.sourceforge.net) by sfs-ml-2.v29.lw.sourceforge.com with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.95) (envelope-from ) id 1vg1sO-0003G5-Bn for linux-f2fs-devel@lists.sourceforge.net; Wed, 14 Jan 2026 14:29:37 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sourceforge.net; s=x; h=Content-Transfer-Encoding:MIME-Version:References: In-Reply-To:Message-ID:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=Z+oYJsUaRVp1bETW9pujxWTvO8WcJfiBe83v8MQuOp8=; b=fn5Io60a41xwlZ1HZVgoHOZ8cl bCAluZW+Tm0GzRWk+C/HHY5vAqm67QySDEn8qiBWj6UxnioXzW79/IqlOvcGBWJ6NhHMpFPWMOEBZ WBqNC8ANdKsqhXkrcoraf1WsIk5rM2PoQX0XILFKKuQNb+9U5vHHvSOV7uOnF0zUdMpM=; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sf.net; s=x ; h=Content-Transfer-Encoding:MIME-Version:References:In-Reply-To:Message-ID: Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=Z+oYJsUaRVp1bETW9pujxWTvO8WcJfiBe83v8MQuOp8=; b=CMlBHPk8x9+nwqVLwGEz+4jof3 a5TctSI33R3iTQQEMyqDA2i6SSzP55/h2Fhj4I3XoVISxnPvexvOvodWyauxeu6DcmEIo2SuO5YiG P7Kv+P+mK9elETvWtY33suFw7Wdhm/QRPS3ZF513msx+ly14wFbeUPqNhgSd0bUSDYCc=; Received: from sea.source.kernel.org ([172.234.252.31]) by sfi-mx-2.v28.lw.sourceforge.com with esmtps (TLS1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.95) id 1vg1sO-0001Gg-Lv for linux-f2fs-devel@lists.sourceforge.net; Wed, 14 Jan 2026 14:29:37 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by sea.source.kernel.org (Postfix) with ESMTP id 92BB34421C; Wed, 14 Jan 2026 14:29:36 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 45245C4CEF7; Wed, 14 Jan 2026 14:29:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1768400976; bh=ybvM1kaY1V4Mcy01w16uCg2E273b09cBL9S5NnTYbjA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=srmKTD0QtMAIoXojQGafdEDUElJSbxtqMqloz9Mx0GcoduChcl0eAXHJw0a0+e10O U77kOjg5e4xVgxSXcxTG2pmKkAWitNvg5OGncIin1CtfawcIeMpNHEuxP3Qhw7iaKJ Z6w0NMRlGK1GoulyNAY2+0UH51mTwakmIESBpk4MwattCRB0wIQwi4AuB+TPIvIXxO SFSMwpCptdmoSXunk+vV/vzf7E7D2jG0+Jm9Qrt/+ESrpkLf1cb/bpg/e4aBQK3jvu 0hTVE72zWYT/6L/zATk24TOG0jG0wj+0ehlLpnnZzzWxGgkti3vcNOWhFufDnvCF31 d0szph0umN1gw== To: vira, Christian Brauner , Jan Kara Date: Wed, 14 Jan 2026 09:28:56 -0500 Message-ID: <20260114142900.3945054-14-cel@kernel.org> X-Mailer: git-send-email 2.52.0 In-Reply-To: <20260114142900.3945054-1-cel@kernel.org> References: <20260114142900.3945054-1-cel@kernel.org> MIME-Version: 1.0 X-Headers-End: 1vg1sO-0001Gg-Lv Subject: [f2fs-dev] [PATCH v4 13/16] isofs: Implement fileattr_get for case sensitivity X-BeenThere: linux-f2fs-devel@lists.sourceforge.net X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Chuck Lever via Linux-f2fs-devel Reply-To: Chuck Lever Cc: pc@manguebit.org, yuezhang.mo@sony.com, cem@kernel.org, almaz.alexandrovich@paragon-software.com, adilger.kernel@dilger.ca, linux-cifs@vger.kernel.org, sfrench@samba.org, slava@dubeyko.com, linux-ext4@vger.kernel.org, linkinjeon@kernel.org, sprasad@microsoft.com, frank.li@vivo.com, ronniesahlberg@gmail.com, glaubitz@physik.fu-berlin.de, jaegeuk@kernel.org, hirofumi@mail.parknet.co.jp, linux-nfs@vger.kernel.org, tytso@mit.edu, linux-f2fs-devel@lists.sourceforge.net, linux-xfs@vger.kernel.org, senozhatsky@chromium.org, Chuck Lever , hansg@kernel.org, anna@kernel.org, linux-fsdevel@vger.kernel.org, sj1557.seo@samsung.com, trondmy@kernel.org Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: linux-f2fs-devel-bounces@lists.sourceforge.net From: Chuck Lever Upper layers such as NFSD need a way to query whether a filesystem handles filenames in a case-sensitive manner so they can provide correct semantics to remote clients. Without this information, NFS exports of ISO 9660 filesystems cannot properly advertise their filename case behavior. Implement isofs_fileattr_get() to report ISO 9660 case handling behavior. The 'check=r' (relaxed) mount option enables case-insensitive lookups, and this setting determines the value reported through the file_kattr structure. By default, Joliet extensions operate in relaxed mode while plain ISO 9660 uses strict (case-sensitive) mode. All ISO 9660 variants are case-preserving, meaning filenames are stored exactly as they appear on the disc. The callback is registered only on isofs_dir_inode_operations because isofs has no custom inode_operations for regular files, and symlinks use the generic page_symlink_inode_operations. Reviewed-by: Jan Kara Signed-off-by: Chuck Lever --- fs/isofs/dir.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/fs/isofs/dir.c b/fs/isofs/dir.c index 09df40b612fb..7f95ddeb5991 100644 --- a/fs/isofs/dir.c +++ b/fs/isofs/dir.c @@ -12,6 +12,7 @@ * isofs directory handling functions */ #include +#include #include "isofs.h" int isofs_name_translate(struct iso_directory_record *de, char *new, struct inode *inode) @@ -266,6 +267,15 @@ static int isofs_readdir(struct file *file, struct dir_context *ctx) return result; } +static int isofs_fileattr_get(struct dentry *dentry, struct file_kattr *fa) +{ + struct isofs_sb_info *sbi = ISOFS_SB(dentry->d_sb); + + /* ISO 9660 preserves case (the default). */ + fa->case_insensitive = sbi->s_check == 'r'; + return 0; +} + const struct file_operations isofs_dir_operations = { .llseek = generic_file_llseek, @@ -279,6 +289,7 @@ const struct file_operations isofs_dir_operations = const struct inode_operations isofs_dir_inode_operations = { .lookup = isofs_lookup, + .fileattr_get = isofs_fileattr_get, }; -- 2.52.0 _______________________________________________ Linux-f2fs-devel mailing list Linux-f2fs-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel