Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 21 Feb 1999 22:58:37 -0800
From:      Mike Smith <mike@smith.net.au>
To:        "Roman V. Palagin" <romanp@wuppy.rcs.ru>
Cc:        current@FreeBSD.ORG
Subject:   Re: Problems with nfsstat and dynamic OID 
Message-ID:  <199902220658.WAA02233@dingo.cdrom.com>
In-Reply-To: Your message of "Sat, 20 Feb 1999 22:32:42 %2B0300." <Pine.BSF.4.05.SK%2BPRV.9902202217290.4277-100000@room101.wuppy.rcs.ru> 

next in thread | previous in thread | raw e-mail | index | archive | help

I fixed this a while back to use sysctlbyname, as it should have been 
done.  Bruce subsequently backed it out (bad idea, IMO).

You should file a PR or otherwise petition bde@freebsd.org to un-revert 
his change.

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

-- 
\\  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 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?199902220658.WAA02233>