Re: top: sysctl(vfs.bufspace...) expected 8, got 4

From: Mateusz Guzik <mjguzik_at_gmail.com>
Date: Thu, 22 Feb 2018 21:41:01 +0100
On Thu, Feb 22, 2018 at 8:34 PM, O. Hartmann <ohartmann_at_walstatt.org> wrote:

> Mateusz provided me with this patch, which solved the issue:
>
> Index: sys/kern/vfs_bio.c
> ===================================================================
> --- sys/kern/vfs_bio.c  (revision 329832)
> +++ sys/kern/vfs_bio.c  (working copy)
> _at__at_ -423,7 +423,7 _at__at_
>         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


Thanks for testing, committed in r329837.


-- 
Mateusz Guzik <mjguzik gmail.com>
Received on Thu Feb 22 2018 - 19:41:03 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:41:15 UTC