On Mon, 22 Feb 1999, Bruce Evans wrote:

> >>The old interface is the standard one (although the above code shows how
> >>inconvenient it is).  mountd uses it too.
> >
> >There is nothing "less standard" about sysctlbyname to my knowledge...
> 
> sysctl() is in Linux (starting in 2.1.x), BSD4.4, NetBSD, OpenBSD, etc.
> sysctlbyname() is in FreeBSD (starting in 2.2).
> 
> Some of the Linux sysctl numbers are even binary compatible.  However,
> all Linux filesystem sysctls are incompatible, starting with the top-level
> identifier being named CTL_FS instead of CTL_VFS.

If more than just NFS was defining its own sysctl variables, I might be
worried but as I found out when I did the original dynamic sysctl work,
only NFS actually used the (IMHO) ugly mechanism for rewiring its oid
number by putting a pointer to the oid in its struct vfsops.  Since
sysctlbyname exists and is obviously a better mechanism for reading the
variable (based on code complexity), then why not use it?

We maintain both nfsstat and mountd in our tree and I don't see anyone
expecting to be able to run Net/OpenBSD versions of those utilities on
FreeBSD.

If people feel strongly that we should continue to support the old
mechanism, I guess I could modify vfs_register to change the oid numbers.
It doesn't really seem worth it to me though.

--
Doug Rabson                             Mail:  d...@nlsystems.com
Nonlinear Systems Ltd.                  Phone: +44 181 442 9037




To Unsubscribe: send mail to majord...@freebsd.org
with "unsubscribe freebsd-current" in the body of the message

Reply via email to