]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Fix top(1) support for displaying ZFS Compressed ARC statistics
authorallanjude <allanjude@FreeBSD.org>
Thu, 14 Jun 2018 00:10:16 +0000 (00:10 +0000)
committerallanjude <allanjude@FreeBSD.org>
Thu, 14 Jun 2018 00:10:16 +0000 (00:10 +0000)
commitbfddf1a9313ee679025d6dcc12dc8bf7413bf863
tree40ee068919414fe732312dcfe883fac2d1ffc79d
parent09cd020c432e773eda6dd3fa731747bea9ba0f8c
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