Fix top(1) support for displaying ZFS Compressed ARC statistics

Broken in r334514

sysctlbyname("vfs.zfs.compressed_arc_enabled", ...) would return ENOMEM
while trying to read the sysctl (a boolean_t) into a bool, which is too small.

Reviewed by:	jhb (on irc)
Sponsored by:	Klara Systems
This commit is contained in:
allanjude 2018-06-14 00:10:16 +00:00
parent 09cd020c43
commit bfddf1a931

View File

@ -304,7 +304,7 @@ machine_init(struct statics *statics)
{
int i, j, empty, pagesize;
uint64_t arc_size;
bool carc_en;
int carc_en;
size_t size;
size = sizeof(smpmode);