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 359E6EEB59D for ; Thu, 12 Sep 2024 19:07:15 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id C118E6B0098; Thu, 12 Sep 2024 15:07:14 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id BC2136B0099; Thu, 12 Sep 2024 15:07:14 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id AB0A56B009A; Thu, 12 Sep 2024 15:07: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 8E1536B0098 for ; Thu, 12 Sep 2024 15:07:14 -0400 (EDT) Received: from smtpin05.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay06.hostedemail.com (Postfix) with ESMTP id 1C66DA536A for ; Thu, 12 Sep 2024 19:07:14 +0000 (UTC) X-FDA: 82557019188.05.B26DFD1 Received: from relay9-d.mail.gandi.net (relay9-d.mail.gandi.net [217.70.183.199]) by imf24.hostedemail.com (Postfix) with ESMTP id 29FDC180004 for ; Thu, 12 Sep 2024 19:07:10 +0000 (UTC) Authentication-Results: imf24.hostedemail.com; dkim=pass header.d=krisman.be header.s=gm1 header.b=Wo2nsJJJ; dmarc=none; spf=pass (imf24.hostedemail.com: domain of gabriel@krisman.be designates 217.70.183.199 as permitted sender) smtp.mailfrom=gabriel@krisman.be ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1726167914; 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=8fsR65crQj6jY8n1XWEO45jbtZzq9hzUCnTphruNqKI=; b=EFGvQlt+NfU7aJ859ukWprIANGmISvUlp91W3ddQcR3BICHsMW5Va64CE2eQTQ7HPBy962 XjVJpr9rxNysuFnF9egpuJVP5OhB6NmXID7PNc5ySjV9bbbZ2V5+A8asV4wjXS2hw/qttp eKODWpoH8FDl6rcRHtEPHOrBMx8ZyRo= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1726167914; a=rsa-sha256; cv=none; b=j7aRIx1zJLc9tEaFNqpSKcovbfFJSNgx7HCNBiEYn5CaMsiG1D5sY5M93qLkjRG5etQDQI fJRGJ1K4XY4fKMi2WsUbgQRWClq9pIEDIu2cVSIWXQen8vbhORbLm3wVOXr1HXrDMHaPSz wzuLh0ebjxI8E3HYsPV/qCPd6vh/xYY= ARC-Authentication-Results: i=1; imf24.hostedemail.com; dkim=pass header.d=krisman.be header.s=gm1 header.b=Wo2nsJJJ; dmarc=none; spf=pass (imf24.hostedemail.com: domain of gabriel@krisman.be designates 217.70.183.199 as permitted sender) smtp.mailfrom=gabriel@krisman.be Received: by mail.gandi.net (Postfix) with ESMTPSA id 8E289FF802; Thu, 12 Sep 2024 19:07:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=krisman.be; s=gm1; t=1726168029; 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=8fsR65crQj6jY8n1XWEO45jbtZzq9hzUCnTphruNqKI=; b=Wo2nsJJJadnGJDDxpCgdDGXlZder1Yayo1gkd5bRNXtjVzeaLYaIquUbOd9GKnCP8Z99Tj qS18aEXQhCobKVF+4oPwOgWFvx22UMm+ld5GfGW1AJlZqvN1goFDzczFdUjmvxcHNN1JLv Ksd+m+xwR0Tr5EOFneyHb8ZzpdwFlZkilt5/dVNPWXkxjiXbYFPiQJ467REwjcMM6eKTr7 9DwSaMHJShEo4XQecNpKnjx0mrqQT/PJdFbD5t/IAuBau3Qf7s5icJFCddooVAu0RZGiKr kkrsRAVUmlGb0/Ijz04M7W1Gk5lYcF0AJvsUuBIr3cwm+zaEUEJwbPHkpKBzCw== From: Gabriel Krisman Bertazi To: =?utf-8?Q?Andr=C3=A9?= Almeida Cc: Hugh Dickins , Andrew Morton , Alexander Viro , Christian Brauner , Jan Kara , 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 v4 10/10] docs: tmpfs: Add casefold options In-Reply-To: <20240911144502.115260-11-andrealmeid@igalia.com> (=?utf-8?Q?=22Andr=C3=A9?= Almeida"'s message of "Wed, 11 Sep 2024 11:45:02 -0300") References: <20240911144502.115260-1-andrealmeid@igalia.com> <20240911144502.115260-11-andrealmeid@igalia.com> User-Agent: Gnus/5.13 (Gnus v5.13) Date: Thu, 12 Sep 2024 15:07:05 -0400 Message-ID: <878qvwlmhy.fsf@mailhost.krisman.be> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-GND-Sasl: gabriel@krisman.be X-Rspamd-Server: rspam07 X-Rspamd-Queue-Id: 29FDC180004 X-Stat-Signature: gp7bhmkob8m9kmrmhpxmcb4tyasutjth X-Rspam-User: X-HE-Tag: 1726168030-524489 X-HE-Meta: U2FsdGVkX18WuR7SBBQ7ATjbFNEJRviW1vCMpwnN5inswC8uBJ7O/eW5hHKJLHFwPxPZC0p55HakUP4KHgbOd4j3OYeNy6HrW+b2nr/UCbPITq415jFsVGwFc2zP79WZj1QKq4bIfxGofttpLwMr/GrZLFwERV5x0ohPKyXSAUfHItu/OPSKAtVXiMrtYkbLQloTbhpc63PTB52o32H+aR0Jxf5+m+tD+9kgnD18AF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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: List-Subscribe: List-Unsubscribe: Andr=C3=A9 Almeida writes: > Document mounting options for casefold support in tmpfs. > > Signed-off-by: Andr=C3=A9 Almeida > --- > Changes from v3: > - Rewrote note about "this doesn't enable casefold by default" (Krisman) > --- > Documentation/filesystems/tmpfs.rst | 24 ++++++++++++++++++++++++ > 1 file changed, 24 insertions(+) > > diff --git a/Documentation/filesystems/tmpfs.rst b/Documentation/filesyst= ems/tmpfs.rst > index 56a26c843dbe..f72fcc0baef3 100644 > --- a/Documentation/filesystems/tmpfs.rst > +++ b/Documentation/filesystems/tmpfs.rst > @@ -241,6 +241,28 @@ 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 lookup sup= port: > + > +=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D =3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=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 > + > +This option doesn't render the entire filesystem case-insensitive. One n= eeds to > +still set the casefold flag per directory, by flipping +F attribute in a= n empty > +directory. Nevertheless, new directories will inherit the attribute. The > +mountpoint itself will cannot be made case-insensitive. s/will// Other than that: Reviewed-by: Gabriel Krisman Bertazi > + > +Example:: > + > + $ mount -t tmpfs -o casefold=3Dutf8-12.1.0,strict_encoding fs_name /= mytmpfs > + $ mount -t tmpfs -o casefold fs_name /mytmpfs > + >=20=20 > :Author: > Christoph Rohland , 1.12.01 > @@ -250,3 +272,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