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 0CF0CCD379F for ; Tue, 3 Sep 2024 16:38:36 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 9ACC18D01AC; Tue, 3 Sep 2024 12:38:35 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 95C558D018A; Tue, 3 Sep 2024 12:38:35 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 7D5E78D01AC; Tue, 3 Sep 2024 12:38:35 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0010.hostedemail.com [216.40.44.10]) by kanga.kvack.org (Postfix) with ESMTP id 5EC528D018A for ; Tue, 3 Sep 2024 12:38:35 -0400 (EDT) Received: from smtpin18.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay04.hostedemail.com (Postfix) with ESMTP id 155A11A076D for ; Tue, 3 Sep 2024 16:38:35 +0000 (UTC) X-FDA: 82523985390.18.453EEA2 Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.223.131]) by imf21.hostedemail.com (Postfix) with ESMTP id B23F71C001D for ; Tue, 3 Sep 2024 16:38:31 +0000 (UTC) Authentication-Results: imf21.hostedemail.com; dkim=pass header.d=suse.de header.s=susede2_rsa header.b=pakxOuLz; dkim=pass header.d=suse.de header.s=susede2_ed25519 header.b=rXlJJayy; dkim=pass header.d=suse.de header.s=susede2_rsa header.b=BYl+Yy8D; dkim=pass header.d=suse.de header.s=susede2_ed25519 header.b=LUXPaLBD; dmarc=pass (policy=none) header.from=suse.de; spf=pass (imf21.hostedemail.com: domain of krisman@suse.de designates 195.135.223.131 as permitted sender) smtp.mailfrom=krisman@suse.de ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1725381488; a=rsa-sha256; cv=none; b=tiNX73I2YLVNYRyApwc2mnQHE7WKA2WyI3vD9pJ4uZcP0cxEeOdGJkgzYR9Yiwrt44uUd9 nfhPEzB0Wm/3V+iaC6xo1CALezrVzP3PwKwepfB9y0hgcb8V3KTiBfbg7wFl38cHA+8sbv B/nGW79ABErGG/Qr6pUqQxWNU12dOCQ= ARC-Authentication-Results: i=1; imf21.hostedemail.com; dkim=pass header.d=suse.de header.s=susede2_rsa header.b=pakxOuLz; dkim=pass header.d=suse.de header.s=susede2_ed25519 header.b=rXlJJayy; dkim=pass header.d=suse.de header.s=susede2_rsa header.b=BYl+Yy8D; dkim=pass header.d=suse.de header.s=susede2_ed25519 header.b=LUXPaLBD; dmarc=pass (policy=none) header.from=suse.de; spf=pass (imf21.hostedemail.com: domain of krisman@suse.de designates 195.135.223.131 as permitted sender) smtp.mailfrom=krisman@suse.de ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1725381488; 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=XGsMAuFIuxIETZfL4882Kac2whnAuVvMgj76Uh+vSoY=; b=QGy/pYNrOR+riNV4N4Hi75ECkn5qSfwN079fUcpV77Jd0CPUlymeHgH8o5tP19hEDdDGUR QLu/aSU8vFqMUrpbv4PvHpkCoedbUkVrSJ7rpJKZdlubDjYazzxKVItr/pf5Q8uhqtdYMT iqDbHTWF00MuOR3WD6Jl5WeATpUhN5g= Received: from imap1.dmz-prg2.suse.org (unknown [10.150.64.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id D752E1FD3E; Tue, 3 Sep 2024 16:38:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1725381510; h=from:from:reply-to: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=XGsMAuFIuxIETZfL4882Kac2whnAuVvMgj76Uh+vSoY=; b=pakxOuLz2+853Wa/eXZ8plzfMIMkTkjneCWiOX41D9kPmDqrU6XYw42d0SFykuBYO3PzWc Gg2XB1XQ4SjqsmOf+WHGOYjcc/Mjwhp+7+RybDOEzjgQ6k8MTcmED4lnYaSnW1IBJ79LEo lwAu5OtN4MxNX6INKjGtnq9Gsjy5VwE= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1725381510; h=from:from:reply-to: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=XGsMAuFIuxIETZfL4882Kac2whnAuVvMgj76Uh+vSoY=; b=rXlJJayyP8/kQfEJe6eIh0wbsKyNkC1xbrSiRDSFtkKydcPB8XU7Ra6zbJetpB9uDHNFeg dTlGCTiMApNDzwAg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1725381509; h=from:from:reply-to: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=XGsMAuFIuxIETZfL4882Kac2whnAuVvMgj76Uh+vSoY=; b=BYl+Yy8DYcJ/YiW4bj+ZDjZmEtzAIippKdUENMrK6umgTq+LvthGIjlxO1mwICvBoVfyhn WdPQDhOzIhcZKj2cY6NKgY5m6LTVL2SqMhCMsg/he3bmh37faLI1njQrUnyooCncJIDDiu wbvitIAFJZ+8vPNl4/aA2nGQcIDmJSI= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1725381509; h=from:from:reply-to: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=XGsMAuFIuxIETZfL4882Kac2whnAuVvMgj76Uh+vSoY=; b=LUXPaLBDGLufIkPjEjxtR81T3k6XN0UPmICd982JppiShwng6AvGGyan/wYa9bJt5P80ES jT7wZ4yuZ+LDxzBw== Received: from imap1.dmz-prg2.suse.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by imap1.dmz-prg2.suse.org (Postfix) with ESMTPS id 7C20413A80; Tue, 3 Sep 2024 16:38:29 +0000 (UTC) Received: from dovecot-director2.suse.de ([2a07:de40:b281:106:10:150:64:167]) by imap1.dmz-prg2.suse.org with ESMTPSA id CQFlGIU712aABQAAD6G6ig (envelope-from ); Tue, 03 Sep 2024 16:38:29 +0000 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 Subject: Re: [PATCH v2 8/8] docs: tmpfs: Add casefold options In-Reply-To: <20240902225511.757831-9-andrealmeid@igalia.com> (=?utf-8?Q?=22Andr=C3=A9?= Almeida"'s message of "Mon, 2 Sep 2024 19:55:10 -0300") References: <20240902225511.757831-1-andrealmeid@igalia.com> <20240902225511.757831-9-andrealmeid@igalia.com> Date: Tue, 03 Sep 2024 12:38:24 -0400 Message-ID: <871q20hev3.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-Rspam-User: X-Rspamd-Queue-Id: B23F71C001D X-Rspamd-Server: rspam01 X-Stat-Signature: 9t3wcr9ahbj1jimjrzwrunjrzptpy59z X-HE-Tag: 1725381511-379107 X-HE-Meta: U2FsdGVkX1/4FIEADHG4aeRusHtHOdiVFs8x1Xq0EuDVPscG50q+fhDWcTaZlVIXZD7OPCun1UMCLRiZz4i4R8XvS8keUHBq59W4qDC8ek9nueh4WXFza6cFrDUTPc60uBZ0KBg03NefvZkQP8mEeIIETycIzjfg+kApqATLx3D8jdsn7/V+U4Uy2E3a3e3zqhwJHHCHxDZClYBvvb7aeO7+WQ8rTnghEYTWhcrdnn3AnvHUtsGXmG3khPB1DwwxDvBBG7aP/TgLc0Ww/8Gor/KxgpfWPhXL3woxrC9Ji2yzJ2Az0O8LLnIQseTd+lddPEFoW1cM8SN8lrIPf3MQWra8XmPv3Wonzs8wdzjDFuA+mBTu8gLHDf8krdLcgkjqzFQZCyo5r7oXlc4zhxARdasrL8yiQVyx+jCWgLBKK9tVJaorBa8Kt5buDCWp5XtE4cdgKYqFwQJtOtHnpnByrMa5oW38rE9Xisl9JAm/kn2nK/bh5ro4uOML9A7cFxwajVeRFs5l3IFAZekdRuZPE26n1iTdH2uhVRYuN5csjGORDOg8NLG1mY6f//golLKc0Ri2AQomo7T8CkGeJW1amTN9GLTKNRsYLfflD/Wssg3xS3SWt54LC/lN3ZD7259eXOficoPc+Wco2holXxygANGgSkuKAybDfbmG3ZbUn2sf+YIq1sjVANKtfTnrG5KmoMwBQNB4w5VSM6gbQ+QNZPwPeq1zBC+DgZgvQiMDcWsyoIEyrEV7ptd+cTJMqOzVIS9QDinmpKaXWoUT/s3rE+1I3KcqEiXPstaVk2O392kMjmZMfCpOQmL5Hghxg/4+4XFrA2kT/eXJT1HJZruRQL4wCz37wrPxVfOk/TAs0XhIhAjxvIYXwmPlgc9ccgQkopZ3CNX9YJROfn8/V0Dhk5fWEgSfdde6vmCLnKPSaKC8YunNrO2Lbgv3vD/Y9JqJqnVzDCiuKevfVVRtBtf AEfM8fKv fBvyb3o+dJNLag5CW0zAoLWA5FrGCHfc6KUGOvWbg5l8UiSct1DeJIkN9lUI14WMnmHYkp/0VxhbJX/pY3zBelql0vp7NmDlR3vW+VPyiOOgg4XkqfxzoRUR0aa++T8OBnhMuLNcdusZMBhEgJEp2WZQH+caxgDjBAph57uhbv7AfJwt6kZv0RNVcOATnWzo1ZUkegXLNJrKcsEIm7KWlklNVQKMEi+gAXYFr1kfMC7ERIcdMA5vvRnKJN/qe7v9Pjc7NEMAJSiPu6x0FEuqbWfkxuFcpf6LJOgMKOXTZPUTDcAFJGYd8YH9w/S33jaUP3XIohNOAiWzjNI8rabj0WrHkWg== 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: 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 | 37 +++++++++++++++++++++++++++++ > 1 file changed, 37 insertions(+) > > diff --git a/Documentation/filesystems/tmpfs.rst b/Documentation/filesyst= ems/tmpfs.rst > index 56a26c843dbe..ce24fb16979a 100644 > --- a/Documentation/filesystems/tmpfs.rst > +++ b/Documentation/filesystems/tmpfs.rst > @@ -241,6 +241,41 @@ 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-insesitive lookups sup= port: insensitive > + > +=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D =3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=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 utf8 > + encodings are supported. > +strict_encoding Enable strict encoding at this mount point (disabled by > + default). This means that invalid sequences will be re= jected Invalid sequences is not clear. Perhaps: In this mode, the filesystem refuses to create file and directory with names containing invalid UTF-8 characters. > + by the 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=3D=3D= =3D=3D=3D=3D=3D=3D > + > +Note that this option doesn't enable casefold by default; one needs to s= et > +casefold flag per directory, setting the +F attribute in an empty direct= ory. New > +directories within a casefolded one will inherit the flag. > + > +Example:: > + > + $ mount -t tmpfs -o casefold=3Dutf8-12.1.0,cf_strict fs_name /mytmpfs cf_strict should be strict_encoding. I keep wondering if we should accept 'casefold' without any argument to just mean the latest encoding version available. Sure, that is a problem for filesystems that can be moved between systems, but for tmpfs that is not a problem. It is cumbersome to specify the version and most will just want the latest. > + $ cd /mytmpfs # case-sensitive by default > + $ touch a; touch A > + $ ls > + A a > + $ mkdir B > + $ cd b > + cd: The directory 'b' does not exist > + $ mkdir casefold_dir > + $ chattr +F casefold_dir/ # marking it as case-insensitive > + $ cd > + $ touch dir/a; touch dir/A > + $ ls dir > + a > + $ mkdir B > + $ cd b > + $ pwd > + /home/user/mytmpfs/casefold_dir/B I don't think we need this example, since it is just generic how case-insensitiveness work. >=20=20 > :Author: > Christoph Rohland , 1.12.01 > @@ -250,3 +285,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