Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 21 Feb 1999 14:58:06 +1100
From:      Bruce Evans <bde@zeta.org.au>
To:        current@FreeBSD.ORG, romanp@wuppy.rcs.ru
Cc:        dfr@FreeBSD.ORG
Subject:   Re: Problems with nfsstat and dynamic OID
Message-ID:  <199902210358.OAA07200@godzilla.zeta.org.au>

next in thread | raw e-mail | index | archive | help
>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




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