From owner-cvs-sys Thu Feb 27 08:40:25 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id IAA05949 for cvs-sys-outgoing; Thu, 27 Feb 1997 08:40:25 -0800 (PST) Received: (from bde@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id IAA05940; Thu, 27 Feb 1997 08:40:23 -0800 (PST) Date: Thu, 27 Feb 1997 08:40:23 -0800 (PST) From: Bruce Evans Message-Id: <199702271640.IAA05940@freefall.freebsd.org> To: CVS-committers, cvs-all, cvs-sys Subject: cvs commit: src/sys/kern kern_lkm.c Sender: owner-cvs-sys@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk bde 97/02/27 08:40:22 Modified: sys/kern kern_lkm.c Log: Fixed loading of vfs's. The Lite2 merge added unnecessary compatibility cruft and resulted in loading usually following a null pointer. Use something closer to the pre-Lite2 code, including not making a copy of the new filesystem's config info. Not making a copy also fixes a race for loading and a memory leak for unloading. Fixed unloading of vfs's. maxvfsconf wasn't maintained. Look up the vfs to unload by name instead of by number. The numbers should go away as soon as all mount utilities are converted. Revision Changes Path 1.37 +20 -41 src/sys/kern/kern_lkm.c