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 8D4A5D3EE86 for ; Thu, 22 Jan 2026 16:03:48 +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=fIY5ryVK522DIcIwBDANrlL/UGypS/Wb+y3Aq5XGbJI=; b=ILtKpLcDtGfa2C1CSIMw7M0tOU MJ9ZyfVuyKPKdX73BvOVLHO4jv/DgnO+3VNeLrbdPRXxuRpuZHHMGcGKzQEukH+ZjXG68CcgceFVH 666IzoijbWXnowyVphZdksKUfZuHfDLUq+C8JXOTi0b2s9XflG+fjgueAkwl/Nuln3L8=; Received: from [127.0.0.1] (helo=sfs-ml-3.v29.lw.sourceforge.com) by sfs-ml-3.v29.lw.sourceforge.com with esmtp (Exim 4.95) (envelope-from ) id 1vix9w-0002zf-66; Thu, 22 Jan 2026 16:03:48 +0000 Received: from [172.30.29.66] (helo=mx.sourceforge.net) by sfs-ml-3.v29.lw.sourceforge.com with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.95) (envelope-from ) id 1vix9u-0002zU-NK for linux-f2fs-devel@lists.sourceforge.net; Thu, 22 Jan 2026 16:03:46 +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=vF8ZglCF4TS243bBCaJNZKEpzypzx+wqglQnaSl3kzs=; b=bMdndyOGRDrBb1fgci4wYGZx9+ PWPQzl6x9fIyemsrlgO9PIFDAcm9OxjcpO+sWNDqLnqVfJLSGilgS/7yvd84JGz1BewpVfgjz3UJx fGD/ghCbOeK6X4CKoENfFe2E5DLNqgeLNFs+mrORprae7x2m5cI+q2iAsmSgR61cjZFM=; 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=vF8ZglCF4TS243bBCaJNZKEpzypzx+wqglQnaSl3kzs=; b=h5E73TyutzmkwU8jK5JLuXcJPp zFBvcZ36+9WMM1pQHmFEJCSvmNASb8dO3oj72+vHQWjEP5DaQCqxBAiB0j68TXRrq7YoH/AapTHJM Z1QtjeVw45QezweWDXhhBjhVAgETiPyi9xNgSRZfTWeGKFA01guV1NnlWJyd7XbdGAkI=; 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 1vix9u-0000W0-Bq for linux-f2fs-devel@lists.sourceforge.net; Thu, 22 Jan 2026 16:03:46 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by sea.source.kernel.org (Postfix) with ESMTP id 1870B443A0; Thu, 22 Jan 2026 16:03:36 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8FDB8C116C6; Thu, 22 Jan 2026 16:03:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1769097815; bh=Kj+ayzVWTGTE/9UqBMu9SybvI6joLEnV2BfTwDGEXeg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=X7pHCXBAinh6H8ZYn6Eb3un06aRuRAt5mTyxa3ks5jcEg7tVd8V9L39NatW85XC5F eGQB71z6LusnxAi5F6aW4stt1oV4700INXmDBFdlllvUwZDHA/Yb/42yY6vNqGpj57 qRoVEVGNcOScP4KRzYA3rWSZyh08fo5JLYlzLsnb1XNGdqippb/JBuxBOuJKiAA5AH aT70DBp2amQWE9GQ6Hu54hhWd4Tq2McMKVnSwx9vUix5IWBW0FrEYNCK9e5WXGx0EY YSUUwfyi2YDwXAX2LxNsoAySQwA7uBsTDmZBtn5aUxLjiL2BQDnrlbUH+cFiMZu6Fq tLqTkF+ffwl0A== To: Al Viro , Christian Brauner , Jan Kara Date: Thu, 22 Jan 2026 11:03:03 -0500 Message-ID: <20260122160311.1117669-9-cel@kernel.org> X-Mailer: git-send-email 2.52.0 In-Reply-To: <20260122160311.1117669-1-cel@kernel.org> References: <20260122160311.1117669-1-cel@kernel.org> MIME-Version: 1.0 X-Headers-End: 1vix9u-0000W0-Bq Subject: [f2fs-dev] [PATCH v7 08/16] xfs: Report case sensitivity in fileattr_get 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, "Darrick J. Wong" , 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 Upper layers such as NFSD need to query whether a filesystem is case-sensitive. Report case sensitivity via the FS_XFLAG_CASEFOLD flag in xfs_fileattr_get(). XFS always preserves case. XFS is case-sensitive by default, but supports ASCII case-insensitive lookups when formatted with the ASCIICI feature flag. Reviewed-by: "Darrick J. Wong" Signed-off-by: Chuck Lever --- fs/xfs/xfs_ioctl.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/fs/xfs/xfs_ioctl.c b/fs/xfs/xfs_ioctl.c index f0417c4d1fca..da98d4422b02 100644 --- a/fs/xfs/xfs_ioctl.c +++ b/fs/xfs/xfs_ioctl.c @@ -516,6 +516,13 @@ xfs_fileattr_get( xfs_fill_fsxattr(ip, XFS_DATA_FORK, fa); xfs_iunlock(ip, XFS_ILOCK_SHARED); + /* + * FS_XFLAG_CASEFOLD indicates case-insensitive lookups with + * case preservation. This matches ASCIICI behavior: lookups + * fold ASCII case while filenames remain stored verbatim. + */ + if (xfs_has_asciici(ip->i_mount)) + fa->fsx_xflags |= FS_XFLAG_CASEFOLD; return 0; } -- 2.52.0 _______________________________________________ Linux-f2fs-devel mailing list Linux-f2fs-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel