On Thu, Feb 22, 2018 at 6:41 PM, O. Hartmann <[email protected]> wrote:
> Am Wed, 21 Feb 2018 20:05:24 +0100 > "O. Hartmann" <[email protected]> schrieb: > > > On CURRENT ( 12.0-CURRENT FreeBSD 12.0-CURRENT #196 r329679: Tue Feb 20 > 23:06:15 CET > > 2018 amd64) I'm honored by this nice bug when calling top: > > > > top: sysctl(vfs.bufspace...) expected 8, got 4 > > > > > > Regards, > > > > oh > > I still can not use "top", it quits with the error mentioned above. Whats > is wrong with > my setup? > > Looks like a fallout from r329612. Try this, untested: diff --git a/sys/kern/vfs_bio.c b/sys/kern/vfs_bio.c index a2a1736a24f4..7cb6aa15ddc5 100644 --- a/sys/kern/vfs_bio.c +++ b/sys/kern/vfs_bio.c @@ -423,7 +423,7 @@ sysctl_bufspace(SYSCTL_HANDLER_ARGS) lvalue = 0; for (i = 0; i < clean_domains; i++) lvalue += bdclean[i].bd_bufspace; - return (sysctl_handle_int(oidp, &lvalue, 0, req)); + return (sysctl_handle_long(oidp, &lvalue, 0, req)); } #endif _______________________________________________ [email protected] mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to "[email protected]"
