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); _______________________________________________ svn-src-all@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"