On Mon, 22 Feb 1999, Bruce Evans wrote:

> >I fixed this a while back to use sysctlbyname, as it should have been 
> >done.  Bruce subsequently backed it out (bad idea, IMO).
> 
> You only worked around the previous breakage of vfs sysctls for the
> statically configured case.  The dynamically configured case was more
> fundamentally broken (sysctls were not wired at all).  Other applications
> that use vfs sysctls, e.g., mountd(8), remained broken in all cases.

Even then, only NFS' sysctls were 'fixed' to use vfc_typenum as their oid
numbers.  Other filesystems with sysctls such as ufs were still 'broken'.
It is possible to change vfs_register so that it hacks the vfc_typenum
into any oid it finds under 'vfs.' with the right name.  I prefer just
changing the supported mode of access to sysctlbyname().

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