Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp441754pxf; Thu, 25 Mar 2021 07:30:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzcIbDdWiCQLneUqbbswWyMsoqLTJd6KkivOd2o/Vop4jCEamJ9zZqWZwD3ZZgsB7BZJxQ+ X-Received: by 2002:a17:906:8614:: with SMTP id o20mr9405244ejx.386.1616682605765; Thu, 25 Mar 2021 07:30:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616682605; cv=none; d=google.com; s=arc-20160816; b=WH1e1wowO/Ya/A4FlZEbDWUCBC4/oxwjgz59vCWJIio1pqjJOOcL+kHVBEpfFfNZ+l 5ebma2fXm8WafLdyLPOZ3CK64xPfyj6naK3rV3cRnJ8pFuHadKXKe2Rpaamp9mGaRQJx XNNGAhNxUVkYzNvvl/JbbK74OM0WFMlWu6xhPrgbZGvWmcKTNbYESmiNpt2GSNLtyutA 4wBzQAuqajPj2+xjysfj95IW4yNYupWODpBzqh2zvhJr/xKHalJMlE39DwqcJeYqf8mA gGP4xcea6pSQq3QWreQt77E10qaFZwHgDOVKG8KzPUU9yO4zUxj5tZ8HvyK5MiNGGJKD JqYA== 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; bh=1pXBOBdyKhWl2RNcebpEX+vztFeV2VPFvncBeDnqRSA=; b=naSIIcKCDOub7AhM/qiWwBTSttd50Q6PfjtRMUNtHBvWRxJcCEWGnEwcx7ZN5jwFMV G0M5Oq/yqj66UkoJKH/KVgnKZbjbdPiXS33Ur0RtpxQe5rqOrR9cl90LuPurYssDmGlq T7Hbeeel4pADZu9eWq5YsnxJdxihQ1Fx8JuRlZIy3dLrIuUw05IoMWfNj3MTFFOI1Gnk xX9oEDwQOHO+fF+6lxREyU8HVOkvmS6md5h5VdRv9K4iQPQn2J8+z/MTcK+wiE+vlf3K k3o4swSYFWZs66LdwTq3K9QyYmtwutdC+/E+b1CbYGU8J/3hSx7n3ruE8cXrKgT7c2oO peOg== ARC-Authentication-Results: i=1; mx.google.com; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w13si4357457ejv.399.2021.03.25.07.29.41; Thu, 25 Mar 2021 07:30:05 -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; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231404AbhCYO2g (ORCPT + 99 others); Thu, 25 Mar 2021 10:28:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50448 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231136AbhCYO1z (ORCPT ); Thu, 25 Mar 2021 10:27:55 -0400 Received: from bhuna.collabora.co.uk (bhuna.collabora.co.uk [IPv6:2a00:1098:0:82:1000:25:2eeb:e3e3]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A6C33C061760; Thu, 25 Mar 2021 07:27:53 -0700 (PDT) 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 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Às 18:58 de 23/03/21, Randy Dunlap escreveu: > 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. > > Thanks for the feedback Randy, all changes applied.