Skip to content

Commit a713f83

Browse files
andrealmeidbrauner
authored andcommitted
docs: tmpfs: Add casefold options
Document mounting options for casefold support in tmpfs. Reviewed-by: Gabriel Krisman Bertazi <[email protected]> Reviewed-by: Randy Dunlap <[email protected]> Signed-off-by: André Almeida <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Christian Brauner <[email protected]>
1 parent 5132f08 commit a713f83

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

Documentation/filesystems/tmpfs.rst

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -241,6 +241,28 @@ So 'mount -t tmpfs -o size=10G,nr_inodes=10k,mode=700 tmpfs /mytmpfs'
241241
will give you tmpfs instance on /mytmpfs which can allocate 10GB
242242
RAM/SWAP in 10240 inodes and it is only accessible by root.
243243

244+
tmpfs has the following mounting options for case-insensitive lookup support:
245+
246+
================= ==============================================================
247+
casefold Enable casefold support at this mount point using the given
248+
argument as the encoding standard. Currently only UTF-8
249+
encodings are supported. If no argument is used, it will load
250+
the latest UTF-8 encoding available.
251+
strict_encoding Enable strict encoding at this mount point (disabled by
252+
default). In this mode, the filesystem refuses to create file
253+
and directory with names containing invalid UTF-8 characters.
254+
================= ==============================================================
255+
256+
This option doesn't render the entire filesystem case-insensitive. One needs to
257+
still set the casefold flag per directory, by flipping the +F attribute in an
258+
empty directory. Nevertheless, new directories will inherit the attribute. The
259+
mountpoint itself cannot be made case-insensitive.
260+
261+
Example::
262+
263+
$ mount -t tmpfs -o casefold=utf8-12.1.0,strict_encoding fs_name /mytmpfs
264+
$ mount -t tmpfs -o casefold fs_name /mytmpfs
265+
244266

245267
:Author:
246268
Christoph Rohland <[email protected]>, 1.12.01
@@ -250,3 +272,5 @@ RAM/SWAP in 10240 inodes and it is only accessible by root.
250272
KOSAKI Motohiro, 16 Mar 2010
251273
:Updated:
252274
Chris Down, 13 July 2020
275+
:Updated:
276+
André Almeida, 23 Aug 2024

0 commit comments

Comments
 (0)