From 2558518c5d6b5b348aa7b8047ac3c037d3787e6a Mon Sep 17 00:00:00 2001 From: Mateusz Piotrowski <0mp@FreeBSD.org> Date: Mon, 3 Jun 2024 16:46:46 +0200 Subject: [PATCH] zpoolprops.7: Fix max length of name of user property The documentation mentioned that the property name can be 256 characters long. This was incorrect. The last byte is reserved for NUL, so the name provided by the operator can be only 255 characters long. Reviewed-by: Tony Hutter Reviewed-by: Brian Behlendorf Reviewed-by: Alexander Motin Reviewed-by: Tino Reichardt Reviewed-by: Allan Jude Signed-off-by: Mateusz Piotrowski <0mp@FreeBSD.org> Sponsored-by: Klara, Inc. Sponsored-by: Wasabi Technology, Inc. Closes #16248 --- man/man7/zpoolprops.7 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/man/man7/zpoolprops.7 b/man/man7/zpoolprops.7 index 9aba11ad5b..f4fcc620e4 100644 --- a/man/man7/zpoolprops.7 +++ b/man/man7/zpoolprops.7 @@ -28,7 +28,7 @@ .\" Copyright (c) 2021, Colm Buckley .\" Copyright (c) 2023, Klara Inc. .\" -.Dd January 14, 2024 +.Dd July 29, 2024 .Dt ZPOOLPROPS 7 .Os . @@ -488,7 +488,7 @@ The expected convention is that the property name is divided into two portions such as .Ar module : Ns Ar property , but this namespace is not enforced by ZFS. -User property names can be at most 256 characters, and cannot begin with a dash +User property names can be at most 255 characters, and cannot begin with a dash .Pq Qq Sy - . .Pp When making programmatic use of user properties, it is strongly suggested to use