Date: Tue, 23 Feb 1999 09:04:48 +0000 (GMT) From: Doug Rabson <dfr@nlsystems.com> To: Bruce Evans <bde@zeta.org.au> Cc: mike@smith.net.au, romanp@wuppy.rcs.ru, current@freebsd.org Subject: Re: Problems with nfsstat and dynamic OID Message-ID: <Pine.BSF.4.05.9902230857331.60339-100000@herring.nlsystems.com> In-Reply-To: <199902220752.SAA01270@godzilla.zeta.org.au>
next in thread | previous in thread | raw e-mail | index | archive | help
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: dfr@nlsystems.com Nonlinear Systems Ltd. Phone: +44 181 442 9037 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.9902230857331.60339-100000>