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 3769137F0FC; Mon, 12 Jan 2026 17:46:44 +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=1768240005; cv=none; b=ZeOI1jbclokACj81nj1vnFz4Pd/X6U6h+PtBNKDSWTbpMWaEi+jgq44J9AvhTELCTu90lgERHxKmIaidoETVlBWj7XloxwJHk1xLbw13folfzhW4eJ5A9ebTnxuIxmb54M4K6yhI0OkNAQZtghpJHDsrCRruuJC6Rfwmqbk+ax4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768240005; c=relaxed/simple; bh=PfQjVLZvVpo6oSmx3bdnIfFuuwOIYU69FfsfSUUXVKo=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=DrRU+DXqrk0wafpHwUBBgS+VdKyeWiYCN7JsSlPzuUeQzBNJq0G6MeO8hh8VfKw5+/mQRSY+OHFNamhjzcwhzRtouPkh6Ir9Y1BuiRmFmc6nn9uhMdqYOpv0evu5+2Qd6YvAHyfD/YyIndH0Bn0d0odCDkwXUbsx77+zIqgOgsU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=MpXIWcJw; 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="MpXIWcJw" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 41FCAC2BCB9; Mon, 12 Jan 2026 17:46:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1768240004; bh=PfQjVLZvVpo6oSmx3bdnIfFuuwOIYU69FfsfSUUXVKo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=MpXIWcJwHzs8xzhDNq5sN5KE6k0+KD6Zrjz6X9kt+JN0Idw3bQAEyR3VlJ1UtcpR4 XKIy1gi91jbXnmMnSyW11oBY80rTq67+D1E83Qa8mX8QHr6IQOqrZ60A1n5p6t6VM/ kErv/mFkNI0d/iJV+SQ2ueGGAXlQ32+JFabvAo7c8tGqb1oWt0Y/WsY1AEfxP8mxgY 6fnD6AAogFw5ZKtj+nNq+Qz0joH5VCXp8l2dc3TeWrBWiE9rGMiKsuGQmUyRrZ8EUU 6StslRTRMhNXL+gLfd6c8lKWPfcduAW+8HpuqUOxctEBxgtSlv5qawJDcI5JPbtcu7 6AEUxTIwoh+yA== 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 v3 03/16] exfat: Implement fileattr_get for case sensitivity Date: Mon, 12 Jan 2026 12:46:16 -0500 Message-ID: <20260112174629.3729358-4-cel@kernel.org> X-Mailer: git-send-email 2.52.0 In-Reply-To: <20260112174629.3729358-1-cel@kernel.org> References: <20260112174629.3729358-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 Report exFAT's case sensitivity behavior via the file_kattr boolean fields. exFAT is always case-insensitive (using an upcase table for comparison) and always preserves case at rest. Signed-off-by: Chuck Lever --- fs/exfat/exfat_fs.h | 2 ++ fs/exfat/file.c | 17 +++++++++++++++-- fs/exfat/namei.c | 1 + 3 files changed, 18 insertions(+), 2 deletions(-) diff --git a/fs/exfat/exfat_fs.h b/fs/exfat/exfat_fs.h index 176fef62574c..11c782a28843 100644 --- a/fs/exfat/exfat_fs.h +++ b/fs/exfat/exfat_fs.h @@ -468,6 +468,8 @@ int exfat_setattr(struct mnt_idmap *idmap, struct dentry *dentry, int exfat_getattr(struct mnt_idmap *idmap, const struct path *path, struct kstat *stat, unsigned int request_mask, unsigned int query_flags); +struct file_kattr; +int exfat_fileattr_get(struct dentry *dentry, struct file_kattr *fa); int exfat_file_fsync(struct file *file, loff_t start, loff_t end, int datasync); long exfat_ioctl(struct file *filp, unsigned int cmd, unsigned long arg); long exfat_compat_ioctl(struct file *filp, unsigned int cmd, diff --git a/fs/exfat/file.c b/fs/exfat/file.c index 536c8078f0c1..0fda71b3e838 100644 --- a/fs/exfat/file.c +++ b/fs/exfat/file.c @@ -12,6 +12,7 @@ #include #include #include +#include #include "exfat_raw.h" #include "exfat_fs.h" @@ -281,6 +282,17 @@ int exfat_getattr(struct mnt_idmap *idmap, const struct path *path, return 0; } +int exfat_fileattr_get(struct dentry *dentry, struct file_kattr *fa) +{ + /* + * exFAT is always case-insensitive (using upcase table) and + * always preserves case at rest. + */ + fa->case_insensitive = true; + fa->case_preserving = true; + return 0; +} + int exfat_setattr(struct mnt_idmap *idmap, struct dentry *dentry, struct iattr *attr) { @@ -775,6 +787,7 @@ const struct file_operations exfat_file_operations = { }; const struct inode_operations exfat_file_inode_operations = { - .setattr = exfat_setattr, - .getattr = exfat_getattr, + .setattr = exfat_setattr, + .getattr = exfat_getattr, + .fileattr_get = exfat_fileattr_get, }; diff --git a/fs/exfat/namei.c b/fs/exfat/namei.c index dfe957493d49..a3a854ddc83a 100644 --- a/fs/exfat/namei.c +++ b/fs/exfat/namei.c @@ -1323,4 +1323,5 @@ const struct inode_operations exfat_dir_inode_operations = { .rename = exfat_rename, .setattr = exfat_setattr, .getattr = exfat_getattr, + .fileattr_get = exfat_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 4E488CF45B2 for ; Mon, 12 Jan 2026 17:46:57 +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=XeKg7Hh55SD+SR2oual2EGIH4ynczs9RVE7LgaLiEz4=; b=cgOmXic9r6SOBICklHbaTPLlbO /bVicEn9y67AIN6YcFVx8Wnb1FCXSyedt0nshZdrAMIGVXRevlRaTBoG8GL1DclyB1VIQvr61wXUK PSRBwXn334Lpw4Y1bJ0YnS3UiW97Lv594Do8SG1w2phv6aX6Vc9syqjvGBvIuTvUp/BE=; 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 1vfM0G-00083D-3l; Mon, 12 Jan 2026 17:46:56 +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 1vfM0E-000833-OC for linux-f2fs-devel@lists.sourceforge.net; Mon, 12 Jan 2026 17:46:55 +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=Q8rnsY4lcub6hOr8SpCnD/lUlpjcsqm4t1hl89wxRRA=; b=V52PTvpnxqbVyDY0TIeXrUiGv6 cDNJfgc8r4SmO450iygHpduYIHPK/rc3k8IUaG7RvLBXgcfYDl/ErMboJAQpN5fZdx7k4sfLJ/LvG uJ2Vu7i2b5/fB+BWXp6a4IQPmx4iB5fnyBrvK/zLp5q5K+Yb0300+/nk4XBHI9hBIRY8=; 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=Q8rnsY4lcub6hOr8SpCnD/lUlpjcsqm4t1hl89wxRRA=; b=FzxYQjc9S1Hxdm/Ul7D2W23NSm 2IN8VT7i7kp8LxzXWIGHKHLDKQZQp8lZLUfAjlSRYb9nIKw9FA2Q0ZWSVm7sHosDG1/Pcm6IBj9NI uzFFaNSI4m6gSF+XZFqNtrdvdzp0K4DkWvvSsisZh4ic57Lt9z+ZN7UKSwQIgQq3K9zM=; 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 1vfM0F-0008St-1o for linux-f2fs-devel@lists.sourceforge.net; Mon, 12 Jan 2026 17:46:55 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by sea.source.kernel.org (Postfix) with ESMTP id BEC2A44401; Mon, 12 Jan 2026 17:46:44 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 41FCAC2BCB9; Mon, 12 Jan 2026 17:46:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1768240004; bh=PfQjVLZvVpo6oSmx3bdnIfFuuwOIYU69FfsfSUUXVKo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=MpXIWcJwHzs8xzhDNq5sN5KE6k0+KD6Zrjz6X9kt+JN0Idw3bQAEyR3VlJ1UtcpR4 XKIy1gi91jbXnmMnSyW11oBY80rTq67+D1E83Qa8mX8QHr6IQOqrZ60A1n5p6t6VM/ kErv/mFkNI0d/iJV+SQ2ueGGAXlQ32+JFabvAo7c8tGqb1oWt0Y/WsY1AEfxP8mxgY 6fnD6AAogFw5ZKtj+nNq+Qz0joH5VCXp8l2dc3TeWrBWiE9rGMiKsuGQmUyRrZ8EUU 6StslRTRMhNXL+gLfd6c8lKWPfcduAW+8HpuqUOxctEBxgtSlv5qawJDcI5JPbtcu7 6AEUxTIwoh+yA== To: vira, Christian Brauner , Jan Kara Date: Mon, 12 Jan 2026 12:46:16 -0500 Message-ID: <20260112174629.3729358-4-cel@kernel.org> X-Mailer: git-send-email 2.52.0 In-Reply-To: <20260112174629.3729358-1-cel@kernel.org> References: <20260112174629.3729358-1-cel@kernel.org> MIME-Version: 1.0 X-Headers-End: 1vfM0F-0008St-1o Subject: [f2fs-dev] [PATCH v3 03/16] exfat: 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 Report exFAT's case sensitivity behavior via the file_kattr boolean fields. exFAT is always case-insensitive (using an upcase table for comparison) and always preserves case at rest. Signed-off-by: Chuck Lever --- fs/exfat/exfat_fs.h | 2 ++ fs/exfat/file.c | 17 +++++++++++++++-- fs/exfat/namei.c | 1 + 3 files changed, 18 insertions(+), 2 deletions(-) diff --git a/fs/exfat/exfat_fs.h b/fs/exfat/exfat_fs.h index 176fef62574c..11c782a28843 100644 --- a/fs/exfat/exfat_fs.h +++ b/fs/exfat/exfat_fs.h @@ -468,6 +468,8 @@ int exfat_setattr(struct mnt_idmap *idmap, struct dentry *dentry, int exfat_getattr(struct mnt_idmap *idmap, const struct path *path, struct kstat *stat, unsigned int request_mask, unsigned int query_flags); +struct file_kattr; +int exfat_fileattr_get(struct dentry *dentry, struct file_kattr *fa); int exfat_file_fsync(struct file *file, loff_t start, loff_t end, int datasync); long exfat_ioctl(struct file *filp, unsigned int cmd, unsigned long arg); long exfat_compat_ioctl(struct file *filp, unsigned int cmd, diff --git a/fs/exfat/file.c b/fs/exfat/file.c index 536c8078f0c1..0fda71b3e838 100644 --- a/fs/exfat/file.c +++ b/fs/exfat/file.c @@ -12,6 +12,7 @@ #include #include #include +#include #include "exfat_raw.h" #include "exfat_fs.h" @@ -281,6 +282,17 @@ int exfat_getattr(struct mnt_idmap *idmap, const struct path *path, return 0; } +int exfat_fileattr_get(struct dentry *dentry, struct file_kattr *fa) +{ + /* + * exFAT is always case-insensitive (using upcase table) and + * always preserves case at rest. + */ + fa->case_insensitive = true; + fa->case_preserving = true; + return 0; +} + int exfat_setattr(struct mnt_idmap *idmap, struct dentry *dentry, struct iattr *attr) { @@ -775,6 +787,7 @@ const struct file_operations exfat_file_operations = { }; const struct inode_operations exfat_file_inode_operations = { - .setattr = exfat_setattr, - .getattr = exfat_getattr, + .setattr = exfat_setattr, + .getattr = exfat_getattr, + .fileattr_get = exfat_fileattr_get, }; diff --git a/fs/exfat/namei.c b/fs/exfat/namei.c index dfe957493d49..a3a854ddc83a 100644 --- a/fs/exfat/namei.c +++ b/fs/exfat/namei.c @@ -1323,4 +1323,5 @@ const struct inode_operations exfat_dir_inode_operations = { .rename = exfat_rename, .setattr = exfat_setattr, .getattr = exfat_getattr, + .fileattr_get = exfat_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