aboutsummaryrefslogtreecommitdiffstats
path: root/man/man8
diff options
context:
space:
mode:
authorszubersk <[email protected]>2022-04-11 15:14:38 +0200
committerBrian Behlendorf <[email protected]>2022-04-13 11:34:28 -0700
commit4f0be2bdb001876c48af47fccdb77b8f4682608e (patch)
treea784bf71ee3e7ea1f4b820f28081bde61ac81e6f /man/man8
parent3d149db1f3a6dddeeb650a03c559415e8e9fdc80 (diff)
zfs(8): add requirements towards fs names
Provide explicit requirements towards file system naming convention in OpenZFS man pages. Reviewed-by: Brian Behlendorf <[email protected]> Reviewed-by: Ahelenia ZiemiaƄska <[email protected]> Signed-off-by: szubersk <[email protected]> Mitigates #13310 Closes #13315
Diffstat (limited to 'man/man8')
-rw-r--r--man/man8/zfs.831
1 files changed, 25 insertions, 6 deletions
diff --git a/man/man8/zfs.8 b/man/man8/zfs.8
index dd901e1e6..4e38e45ca 100644
--- a/man/man8/zfs.8
+++ b/man/man8/zfs.8
@@ -57,13 +57,32 @@ The
.Nm
command configures ZFS datasets within a ZFS storage pool, as described in
.Xr zpool 8 .
-A dataset is identified by a unique path within the ZFS namespace.
-For example:
-.Dl pool/{filesystem,volume,snapshot}
+A dataset is identified by a unique path within the ZFS namespace:
.Pp
-where the maximum length of a dataset name is
-.Sy MAXNAMELEN Pq 256B
-and the maximum amount of nesting allowed in a path is 50 levels deep.
+.D1 Ar pool Ns Oo Sy / Ns Ar component Oc Ns Sy / Ns Ar component
+.Pp
+for example:
+.Pp
+.Dl rpool/var/log
+.Pp
+The maximum length of a dataset name is
+.Sy ZFS_MAX_DATASET_NAME_LEN No - 1
+ASCII characters (currently 255) satisfying
+.Sy [A-Za-z_.:/ -] .
+Additionally snapshots are allowed to contain a single
+.Sy @
+character, while bookmarks are allowed to contain a single
+.Sy #
+character.
+.Sy /
+is used as separator between components.
+The maximum amount of nesting allowed in a path is
+.Sy zfs_max_dataset_nesting
+levels deep.
+ZFS tunables
+.Pq Sy zfs_*
+are explained in
+.Xr zfs 4 .
.Pp
A dataset can be one of the following:
.Bl -tag -offset Ds -width "file system"