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 D539BFAD3E0 for ; Wed, 22 Apr 2026 23:30:42 +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:To:In-Reply-To:References:Message-Id: MIME-Version:Date:Sender:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=Rl5vc5+KFUIIsV8ijNM925uulNklfkw9hGd8RHdRbVc=; b=kMNNg3gpmZ8e0/7cUC6ustswyz IAPrb57tDUK0F6Wj6OfXVSyO44I2Uj5SpuSyRLVixO7tADCRoPAB05QtT/cGTYGfNOB2sOAB5pRDu oy46c6Lm6cOmPwWTV8yAU0UT9TzN6FrRJfIu0dvnEOkaFijFpX6WV8z4IvvKGRhJzCyg=; 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 1wFh1j-00067H-Fj; Wed, 22 Apr 2026 23:30:40 +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 1wFh1h-000673-PA for linux-f2fs-devel@lists.sourceforge.net; Wed, 22 Apr 2026 23:30:38 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sourceforge.net; s=x; h=Cc:To:In-Reply-To:References:Message-Id: Content-Transfer-Encoding:Content-Type:MIME-Version:Subject:Date:From:Sender: Reply-To: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=znX4ahdIa/V7tWYZzwoj1Ska0SPRrRTtGrAePZ8jbaQ=; b=UGKFO31Xy3jLqHzUPBqbBGJBJB Bl8nTL+e9ru8LfgRujN0BaEpWliRV+ohQTjwbLfRZLWOEJo9kSoyMCwWP3sMvw2vABVqmqg1mi3jo IAbdhEPtXwU4lu4mDbbevmzrukJrRHgata2X0ZeqeL8qtpYmfL0aXwDhwmlXAbYI8VqY=; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sf.net; s=x ; h=Cc:To:In-Reply-To:References:Message-Id:Content-Transfer-Encoding: Content-Type:MIME-Version:Subject:Date:From:Sender:Reply-To: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=znX4ahdIa/V7tWYZzwoj1Ska0SPRrRTtGrAePZ8jbaQ=; b=d2x4MHV6HTsVEziIFdNKkmfAsd 6pHe9/5yUzlBXE5UnUiWdki7omSBpEeGr3XBhKwqgEX8MFBTktAmDLobg2chBxrvJoEgZbfaRtXSN NO6V6ZnfTxoBTXZTanXwGIxFLI8zmMJtk2G3KQElVwBE5pRlOPZylbViDKIFoNSyWmqA=; Received: from tor.source.kernel.org ([172.105.4.254]) by sfi-mx-2.v28.lw.sourceforge.com with esmtps (TLS1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.95) id 1wFh1h-0006dY-IW for linux-f2fs-devel@lists.sourceforge.net; Wed, 22 Apr 2026 23:30:38 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by tor.source.kernel.org (Postfix) with ESMTP id 018B861334; Wed, 22 Apr 2026 23:30:27 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8927AC2BCB4; Wed, 22 Apr 2026 23:30:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1776900626; bh=NB5dGHQsj3zLr3dcAIz13EIGulkS60j2QYCq86MIXR0=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=RsjnVQcMVxCIKkjtyLCeNGgFMdK2xgKnWdi3u9DLPI+VF1iH+t4kNcmTzgfSgNGQ7 HtBRDnsyAmKlKeNfPFSQmseMC7i39ffTMJzVDDrVRjw+64eu/Qv0nqrz/CMjykVfdQ v5lkjQhll8ZUK0qc/6DdRHPPLL3Q/fUD1LgCbQqkaqI+aa4Zk1+qge4EjbJJOOWOde a+jnsnn/NKYHUS9lhM//gVICpWfwF1h0rJEuRw5K4FZLkCEaKR9pbrMm0tfhC0JJIr Iofw3EkrT1paF6FwccnzVdUKgujMb4i4whkwgdNHCAwSRI1mwyoSxh8G/bCzWJHhmv q7cn7vQd7WKNw== Date: Wed, 22 Apr 2026 19:29:58 -0400 MIME-Version: 1.0 Message-Id: <20260422-case-sensitivity-v9-4-be023cc070e2@oracle.com> References: <20260422-case-sensitivity-v9-0-be023cc070e2@oracle.com> In-Reply-To: <20260422-case-sensitivity-v9-0-be023cc070e2@oracle.com> To: Al Viro , Christian Brauner , Jan Kara X-Mailer: b4 0.16-dev X-Developer-Signature: v=1; a=openpgp-sha256; l=2709; i=chuck.lever@oracle.com; h=from:subject:message-id; bh=q+8BbK8Itxc1BuNkeDUPYf4FrFMUGad4IdP0+8v/SOk=; b=owEBbQKS/ZANAwAKATNqszNvZn+XAcsmYgBp6VoF0dXjFDljLGiwndXVl0smyJi1TXib4riLb fAbdLq9i3mJAjMEAAEKAB0WIQQosuWwEobfJDzyPv4zarMzb2Z/lwUCaelaBQAKCRAzarMzb2Z/ l96oD/9sQOYnspj6pndQAxVjnCKDS8fMacuwOFJhveApT8nc83wU3gaX37Ibap3KHDM67yo9Eo4 BO0xCWgX+1bi0sHP7g+3wUea7hj5jwxb9sL3ux5ARn60I91KKMEphlBof9zAu9hKRQR2zefHHr9 78gzFXYz6cQqXoFzDjebheZFsUqD5smnovnGnaqhTyyLEU4DfwdAlZ8dfDsY3f1A+cAObqyiwZG paS/Z0IgG+KDsDNzfOMa3vkpK4C3fil3pNzkr05pFCKiZIY2JI6MnA00DLEcNLEKfhlu3lBHmfB kJxCk9Ic5vxO6h3xt2GD+KLmjt3eYPWhwOaYqBIXjY5qYVv6ns7WCFaUCUGu8og54eWqZwWjhB/ //hDFcCrGKLprrx6n2jrjaiwwmlbNEDKRTEnByiU8IooJaA7iKMP60BQCnkrpB5JIfA7kM0DC2D FHemwa53kjXku5rBwfI13ZInxdhDEs2QeY4jF4nHYVlurew8pQss8UuCqKaIaw/i6uHTWy/mFHO QRuPWQ4DxG6sYvgA/DE9Cv8BVITtlsq3pdiefLzKy6J/grUkSIasCAQdzXPQn6imssRGWavMiTW n9FXaUAWTJcDWYJB7655idsXto6L8TgSe5cYARfIkVskkJctd/FRBlO/cVrcugjApA9DLvpSvVY /vwhLos9Qe9KXIQ== X-Developer-Key: i=chuck.lever@oracle.com; a=openpgp; fpr=28B2E5B01286DF243CF23EFE336AB3336F667F97 X-Headers-End: 1wFh1h-0006dY-IW Subject: [f2fs-dev] [PATCH v9 04/17] 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-api@vger.kernel.org, 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 FS_XFLAG_CASEFOLD flag. exFAT is always case-insensitive (using an upcase table for comparison) and always preserves case at rest. Acked-by: Namjae Jeon 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 89ef5368277f..aff4dcd4e75a 100644 --- a/fs/exfat/exfat_fs.h +++ b/fs/exfat/exfat_fs.h @@ -496,6 +496,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 354bdcfe4abc..8af829ef54c4 100644 --- a/fs/exfat/file.c +++ b/fs/exfat/file.c @@ -14,6 +14,7 @@ #include #include #include +#include #include "exfat_raw.h" #include "exfat_fs.h" @@ -323,6 +324,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 compares filenames through an upcase table, so lookup + * is always case-insensitive. Long names are stored in UTF-16 + * with case intact; CASENONPRESERVING stays clear. + */ + fa->fsx_xflags |= FS_XFLAG_CASEFOLD; + return 0; +} + int exfat_setattr(struct mnt_idmap *idmap, struct dentry *dentry, struct iattr *attr) { @@ -817,6 +829,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 2c5636634b4a..94002e43db08 100644 --- a/fs/exfat/namei.c +++ b/fs/exfat/namei.c @@ -1311,4 +1311,5 @@ const struct inode_operations exfat_dir_inode_operations = { .rename = exfat_rename, .setattr = exfat_setattr, .getattr = exfat_getattr, + .fileattr_get = exfat_fileattr_get, }; -- 2.53.0 _______________________________________________ Linux-f2fs-devel mailing list Linux-f2fs-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel