From 761b8ec6bf98f39550353173ad7bec5306073f9c Mon Sep 17 00:00:00 2001 From: gaurkuma Date: Fri, 11 Aug 2017 08:56:24 -0700 Subject: Allow longer SPA names in stats The pool name can be 256 chars long. Today, in /proc/spl/kstat/zfs/ the name is limited to < 32 characters. This change is to allows bigger pool names. Reviewed-by: Giuseppe Di Natale Reviewed-by: loli10K Reviewed-by: George Melikov Reviewed-by: Brian Behlendorf Signed-off-by: gaurkuma Closes #6481 --- lib/libspl/include/sys/kstat.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/libspl/include/sys/kstat.h b/lib/libspl/include/sys/kstat.h index fcd3ed98b..24c71e27c 100644 --- a/lib/libspl/include/sys/kstat.h +++ b/lib/libspl/include/sys/kstat.h @@ -59,7 +59,7 @@ typedef int kid_t; /* unique kstat id */ * kcid = ioctl(kd, KSTAT_IOC_WRITE, kstat_t *); */ -#define KSTAT_STRLEN 31 /* 30 chars + NULL; must be 16 * n - 1 */ +#define KSTAT_STRLEN 255 /* 254 chars + NULL; must be 16 * n - 1 */ /* * The generic kstat header -- cgit v1.2.3