From e02fe06f7d6d33664761c40f4feb8d4fa305f426 Mon Sep 17 00:00:00 2001 From: Simon Lin Date: Tue, 7 May 2024 20:52:27 -0700 Subject: [PATCH] Increase limit of zpool comment property from 32 characters to 8192 The zpool property 'comment' allows a 'zpool import' to display useful information about the pool without really import it. However, the current size limit is only 32 characters, which is too small. This PR bumps up the size limit of 'comment' to 8192 characters, so more information can be saved. The new limit is consistent with a custom zpool property. Signed-off-by: Simon Lin --- include/sys/fs/zfs.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/include/sys/fs/zfs.h b/include/sys/fs/zfs.h index e191420f2d..551116d5d0 100644 --- a/include/sys/fs/zfs.h +++ b/include/sys/fs/zfs.h @@ -261,8 +261,7 @@ typedef enum { ZPOOL_NUM_PROPS } zpool_prop_t; -/* Small enough to not hog a whole line of printout in zpool(8). */ -#define ZPROP_MAX_COMMENT 32 +#define ZPROP_MAX_COMMENT 8192 #define ZPROP_BOOLEAN_NA 2 #define ZPROP_VALUE "value"