From owner-freebsd-arch@FreeBSD.ORG Sun Oct 9 07:34:00 2005 Return-Path: X-Original-To: freebsd-arch@freebsd.org 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 7BD0F16A41F for ; Sun, 9 Oct 2005 07:34:00 +0000 (GMT) (envelope-from pjd@garage.freebsd.pl) Received: from swift.wheel.pl (zoidberg.sec-force.net [80.55.205.180]) by mx1.FreeBSD.org (Postfix) with ESMTP id E5CF043D45 for ; Sun, 9 Oct 2005 07:33:59 +0000 (GMT) (envelope-from pjd@garage.freebsd.pl) Received: from localhost (bng128.neoplus.adsl.tpnet.pl [83.28.252.128]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by swift.wheel.pl (Postfix) with ESMTP id A89538A02E; Sun, 9 Oct 2005 09:27:25 +0200 (CEST) Date: Sun, 9 Oct 2005 09:33:44 +0200 From: Pawel Jakub Dawidek To: Poul-Henning Kamp Message-ID: <20051009073314.GA7463@garage.freebsd.pl> References: <20051009064053.GA7261@garage.freebsd.pl> <8138.1128841621@critter.freebsd.dk> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="2B/JsCI69OhZNC5r" Content-Disposition: inline In-Reply-To: <8138.1128841621@critter.freebsd.dk> X-PGP-Key-URL: http://people.freebsd.org/~pjd/pjd.asc X-OS: FreeBSD 7.0-CURRENT i386 User-Agent: mutt-ng devel (FreeBSD) Cc: Craig Rodrigues , freebsd-arch@freebsd.org Subject: Re: [RFC] Teaching mount(8) to use nmount() X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 09 Oct 2005 07:34:00 -0000 --2B/JsCI69OhZNC5r Content-Type: text/plain; charset=iso-8859-2 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, Oct 09, 2005 at 09:07:01AM +0200, Poul-Henning Kamp wrote: +> In message <20051009064053.GA7261@garage.freebsd.pl>, Pawel Jakub Dawide= k write +> s: +>=20 +> >My suggestion (which I discusses with Craig on IRC a bit already) is as +> >follows: +> > +> >- We create one mount(8) program. +> > +> >- When it is called with '-t ' switch, we look for +> > /lib/mount/mount_.so and try to dlopen() it. +>=20 +> No way. +>=20 +> Doing that would take much more code than having separate mount +> binaries because it would add yet another ABI which has to be +> versioned and managed etc etc. So you think there will be more ABI changes to maintain than we have mount_ binaries at the moment? And where every binary have to duplicate the same code? I also don't know how passing arguments to .so is different than passing them to external binary. At least here we can verify ABI and we can eventually verify other things (like which options are supported, etc.). The .so have to parse arguments, use build_iovec() and return. In my opinion it'll save a lot of code duplication. --=20 Pawel Jakub Dawidek http://www.wheel.pl pjd@FreeBSD.org http://www.FreeBSD.org FreeBSD committer Am I Evil? Yes, I Am! --2B/JsCI69OhZNC5r Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (FreeBSD) iD8DBQFDSMfYForvXbEpPzQRAmErAJ45gH+xB2jo0B4VY8tNBp+N7FZ63ACdG4XO 05F3N6nftt9QjRz4KH1v8CA= =8fKO -----END PGP SIGNATURE----- --2B/JsCI69OhZNC5r--