aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorgaurkuma <[email protected]>2017-08-11 08:56:24 -0700
committerBrian Behlendorf <[email protected]>2017-08-11 08:56:24 -0700
commit761b8ec6bf98f39550353173ad7bec5306073f9c (patch)
tree75308c5341691961a0cc69f58199852fef406212 /lib
parentc25b8f99f8dcbe898b81728e6a9dab107df4fc0b (diff)
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 <[email protected]> Reviewed-by: loli10K <[email protected]> Reviewed-by: George Melikov <[email protected]> Reviewed-by: Brian Behlendorf <[email protected]> Signed-off-by: gaurkuma <[email protected]> Closes #6481
Diffstat (limited to 'lib')
-rw-r--r--lib/libspl/include/sys/kstat.h2
1 files changed, 1 insertions, 1 deletions
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