From 21e289d49b00a1030a05386b9270e5bb4c5c38d6 Mon Sep 17 00:00:00 2001 From: Allan Jude Date: Thu, 14 Jun 2018 00:10:16 +0000 Subject: [PATCH] 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 --- usr.bin/top/machine.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usr.bin/top/machine.c b/usr.bin/top/machine.c index 88d533d3e37..27331be0270 100644 --- a/usr.bin/top/machine.c +++ b/usr.bin/top/machine.c @@ -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);