Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 22 Feb 2018 21:41:01 +0100
From:      Mateusz Guzik <mjguzik@gmail.com>
To:        "O. Hartmann" <ohartmann@walstatt.org>
Cc:        Ian Lepore <ian@freebsd.org>, current <current@freebsd.org>
Subject:   Re: top: sysctl(vfs.bufspace...) expected 8, got 4
Message-ID:  <CAGudoHHz3tXvy7mwBagL_Rxr1YmNsNY8igKO3drWZciYLpAphg@mail.gmail.com>
In-Reply-To: <20180222203441.482d03bf@thor.intern.walstatt.dynvpn.de>
References:  <CAG6CVpUxXgNe1ZoXrzthPcgO=SwDkg-4f-NyME=GTbvdLCiUjw@mail.gmail.com> <201802211818.w1LII7fh087166@pdx.rh.CN85.dnsmgr.net> <CACNAnaGuCT%2B0R3zeHbB=YEXu074f38JWLkJ8OrZAQ0boXrXTjw@mail.gmail.com> <20180221200551.718ab72f@thor.intern.walstatt.dynvpn.de> <20180222184218.2da3db1a@thor.intern.walstatt.dynvpn.de> <1519322026.91697.135.camel@freebsd.org> <20180222195653.757840c3@thor.intern.walstatt.dynvpn.de> <20180222203441.482d03bf@thor.intern.walstatt.dynvpn.de>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, Feb 22, 2018 at 8:34 PM, O. Hartmann <ohartmann@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>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAGudoHHz3tXvy7mwBagL_Rxr1YmNsNY8igKO3drWZciYLpAphg>