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.3 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS,UNPARSEABLE_RELAY, 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 5EE40C433DB for ; Thu, 25 Mar 2021 14:27:55 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id EEA8A61A2A for ; Thu, 25 Mar 2021 14:27:54 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org EEA8A61A2A Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=collabora.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id 730766B007B; Thu, 25 Mar 2021 10:27:54 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 678C86B007E; Thu, 25 Mar 2021 10:27:54 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 567956B0080; Thu, 25 Mar 2021 10:27:54 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0209.hostedemail.com [216.40.44.209]) by kanga.kvack.org (Postfix) with ESMTP id 3BB446B007B for ; Thu, 25 Mar 2021 10:27:54 -0400 (EDT) Received: from smtpin14.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay03.hostedemail.com (Postfix) with ESMTP id F1DFA8A0E354 for ; Thu, 25 Mar 2021 14:27:53 +0000 (UTC) X-FDA: 77958625626.14.405A5F5 Received: from bhuna.collabora.co.uk (bhuna.collabora.co.uk [46.235.227.227]) by imf20.hostedemail.com (Postfix) with ESMTP id A08F83CA for ; Thu, 25 Mar 2021 14:27:51 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: tonyk) with ESMTPSA id CF8F91F4420E Subject: Re: [RFC PATCH 4/4] docs: tmpfs: Add casefold options To: Randy Dunlap Cc: krisman@collabora.com, smcv@collabora.com, kernel@collabora.com, linux-mm@kvack.org, linux-fsdevel@vger.kernel.org, Andrew Morton , Hugh Dickins , linux-kernel@vger.kernel.org, Daniel Rosenberg , Alexander Viro References: <20210323195941.69720-1-andrealmeid@collabora.com> <20210323195941.69720-5-andrealmeid@collabora.com> From: =?UTF-8?Q?Andr=c3=a9_Almeida?= Message-ID: <5561e50b-8f53-7d99-7981-2fbc77c38bde@collabora.com> Date: Thu, 25 Mar 2021 11:27:44 -0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.8.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US X-Stat-Signature: k5n3bk6atenno3brwg8zuzp63skiq1qm X-Rspamd-Server: rspam02 X-Rspamd-Queue-Id: A08F83CA Received-SPF: none (collabora.com>: No applicable sender policy available) receiver=imf20; identity=mailfrom; envelope-from=""; helo=bhuna.collabora.co.uk; client-ip=46.235.227.227 X-HE-DKIM-Result: none/none X-HE-Tag: 1616682471-957863 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: =C3=80s 18:58 de 23/03/21, Randy Dunlap escreveu: > Hi-- >=20 > On 3/23/21 12:59 PM, Andr=C3=A9 Almeida wrote: >> Document mounting options to enable casefold support in tmpfs. >> >> Signed-off-by: Andr=C3=A9 Almeida >> --- >> Documentation/filesystems/tmpfs.rst | 26 ++++++++++++++++++++++++++ >> 1 file changed, 26 insertions(+) >> >> diff --git a/Documentation/filesystems/tmpfs.rst b/Documentation/files= ystems/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,= mode=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 = support: >> + >> +=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 giv= en >> + argument as enconding. Currently only utf8 encondings are= supported. >=20 > encoding. encodings >=20 >> +cf_strict Enable strict casefolding at this mouting point (disabled= by >=20 > mount >=20 >> + default). This means that invalid strings should be rejec= t by the >=20 > rej= ected >=20 >> + 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 t= o set >=20 > default; one needs= to set the >=20 >> +casefold flag per directory, setting the +F attribute in an empty dir= ectory. New >> +directories within a casefolded one will inherit the flag. >=20 >=20 Thanks for the feedback Randy, all changes applied.