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 X-Spam-Level: X-Spam-Status: No, score=-15.1 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id E12FEC433DB for ; Tue, 23 Mar 2021 21:58:32 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 6DEFE619D1 for ; Tue, 23 Mar 2021 21:58:32 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 6DEFE619D1 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=infradead.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id E6AE06B027A; Tue, 23 Mar 2021 17:58:31 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id E41DA6B027C; Tue, 23 Mar 2021 17:58:31 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id CE2A96B027E; Tue, 23 Mar 2021 17:58:31 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0217.hostedemail.com [216.40.44.217]) by kanga.kvack.org (Postfix) with ESMTP id B2F626B027A for ; Tue, 23 Mar 2021 17:58:31 -0400 (EDT) Received: from smtpin24.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay01.hostedemail.com (Postfix) with ESMTP id 6ECE818020B2A for ; Tue, 23 Mar 2021 21:58:31 +0000 (UTC) X-FDA: 77952503622.24.0B49D46 Received: from desiato.infradead.org (desiato.infradead.org [90.155.92.199]) by imf20.hostedemail.com (Postfix) with ESMTP id DBDCEDA for ; Tue, 23 Mar 2021 21:58:29 +0000 (UTC) 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:MIME-Version:Date:Message-ID:From:References:Cc:To:Subject: Sender:Reply-To:Content-ID:Content-Description; bh=tguUq1/+1debzLV6j9Qgw6nQZpGX4uuwNKugLMThEpg=; b=poBC+bwUGkwikBCg8Z6eMjckck YZtFGWnQEaSmbAOu8SkRB3iA9t0z3qw4zmTSUNa2oC/FWKKEVKQudBTRkN1vVYoKhCZAc4aQVZeKh FDRUQApRRoesq5atcre1b9j0GXWCNUriurqVYCFpcajVZuB46he57P7hRzNU7NyJIZZZk8F3c+ZKF aJsev2bZoUFH++pmRGCN67Yh4Wc46Y99XYJCEKipntI6XXy7gIu2DfLXk7LVkV084g8jEyDprRExs +8pRy993sSAh04TGM9Yiw7xBD67LtkN/F1aHWbf/IC+MZSWzGYPt5VieAnQ9msV9K3eNcqMYfXQzs eJ08bHsQ==; Received: from [2601:1c0:6280:3f0::3ba4] by desiato.infradead.org with esmtpsa (Exim 4.94 #2 (Red Hat Linux)) id 1lOp2e-00FoaL-8Q; Tue, 23 Mar 2021 21:58:24 +0000 Subject: Re: [RFC PATCH 4/4] docs: tmpfs: Add casefold options To: =?UTF-8?Q?Andr=c3=a9_Almeida?= , Hugh Dickins , Andrew Morton , Alexander Viro Cc: krisman@collabora.com, smcv@collabora.com, kernel@collabora.com, linux-mm@kvack.org, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, Daniel Rosenberg References: <20210323195941.69720-1-andrealmeid@collabora.com> <20210323195941.69720-5-andrealmeid@collabora.com> From: Randy Dunlap Message-ID: Date: Tue, 23 Mar 2021 14:58:20 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.8.0 MIME-Version: 1.0 In-Reply-To: <20210323195941.69720-5-andrealmeid@collabora.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US X-Rspamd-Server: rspam03 X-Rspamd-Queue-Id: DBDCEDA X-Stat-Signature: h4co1urt48hb7deaiopssosp1zrz5uc7 Received-SPF: none (infradead.org>: No applicable sender policy available) receiver=imf20; identity=mailfrom; envelope-from=""; helo=desiato.infradead.org; client-ip=90.155.92.199 X-HE-DKIM-Result: pass/pass X-HE-Tag: 1616536709-510015 Content-Transfer-Encoding: quoted-printable 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: Hi-- On 3/23/21 12:59 PM, Andr=C3=A9 Almeida wrote: > Document mounting options to enable casefold support in tmpfs. >=20 > Signed-off-by: Andr=C3=A9 Almeida > --- > Documentation/filesystems/tmpfs.rst | 26 ++++++++++++++++++++++++++ > 1 file changed, 26 insertions(+) >=20 > diff --git a/Documentation/filesystems/tmpfs.rst b/Documentation/filesy= stems/tmpfs.rst > index 0408c245785e..84c87c309bd7 100644 > --- a/Documentation/filesystems/tmpfs.rst > +++ b/Documentation/filesystems/tmpfs.rst > @@ -170,6 +170,32 @@ So 'mount -t tmpfs -o size=3D10G,nr_inodes=3D10k,m= ode=3D700 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. > =20 > +tmpfs has the following mounting options for case-insesitive lookups s= upport: > + > +=3D=3D=3D=3D=3D=3D=3D=3D=3D =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > +casefold Enable casefold support at this mount point using the give= n > + argument as enconding. Currently only utf8 encondings are = supported. encoding. encodings > +cf_strict Enable strict casefolding at this mouting point (disabled = by mount > + default). This means that invalid strings should be reject= by the reject= ed > + file system. > +=3D=3D=3D=3D=3D=3D=3D=3D=3D =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > + > +Note that this option doesn't enable casefold by default, one needs to= set default; one needs to= set the > +casefold flag per directory, setting the +F attribute in an empty dire= ctory. New > +directories within a casefolded one will inherit the flag. --=20 ~Randy