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 kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3E87BD3C538 for ; Thu, 17 Oct 2024 23:13:32 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id B2B536B0082; Thu, 17 Oct 2024 19:13:31 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id ADA9F6B0083; Thu, 17 Oct 2024 19:13:31 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 9CA066B0085; Thu, 17 Oct 2024 19:13:31 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0014.hostedemail.com [216.40.44.14]) by kanga.kvack.org (Postfix) with ESMTP id 7F2C06B0082 for ; Thu, 17 Oct 2024 19:13:31 -0400 (EDT) Received: from smtpin21.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay01.hostedemail.com (Postfix) with ESMTP id 1FAC61C7408 for ; Thu, 17 Oct 2024 23:13:18 +0000 (UTC) X-FDA: 82684647486.21.8404728 Received: from desiato.infradead.org (desiato.infradead.org [90.155.92.199]) by imf17.hostedemail.com (Postfix) with ESMTP id 5A0B040004 for ; Thu, 17 Oct 2024 23:13:20 +0000 (UTC) Authentication-Results: imf17.hostedemail.com; dkim=pass header.d=infradead.org header.s=desiato.20200630 header.b=iSw3Gz6y; dmarc=none; spf=none (imf17.hostedemail.com: domain of rdunlap@infradead.org has no SPF policy when checking 90.155.92.199) smtp.mailfrom=rdunlap@infradead.org ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1729206690; a=rsa-sha256; cv=none; b=YCP00dwhsysnox45n5HR75EU5wrotqBvsmyf17kW4UP0ZaVMX0nkenUgPda2nt7MqLh3Vz q8I7NhRgtAI1/EeFnoBU4PysUj0A0alIrRHZ2iN+8QMI70wKb4UXPDtc/fwSbzKs709dde ZZtsLL5/FAwKphrsH7kBSYIFKIcEKWY= ARC-Authentication-Results: i=1; imf17.hostedemail.com; dkim=pass header.d=infradead.org header.s=desiato.20200630 header.b=iSw3Gz6y; dmarc=none; spf=none (imf17.hostedemail.com: domain of rdunlap@infradead.org has no SPF policy when checking 90.155.92.199) smtp.mailfrom=rdunlap@infradead.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1729206690; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=B8mX33s5nApem0yXGWM3AlBpANvFaXCy2a1aCEwgJeo=; b=TyOfIP4DlSxkaGcZ4UtahUPGCitTmeblJggdbM+OyZzvE2P9Cl7Syeag5MSup0OM6bnt7I dEChtm/S85RbUD093/6FFW3XviOiMmF3mxBdtzvuR2WZWT922HP4UVK5jreXq9Eulbqzxw gqo5xl4QFObigL3SZ4yAnBA3x1bBM24= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=desiato.20200630; h=Content-Transfer-Encoding:Content-Type :In-Reply-To:From:References:Cc:To:Subject:MIME-Version:Date:Message-ID: Sender:Reply-To:Content-ID:Content-Description; bh=B8mX33s5nApem0yXGWM3AlBpANvFaXCy2a1aCEwgJeo=; b=iSw3Gz6ynGTxgONka5L3hPlc3N /4XdFxJmX1AruX9PaoPovNzVy33I4Ckvjy8akXWg6JhVT3jDXHbtkaBuL7XgxDUGaQv4vPYruLmSt gblrn3zUlypdRdTbTKJrWHav8lq6lV13cJOLmfBlnvkMBTRpKTEQq6PK3jje1+1zQLjA39NFGqODU jI+SUCRO0RZNPvetNjxyYoPbNdgXTR1T6601aHK5GaUGaUlldiZ8ASE2j0/x9vskE0GklCKtWKby2 8fDbw01oXItQYIU9WSbA1R426YfATIrrdj1HO9YshMzdw877UgI3uecWYbaRdximbEDkiP42pqUOl aHFBfNmw==; Received: from [50.53.2.24] (helo=[192.168.254.17]) by desiato.infradead.org with esmtpsa (Exim 4.98 #2 (Red Hat Linux)) id 1t1Zg6-00000007F1I-0HtV; Thu, 17 Oct 2024 23:13:11 +0000 Message-ID: <787b22d1-7072-4ab7-8314-3f1fd15e5a22@infradead.org> Date: Thu, 17 Oct 2024 16:13:01 -0700 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v7 9/9] docs: tmpfs: Add casefold options To: =?UTF-8?Q?Andr=C3=A9_Almeida?= , Gabriel Krisman Bertazi , Alexander Viro , Christian Brauner , Jan Kara , Theodore Ts'o , Andreas Dilger , Hugh Dickins , Andrew Morton , Jonathan Corbet , smcv@collabora.com Cc: kernel-dev@igalia.com, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, linux-ext4@vger.kernel.org, linux-mm@kvack.org, linux-doc@vger.kernel.org, Gabriel Krisman Bertazi References: <20241017-tonyk-tmpfs-v7-0-a9c056f8391f@igalia.com> <20241017-tonyk-tmpfs-v7-9-a9c056f8391f@igalia.com> Content-Language: en-US From: Randy Dunlap In-Reply-To: <20241017-tonyk-tmpfs-v7-9-a9c056f8391f@igalia.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Rspamd-Server: rspam12 X-Rspamd-Queue-Id: 5A0B040004 X-Stat-Signature: ki37mjgk3i6st1jnws9hf1nzr8bot8m9 X-Rspam-User: X-HE-Tag: 1729206800-30458 X-HE-Meta: U2FsdGVkX1/50xoSmHGJkV1tWn/rgKqz7fZu0UeYCdnfioysmhQwg4sTgeABX/KrYDMM9f94R1EXh0Mv31yQEny/A89WOe5ySy4nQzwsxjBNY0VOM0a2C1iB+MHDaskyzZEPYn9i8PRr1QBKyiWuQ7ia7/pysyEJGMIQRpJiHNam5/rk4qWBZLiRqDnN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YiVwPqeUjHvqld+jTNMaw+tYGWY24UcJBwNPyJ8za+hWNsxf1aKPDf/KAZ40MrOOD944jnhhlgBSeaiixQGHN2FoiZ7aBV/9isLt8jIwxRykG2bBPZc8oWK/loDd456+jag03Ei7Kf5FsMNXw0JyHVqGysaqU2skHbakY6y+/Ynb+M2VdgomLm397 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: List-Subscribe: List-Unsubscribe: Hi, On 10/17/24 2:14 PM, André Almeida wrote: > Document mounting options for casefold support in tmpfs. > > Signed-off-by: André Almeida > Reviewed-by: Gabriel Krisman Bertazi > --- > Changes from v3: > - Rewrote note about "this doesn't enable casefold by default" (Krisman) > --- > Documentation/filesystems/tmpfs.rst | 24 ++++++++++++++++++++++++ > 1 file changed, 24 insertions(+) > > diff --git a/Documentation/filesystems/tmpfs.rst b/Documentation/filesystems/tmpfs.rst > index 56a26c843dbe964086503dda9b4e8066a1242d72..0385310f225808f55483413f2c69d3b6dc1b9913 100644 > --- a/Documentation/filesystems/tmpfs.rst > +++ b/Documentation/filesystems/tmpfs.rst > @@ -241,6 +241,28 @@ So 'mount -t tmpfs -o size=10G,nr_inodes=10k,mode=700 tmpfs /mytmpfs' > will give you tmpfs instance on /mytmpfs which can allocate 10GB > RAM/SWAP in 10240 inodes and it is only accessible by root. > > +tmpfs has the following mounting options for case-insensitive lookup support: > + > +================= ============================================================== > +casefold Enable casefold support at this mount point using the given > + argument as the encoding standard. Currently only UTF-8 > + encodings are supported. If no argument is used, it will load > + the latest UTF-8 encoding available. > +strict_encoding Enable strict encoding at this mount point (disabled by > + default). In this mode, the filesystem refuses to create file > + and directory with names containing invalid UTF-8 characters. > +================= ============================================================== > + > +This option doesn't render the entire filesystem case-insensitive. One needs to > +still set the casefold flag per directory, by flipping +F attribute in an empty I would say: flipping the +F attribute > +directory. Nevertheless, new directories will inherit the attribute. The > +mountpoint itself cannot be made case-insensitive. > + > +Example:: > + > + $ mount -t tmpfs -o casefold=utf8-12.1.0,strict_encoding fs_name /mytmpfs > + $ mount -t tmpfs -o casefold fs_name /mytmpfs > + > > :Author: > Christoph Rohland , 1.12.01 > @@ -250,3 +272,5 @@ RAM/SWAP in 10240 inodes and it is only accessible by root. > KOSAKI Motohiro, 16 Mar 2010 > :Updated: > Chris Down, 13 July 2020 > +:Updated: > + André Almeida, 23 Aug 2024 > Reviewed-by: Randy Dunlap Thanks. -- ~Randy