Date: Thu, 14 Jun 2018 00:10:16 +0000 (UTC) From: Allan Jude <allanjude@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r335099 - head/usr.bin/top Message-ID: <201806140010.w5E0AGoq063995@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: allanjude Date: Thu Jun 14 00:10:16 2018 New Revision: 335099 URL: https://svnweb.freebsd.org/changeset/base/335099 Log: 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 Modified: head/usr.bin/top/machine.c Modified: head/usr.bin/top/machine.c ============================================================================== --- head/usr.bin/top/machine.c Thu Jun 14 00:03:44 2018 (r335098) +++ head/usr.bin/top/machine.c Thu Jun 14 00:10:16 2018 (r335099) @@ -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);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201806140010.w5E0AGoq063995>