Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp4597562pxf; Tue, 23 Mar 2021 15:00:18 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxx6Ra+7XioIOzl5224STsXicdMjkon89tX9eqA0ASB8jLI4K4A6yKp/89Gtez3hQCjnqkS X-Received: by 2002:a17:906:8546:: with SMTP id h6mr300195ejy.23.1616536817963; Tue, 23 Mar 2021 15:00:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616536817; cv=none; d=google.com; s=arc-20160816; b=dSrKdDOTXomxFv/CuDf1uipk/Ee7NEcRDO7I8W3hysrUMim5ZbS8EEXU9OCtaVke5D 9jVXtGgqAwDMmDfm0VKV2cIFVeaceX2XRR+BEh63WaprzSDP3f0rYw1ytyuCHKGIpVSV gk+Qb3wH6LQJO3MHMSnXpntwD2I8VBvH70YV2T9MFAe76Va8iP/+LNiDglteWJbkxDiF GUfuJLSeFHVZKOXa6mx272UDnM41xsqKp/P4Nq8FQoerzIfpk2qYRC+BUB7+rDhtsWTG Ao/dO6xrBjBRR8JCMOC0B3l32FsMg9TmuQAuSab1OS1SNZ9BmNaPPGK7QYCVIIh8g/bR JQdA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=tguUq1/+1debzLV6j9Qgw6nQZpGX4uuwNKugLMThEpg=; b=zw0jeYhUUopSX0JuBRhRvsPljt26Sh43wORXUgsLLh2axQK7wI5NyZAeqho3/vc4ra sgiitpGS2L2cW2thGAm+8C5FEZvPGJneP5XCs5rIbyHeJ+3n3PXzku9muv9F2HH11DUt 93eRutjgpOLhs7Y7TLpibrV3yl1c/azjESPhbc6RPwCNvN+vC2WHIU8ecABhNYJBWBPs e50YvFAl4Ma25BvLCx43ejjiI0Q89Ci08THQV4lLBUfiSzLXIywKWw1Akeor14Jp0jF2 7PdwKrjeJ3fvK6N4leHuZ7moJLQIHe0uMhsixxY0T+gao3tUtoEeVLNWPbFi+fZQPgRs tTdA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=desiato.20200630 header.b=poBC+bwU; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id l21si194385edw.87.2021.03.23.14.59.50; Tue, 23 Mar 2021 15:00:17 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=desiato.20200630 header.b=poBC+bwU; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233771AbhCWV6w (ORCPT + 99 others); Tue, 23 Mar 2021 17:58:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33694 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233630AbhCWV6a (ORCPT ); Tue, 23 Mar 2021 17:58:30 -0400 Received: from desiato.infradead.org (desiato.infradead.org [IPv6:2001:8b0:10b:1:d65d:64ff:fe57:4e05]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D1CAFC061574; Tue, 23 Mar 2021 14:58:28 -0700 (PDT) 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 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi-- On 3/23/21 12:59 PM, André Almeida wrote: > Document mounting options to enable casefold support in tmpfs. > > Signed-off-by: André Almeida > --- > Documentation/filesystems/tmpfs.rst | 26 ++++++++++++++++++++++++++ > 1 file changed, 26 insertions(+) > > diff --git a/Documentation/filesystems/tmpfs.rst b/Documentation/filesystems/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=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-insesitive lookups support: > + > +========= ============================================================== > +casefold Enable casefold support at this mount point using the given > + 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 rejected > + file system. > +========= ============================================================== > + > +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 directory. New > +directories within a casefolded one will inherit the flag. -- ~Randy