From: Greg Mason Date: Thu, 14 Mar 2013 19:21:33 +0000 (-0400) Subject: Increase MAX_NUMDISKS X-Git-Tag: collectd-5.3.0~21 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=3665b5d2b5c6c3ab34ef729f27f6e1fca741a6c2;p=collectd.git Increase MAX_NUMDISKS On large systems (particularly ZFS systems using large JBODs), it's quite possible to have more than 256 disks. Signed-off-by: Florian Forster --- diff --git a/src/disk.c b/src/disk.c index 3728d556..36d0a0c3 100644 --- a/src/disk.c +++ b/src/disk.c @@ -109,7 +109,7 @@ static diskstats_t *disklist; /* #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;