From e99ea9ec2be47cffc3395d3ee541a26d92ea8ae1 Mon Sep 17 00:00:00 2001 From: Bruce Evans Date: Sat, 5 Sep 1998 17:13:28 +0000 Subject: Ignore the statically configured vfs type numbers and assign vfs type numbers in vfs attach order (modulo incomplete reuse of old numbers after vfs LKMs are unloaded). This requires reinitializing the sysctl tree (or at least the vfs subtree) for vfs's that support sysctls (currently only nfs). sysctl_order() already handled reinitialization reasonably except it checked for annulled self references in the wrong place. Fixed sysctls for vfs LKMs. --- sys/nfsclient/nfs_vfsops.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'sys/nfsclient') diff --git a/sys/nfsclient/nfs_vfsops.c b/sys/nfsclient/nfs_vfsops.c index c59201717aff8..ae40bc9bbde77 100644 --- a/sys/nfsclient/nfs_vfsops.c +++ b/sys/nfsclient/nfs_vfsops.c @@ -34,7 +34,7 @@ * SUCH DAMAGE. * * @(#)nfs_vfsops.c 8.12 (Berkeley) 5/20/95 - * $Id: nfs_vfsops.c,v 1.72 1998/06/07 17:12:30 dfr Exp $ + * $Id: nfs_vfsops.c,v 1.73 1998/08/12 20:17:42 bde Exp $ */ #include @@ -131,7 +131,9 @@ static struct vfsops nfs_vfsops = { nfs_vget, nfs_fhtovp, nfs_vptofh, - nfs_init + nfs_init, + 0, + &sysctl___vfs_nfs }; VFS_SET(nfs_vfsops, nfs, MOUNT_NFS, VFCF_NETWORK); -- cgit v1.3