projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
357a7a8
)
Increase MAX_NUMDISKS
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>
src/disk.c
patch
|
blob
|
history
diff --git
a/src/disk.c
b/src/disk.c
index
3728d55
..
36d0a0c
100644
(file)
--- 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;