1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-28 11:57:28 +00:00

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:
Allan Jude 2018-06-14 00:10:16 +00:00
parent 67b3b4d245
commit 21e289d49b
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=335099

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);