From 1dd92284ec0da636c156fd7c4ab7c66191ca38bd Mon Sep 17 00:00:00 2001 From: Xavi Hernandez Date: Thu, 3 Jul 2025 10:34:37 +0200 Subject: [PATCH] doc: add name mangling documentation for subvolume group creation Signed-off-by: Xavi Hernandez (cherry picked from commit b47bbf8afdfcb81ee8aed7ef9c27b45dd8d5a589) --- doc/cephfs/fs-volumes.rst | 26 +++++++++++++++++++++++++- 1 file changed, 25 insertions(+), 1 deletion(-) diff --git a/doc/cephfs/fs-volumes.rst b/doc/cephfs/fs-volumes.rst index 66b641efbf2..6ff4da28c81 100644 --- a/doc/cephfs/fs-volumes.rst +++ b/doc/cephfs/fs-volumes.rst @@ -167,7 +167,7 @@ Create a subvolume group by running the following command: .. prompt:: bash # - ceph fs subvolumegroup create [--size ] [--pool_layout ] [--uid ] [--gid ] [--mode ] + ceph fs subvolumegroup create [--size ] [--pool_layout ] [--uid ] [--gid ] [--mode ] [--normalization
] [--casesensitive ] The command succeeds even if the subvolume group already exists. @@ -178,6 +178,30 @@ a quota on it (see :doc:`/cephfs/quota`). By default, the subvolume group is created with octal file mode ``755``, uid ``0``, gid ``0`` and the data pool layout of its parent directory. +You can also specify an unicode normalization form using the ``--normalization`` +option. This will be used to internally mangle file names so that unicode +characters that can be represented by different unicode code point sequences +are all mapped to the same representation, which means that they will all +access the same file. However, users will continue to see the same name that +they used when the file was created. + +The valid values for the unicode normalization form are: + + - nfd: canonical decomposition (default) + - nfc: canonical decomposition, followed by canonical composition + - nfkd: compatibility decomposition + - nfkc: compatibility decomposition, followed by canonical composition + +To learn more about unicode normalization forms see https://unicode.org/reports/tr15 + +It's also possible to configure a subvolume group for case insensitive access +when the ``--casesensitive=0`` option is used. When this option is added, file +names that only differ in the case of its characters will be mapped to the same +file. The case of the file name used when the file was created is preserved. + +.. note:: Setting ``--casesensitive=0`` option implicitly enables + unicode normalization on the subvolume group. + Remove a subvolume group by running a command of the following form: .. prompt:: bash # -- 2.39.5