From owner-freebsd-current Sun Feb 21 2:16:55 1999 Delivered-To: freebsd-current@freebsd.org Received: from godzilla.zeta.org.au (godzilla.zeta.org.au [203.26.10.9]) by hub.freebsd.org (Postfix) with ESMTP id 73F52116D1; Sun, 21 Feb 1999 02:15:59 -0800 (PST) (envelope-from bde@godzilla.zeta.org.au) Received: (from bde@localhost) by godzilla.zeta.org.au (8.8.7/8.8.7) id OAA07200; Sun, 21 Feb 1999 14:58:06 +1100 Date: Sun, 21 Feb 1999 14:58:06 +1100 From: Bruce Evans Message-Id: <199902210358.OAA07200@godzilla.zeta.org.au> To: current@FreeBSD.ORG, romanp@wuppy.rcs.ru Subject: Re: Problems with nfsstat and dynamic OID Cc: dfr@FreeBSD.ORG 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). Now that it is possible to change the sysctl tree at runtime, the changes are not actually (completely) made for vfs sysctls. Special code for making "impossible" changes for vfs sysctls went away. Bruce To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message