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 E2C9CCE7A8E for ; Thu, 5 Sep 2024 19:49:14 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 64CE36B008A; Thu, 5 Sep 2024 15:49:14 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 5FE316B008C; Thu, 5 Sep 2024 15:49:14 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 4C39B6B0092; Thu, 5 Sep 2024 15:49:14 -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 2E1246B008A for ; Thu, 5 Sep 2024 15:49:14 -0400 (EDT) Received: from smtpin09.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay02.hostedemail.com (Postfix) with ESMTP id 81C61120AC2 for ; Thu, 5 Sep 2024 19:49:13 +0000 (UTC) X-FDA: 82531723386.09.08AF3E3 Received: from relay8-d.mail.gandi.net (relay8-d.mail.gandi.net [217.70.183.201]) by imf19.hostedemail.com (Postfix) with ESMTP id 3223B1A000D for ; Thu, 5 Sep 2024 19:49:10 +0000 (UTC) Authentication-Results: imf19.hostedemail.com; dkim=pass header.d=krisman.be header.s=gm1 header.b=CB27434c; spf=pass (imf19.hostedemail.com: domain of gabriel@krisman.be designates 217.70.183.201 as permitted sender) smtp.mailfrom=gabriel@krisman.be; dmarc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1725565727; 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=yAoDvWukowI9z/kaauSz2C4OPYFuBGznaXYdYnzAxxw=; b=3sUd0KpwaghpFsugd+wPlZaRbL3EvnVFa2v41gBydN85B7YIoEidxGcwAHiJqHvbaUEZjh JucjjKwcWw1xkNeNg2vTzux1HkVU9EfT8HMlcGmDXq2aeXOSf/+PAsFBLB2xvgNeBjPqBq F/3o6lEdWa5nFs4MxEx8CkuNcqW4zKw= ARC-Authentication-Results: i=1; imf19.hostedemail.com; dkim=pass header.d=krisman.be header.s=gm1 header.b=CB27434c; spf=pass (imf19.hostedemail.com: domain of gabriel@krisman.be designates 217.70.183.201 as permitted sender) smtp.mailfrom=gabriel@krisman.be; dmarc=none ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1725565727; a=rsa-sha256; cv=none; b=2aXky5AnYwpUElxKAwNdh69bQQUyLaXQW+HmUOhs9oPL5UzlZ22iyqFghTfB69tU9FsfgG jg2ZYue1s0nOb1vTiDVs4KjcWnBgMV4FuqZUczFf3BLONUHg8+lImC0SmydIAeH+cryDRV sOhVbz10zhIsOWzaolPCQdF74Dm19Lk= Received: by mail.gandi.net (Postfix) with ESMTPSA id 6353B1BF204; Thu, 5 Sep 2024 19:49:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=krisman.be; s=gm1; t=1725565749; h=from:from: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; bh=yAoDvWukowI9z/kaauSz2C4OPYFuBGznaXYdYnzAxxw=; b=CB27434cmHsdWUgJWz+Ozodm3QtL+hlSan+xCDkrbQ+UjpkbeXKqXsa1bJjTbxFbx+xmRR l2VyU/J6gXN/Af5REgs6lO4lr/AXYxUiH7VeONgAwmhlTlMPGyExR0gSeH2PqEG7hh4NB3 t/QJCx4TjfKHgXEixjv/DtyxCph+SlPkUBoxyq5YjNMs6Q8MCnmwCY1UvUHDsm14wj+jyI I6COMk0SNFPgO/BOykMuiWPM2MFu5rfQb4YUpyE/hIy8ZMgGG1nIv5wpJuNkQIoccFFo0K smVi3rU406EsAxDD76YmBF8RYWLjLEHkbvwediwvlVM9i2hYMn60qFZrXiXmPQ== From: Gabriel Krisman Bertazi To: =?utf-8?Q?Andr=C3=A9?= Almeida Cc: Hugh Dickins , Andrew Morton , Alexander Viro , Christian Brauner , Jan Kara , krisman@kernel.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, kernel-dev@igalia.com, Daniel Rosenberg , smcv@collabora.com, Christoph Hellwig , Theodore Ts'o Subject: Re: [PATCH v3 9/9] docs: tmpfs: Add casefold options In-Reply-To: <20240905190252.461639-10-andrealmeid@igalia.com> (=?utf-8?Q?=22Andr=C3=A9?= Almeida"'s message of "Thu, 5 Sep 2024 16:02:52 -0300") References: <20240905190252.461639-1-andrealmeid@igalia.com> <20240905190252.461639-10-andrealmeid@igalia.com> Date: Thu, 05 Sep 2024 15:48:59 -0400 Message-ID: <87v7z9op90.fsf@mailhost.krisman.be> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-GND-Sasl: gabriel@krisman.be X-Rspam-User: X-Stat-Signature: ae584qd9rxsajz1cejdta8i5msrbxye3 X-Rspamd-Queue-Id: 3223B1A000D X-Rspamd-Server: rspam11 X-HE-Tag: 1725565750-218034 X-HE-Meta: U2FsdGVkX186UZTjmxymGBT5KbasS7oDa6OWoGCjK3yl9LSJRK+HBJfREF1J8UZRXRSgGojYlyzrP1xPaM1js8IAOa9rPWVzh7EmkdXLSf/AuGY0gBi7M08h7C7GIbvgLAs8sYFnfUTzPeIC66BnpxjtfBodjIlVdBGIRnX2PEuU9RfBUZnWjAAMr+kh45Xk9+B5cfk1LCEoZiDfSdqd1+Qn7nXfBKH1qM48NXh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ity: 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: Andr=C3=A9 Almeida writes: > Document mounting options for casefold support in tmpfs. > > Signed-off-by: Andr=C3=A9 Almeida > --- > Documentation/filesystems/tmpfs.rst | 23 +++++++++++++++++++++++ > 1 file changed, 23 insertions(+) > > diff --git a/Documentation/filesystems/tmpfs.rst b/Documentation/filesyst= ems/tmpfs.rst > index 56a26c843dbe..636afd3eaf48 100644 > --- a/Documentation/filesystems/tmpfs.rst > +++ b/Documentation/filesystems/tmpfs.rst > @@ -241,6 +241,27 @@ So 'mount -t tmpfs -o size=3D10G,nr_inodes=3D10k,mod= e=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=20 > +tmpfs has the following mounting options for case-insensitive lookups > support: lookups->lookup > + > +=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=3D=3D= =3D=3D=3D=3D=3D=3D > +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 wi= ll 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 crea= te file > + and directory with names containing invalid UTF-8 char= acters. > +=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=3D=3D= =3D=3D=3D=3D=3D=3D > + > +Note that this option doesn't enable casefold by default;=20 I think this is fine as is. but if we need a new iteration, could you perhaps rephrase this to something like: 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 directory. Nevertheless, new directories will inherit the attribute. The mountpoint itself will cannot be made case-insensitive. > + > +Example:: > + > + $ mount -t tmpfs -o casefold=3Dutf8-12.1.0,strict_enconding fs_name = /mytmpfs strict_encoding > + $ mount -t tmpfs -o casefold fs_name /mytmpfs > + >=20=20 > :Author: > Christoph Rohland , 1.12.01 > @@ -250,3 +271,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=C3=A9 Almeida, 23 Aug 2024 --=20 Gabriel Krisman Bertazi