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

Mateusz Guzik mjguzik at gmail.com
Thu Feb 22 20:41:03 UTC 2018


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)
> @@ -423,7 +423,7 @@
>         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>


More information about the freebsd-current mailing list