From owner-freebsd-arch@FreeBSD.ORG Fri Jul 9 14:51:57 2004 Return-Path: Delivered-To: freebsd-arch@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6E0B716A4CE for ; Fri, 9 Jul 2004 14:51:57 +0000 (GMT) Received: from darkness.comp.waw.pl (darkness.comp.waw.pl [195.117.238.236]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1905043D45 for ; Fri, 9 Jul 2004 14:51:57 +0000 (GMT) (envelope-from pjd@darkness.comp.waw.pl) Received: by darkness.comp.waw.pl (Postfix, from userid 1009) id E2B51ACAFB; Fri, 9 Jul 2004 16:51:54 +0200 (CEST) Date: Fri, 9 Jul 2004 16:51:54 +0200 From: Pawel Jakub Dawidek To: Poul-Henning Kamp Message-ID: <20040709145154.GV12007@darkness.comp.waw.pl> References: <6595.1089317548@critter.freebsd.dk> <21507.1089374816@critter.freebsd.dk> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="xNMMsVvlV1B6vaKr" Content-Disposition: inline In-Reply-To: <21507.1089374816@critter.freebsd.dk> User-Agent: Mutt/1.4.2i X-PGP-Key-URL: http://people.freebsd.org/~pjd/pjd.asc X-OS: FreeBSD 5.2.1-RC2 i386 cc: arch@freebsd.org Subject: Re: [RFC] kldunload -f argument. X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 09 Jul 2004 14:51:57 -0000 --xNMMsVvlV1B6vaKr Content-Type: text/plain; charset=iso-8859-2 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Jul 09, 2004 at 02:06:56PM +0200, Poul-Henning Kamp wrote: +> In message <6595.1089317548@critter.freebsd.dk>, Poul-Henning Kamp write= s: +> > +> >In an ideal situation, unmount(8) will fail to unload if the +> >filesystem is in use but the administrator has the option of applying +> >the -f(orce) option which tells the kernel: "umount at any cost" [3]. +> > +> > +> >We do not have the same flexibility with kldunload(8), and this is +> >leading to a minor spot of trouble for modules which autoattach to +> >things, like for instance GEOM classes where it can be very hard if +> >not impossible to get the module idle from userland so it can be +> >unloaded. +>=20 +> Here is a patch which does this: +>=20 +> http://phk.freebsd.dk/patch/kldunload.patch +>=20 +> Tests, comments etc welcome! Could we implement those new flags as a flags, i.e: #define LINKER_UNLOAD_FORCE 0x01 (only this) So we don't have to create another syscall when we want to add something in the future. --=20 Pawel Jakub Dawidek http://www.FreeBSD.org pjd@FreeBSD.org http://garage.freebsd.pl FreeBSD committer Am I Evil? Yes, I Am! --xNMMsVvlV1B6vaKr Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (FreeBSD) iD8DBQFA7rEKForvXbEpPzQRApS7AKDSQ9UNa0jD4ZmZeME2keWuMohJggCg3hY2 orZ/CK86mH3tuRuScG013tM= =3nnK -----END PGP SIGNATURE----- --xNMMsVvlV1B6vaKr--