summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 357a7a8)
raw | patch | inline | side by side (parent: 357a7a8)
author | Greg Mason <gmason@msu.edu> | |
Thu, 14 Mar 2013 19:21:33 +0000 (15:21 -0400) | ||
committer | Florian Forster <octo@collectd.org> | |
Sat, 23 Mar 2013 09:23:18 +0000 (10:23 +0100) |
On large systems (particularly ZFS systems using large JBODs), it's
quite possible to have more than 256 disks.
Signed-off-by: Florian Forster <octo@collectd.org>
quite possible to have more than 256 disks.
Signed-off-by: Florian Forster <octo@collectd.org>
src/disk.c | patch | blob | history |
diff --git a/src/disk.c b/src/disk.c
index 3728d556531619bcdf093ca758fbcf0b88fe71b2..36d0a0c3450cc46b46d8a5d3725dedbaad9c2231 100644 (file)
--- a/src/disk.c
+++ b/src/disk.c
/* #endif KERNEL_LINUX */
#elif HAVE_LIBKSTAT
-#define MAX_NUMDISK 256
+#define MAX_NUMDISK 1024
extern kstat_ctl_t *kc;
static kstat_t *ksp[MAX_NUMDISK];
static int numdisk = 0;