From owner-cvs-all Sun Oct 25 11:29:08 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id LAA07498 for cvs-all-outgoing; Sun, 25 Oct 1998 11:29:08 -0800 (PST) (envelope-from owner-cvs-all@FreeBSD.ORG) Received: from dingo.cdrom.com (castles304.castles.com [208.214.167.4]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id LAA07493; Sun, 25 Oct 1998 11:29:02 -0800 (PST) (envelope-from mike@dingo.cdrom.com) Received: from dingo.cdrom.com (localhost [127.0.0.1]) by dingo.cdrom.com (8.9.1/8.8.8) with ESMTP id IAA00707; Sun, 25 Oct 1998 08:29:07 -0800 (PST) (envelope-from mike@dingo.cdrom.com) Message-Id: <199810251629.IAA00707@dingo.cdrom.com> X-Mailer: exmh version 2.0.2 2/24/98 To: Bruce Evans cc: bde@FreeBSD.ORG, mike@smith.net.au, cvs-all@FreeBSD.ORG, cvs-committers@FreeBSD.ORG Subject: Re: cvs commit: src/usr.bin/nfsstat nfsstat.c In-reply-to: Your message of "Mon, 26 Oct 1998 00:00:28 +1100." <199810251300.AAA25638@godzilla.zeta.org.au> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Sun, 25 Oct 1998 08:29:07 -0800 From: Mike Smith Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk > >> Modified files: > >> usr.bin/nfsstat nfsstat.c > >> Log: > >> Backout out previous commit. The bug was in the kernel. > >> > >> Revision Changes Path > >> 1.12 +9 -2 src/usr.bin/nfsstat/nfsstat.c > > > >This is almost certainly wrong. We should be using the textual MIB > >names wherever possible, and this is no exception. Why should we > >kludge around using several different lookup mechanisms when only one > >is required? > > Lookup by number is the standard method. It is preferable for old > sysctls because it is better documented. It can't be the standard method because it's not applicable to the majority of sysctls. It's not preferable for any sysctl for the same reasons that the old mount type manifest constants were obsoleted by getvfsbyname. Such documentation as exists doesn't really qualify as "better" or otherwise. -- \\ Sometimes you're ahead, \\ Mike Smith \\ sometimes you're behind. \\ mike@smith.net.au \\ The race is long, and in the \\ msmith@freebsd.org \\ end it's only with yourself. \\ msmith@cdrom.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message