From 3665b5d2b5c6c3ab34ef729f27f6e1fca741a6c2 Mon Sep 17 00:00:00 2001 From: Greg Mason Date: Thu, 14 Mar 2013 15:21:33 -0400 Subject: [PATCH] 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 --- src/disk.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.30.2