Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 20 Feb 1999 22:32:42 +0300 (MSK)
From:      "Roman V. Palagin" <romanp@wuppy.rcs.ru>
To:        current@FreeBSD.ORG
Subject:   Problems with nfsstat and dynamic OID
Message-ID:  <Pine.BSF.4.05.SK%2BPRV.9902202217290.4277-100000@room101.wuppy.rcs.ru>

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).

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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.05.SK%2BPRV.9902202217290.4277-100000>