From owner-freebsd-current@freebsd.org Thu Feb 22 17:52:27 2018 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 88D25F1B367 for ; Thu, 22 Feb 2018 17:52:27 +0000 (UTC) (envelope-from mjguzik@gmail.com) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 185D46FB2E for ; Thu, 22 Feb 2018 17:52:27 +0000 (UTC) (envelope-from mjguzik@gmail.com) Received: by mailman.ysv.freebsd.org (Postfix) id CB721F1B35D; Thu, 22 Feb 2018 17:52:26 +0000 (UTC) Delivered-To: current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id A7905F1B357 for ; Thu, 22 Feb 2018 17:52:26 +0000 (UTC) (envelope-from mjguzik@gmail.com) Received: from mail-qk0-x22b.google.com (mail-qk0-x22b.google.com [IPv6:2607:f8b0:400d:c09::22b]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4A7DE6FB26 for ; Thu, 22 Feb 2018 17:52:26 +0000 (UTC) (envelope-from mjguzik@gmail.com) Received: by mail-qk0-x22b.google.com with SMTP id s188so7523770qkb.2 for ; Thu, 22 Feb 2018 09:52:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=VU+5s7gUqs5naxtpnNpn3xWwaXQjIPJv0SGfQd8osIc=; b=s7wyDzkeWDAbc6AVT7u9C2g1l5GL/lAQ4s9tdmKIK6cBckMpXJJvJu8u0RR+rzzha/ nVV3y9b28+QFk9GEUm/dIx+iEFOZW1/Qr4cPcql2SDbBNSscVP4AYmnx3FT8wPmINi1w JRNDvDHZ43YrBQK0RbgKBL26h5YkPz3XmEwLrN5xfOvZKnZEt+Khikx6HttxKxhRGEZ7 K41op3hWql5NU3/TpyGLUwYt7X5+61uRwo9Butd8jnhDdzW2M3r+rarhaULbxRy7q1ii jCGWVxzvTvDAd7zFWqYFQApzPpi6RuvaEHPeuq62h6M30QazMcjPv99TpfwGAV6EHeNg l/Aw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=VU+5s7gUqs5naxtpnNpn3xWwaXQjIPJv0SGfQd8osIc=; b=YitNIIMoeRjdLA+0mGgKNv++LhjFCh/Vac+iVLAHl3TmH9g0r8Jwrw8jnw5W1i5Vdr DRvIQbMEMQiru3NQ7Z2uA03Liak/uQgePKovTeMvtw/L+djj8sKYhr79lEJgef0FoRN7 1GP59HRrSn6JmR8/YVtZe/GziUaIb9Eq7Su/2X1ISwfR6IlE8rphKaFmvY635+8av59h MSgHzTRZYfZM3oJIbZBMfWrWiDbNNSJZCjQD50s22j/YGKudLn6L7Qfk/a2QkaWCHiEI ZRGkbyaIONxBgvm9q9P3wzzrHSXdM2JUKMVijqxtoqekK74m8Cre3o93eVnqb/9Uk3Nc cJYA== X-Gm-Message-State: APf1xPD/H2zWo1wiaknzYhSA4zmw6mnEUpnLSSGujtRYUdoSn1XxhNRF qg1OWQmj7gqvWgctdp+eJR9kDsnzeQKaOkm5Znqcog== X-Google-Smtp-Source: AG47ELvUg5mP0dNboakXVIEWS42V5UWnYncWKm5pX7lS8Ik5CHl/94vefLAo51DDpFAu7Uo+BRShhbTRcCYPADuDn+c= X-Received: by 10.55.22.144 with SMTP id 16mr11527405qkw.11.1519321945949; Thu, 22 Feb 2018 09:52:25 -0800 (PST) MIME-Version: 1.0 Received: by 10.237.35.42 with HTTP; Thu, 22 Feb 2018 09:52:25 -0800 (PST) In-Reply-To: <20180222184218.2da3db1a@thor.intern.walstatt.dynvpn.de> References: <201802211818.w1LII7fh087166@pdx.rh.CN85.dnsmgr.net> <20180221200551.718ab72f@thor.intern.walstatt.dynvpn.de> <20180222184218.2da3db1a@thor.intern.walstatt.dynvpn.de> From: Mateusz Guzik Date: Thu, 22 Feb 2018 18:52:25 +0100 Message-ID: Subject: Re: top: sysctl(vfs.bufspace...) expected 8, got 4 To: "O. Hartmann" Cc: current Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.25 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 Feb 2018 17:52:27 -0000 On Thu, Feb 22, 2018 at 6:41 PM, O. Hartmann wrote: > Am Wed, 21 Feb 2018 20:05:24 +0100 > "O. Hartmann" 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