From owner-freebsd-current Sat Feb 20 11:37:19 1999 Delivered-To: freebsd-current@freebsd.org Received: from room101.wuppy.rcs.ru (room101.wuppy.rcs.ru [194.84.206.44]) by hub.freebsd.org (Postfix) with ESMTP id 890B2118CB for ; Sat, 20 Feb 1999 11:33:12 -0800 (PST) (envelope-from romanp@wuppy.rcs.ru) Received: from room101.wuppy.rcs.ru (room101.wuppy.rcs.ru [194.84.206.44]) by room101.wuppy.rcs.ru (8.9.2.NOMIME/8.9.1) with ESMTP id WAA04308 for ; Sat, 20 Feb 1999 22:32:42 +0300 (MSK) (envelope-from romanp@wuppy.rcs.ru) Date: Sat, 20 Feb 1999 22:32:42 +0300 (MSK) From: "Roman V. Palagin" To: current@FreeBSD.ORG Subject: Problems with nfsstat and dynamic OID Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hello! Five minutes ago I type 'nfsstat' and got: nfsstat: sysctl: No such file or directory I take a look at the source and that's what I found: Nfsstat gets statistic via sysctl(3). name[0]=CTL_VFS, name[2]=NFS_NFSSTATS, but name[1] has a value of vfc.vfc_typenum, returned by getvfsbyname(3). And it is very bad, 'cause vfc_typenum contains fs type number assigned by kernel, not sysctl OID! As we can see in nfs_vfsops.c NFS sysctl node declared with OID_AUTO (on my system it becomes 119, not 4 as returned by getvfsbyname). Operating system is 4.0-CURRENT as of 1999/02/20. What you think? p.s. Sorry for bad English :( ------------------------------------------------------------------------- Roman V. Palagin | RVP1-6BONE | Just because you're paranoid Network Administrator | RP40-RIPE | doesn't mean they AREN'T after you To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message