From owner-freebsd-arch@FreeBSD.ORG Sat May 31 13:48:06 2003 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 373B437B401 for ; Sat, 31 May 2003 13:48:06 -0700 (PDT) Received: from ns1.gnf.org (ns1.gnf.org [63.196.132.67]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3E18743F75 for ; Sat, 31 May 2003 13:48:05 -0700 (PDT) (envelope-from gtetlow@gnf.org) Received: from EXCHCLUSTER01.lj.gnf.org (exch01.lj.gnf.org [172.25.10.19]) by ns1.gnf.org (8.12.8p1/8.12.8) with ESMTP id h4VKm3tF085662 for ; Sat, 31 May 2003 13:48:03 -0700 (PDT) (envelope-from gtetlow@gnf.org) Received: from roark.gnf.org ([172.25.24.15]) by EXCHCLUSTER01.lj.gnf.org with Microsoft SMTPSVC(5.0.2195.5329); Sat, 31 May 2003 13:48:04 -0700 Received: from roark.gnf.org (localhost [127.0.0.1]) by roark.gnf.org (8.12.9/8.12.9) with ESMTP id h4VKm4jX095553; Sat, 31 May 2003 13:48:04 -0700 (PDT) (envelope-from gtetlow@gnf.org) Received: (from gtetlow@localhost) by roark.gnf.org (8.12.9/8.12.9/Submit) id h4VKm45U095552; Sat, 31 May 2003 13:48:04 -0700 (PDT) (envelope-from gtetlow) Date: Sat, 31 May 2003 13:48:04 -0700 From: Gordon Tetlow To: Terry Lambert Message-ID: <20030531204804.GS87863@roark.gnf.org> References: <20030531193849.GR87863@roark.gnf.org> <3ED90796.91188E84@mindspring.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="FqExhoTtZ2UFWcPs" Content-Disposition: inline In-Reply-To: <3ED90796.91188E84@mindspring.com> User-Agent: Mutt/1.4i X-Habeas-SWE-1: winter into spring X-Habeas-SWE-2: brightly anticipated X-Habeas-SWE-3: like Habeas SWE (tm) X-Habeas-SWE-4: Copyright 2002 Habeas (tm) X-Habeas-SWE-5: Sender Warranted Email (SWE) (tm). The sender of this X-Habeas-SWE-6: email in exchange for a license for this Habeas X-Habeas-SWE-7: warrant mark warrants that this is a Habeas Compliant X-Habeas-SWE-8: Message (HCM) and not spam. Please report use of this X-Habeas-SWE-9: mark in spam to . X-OriginalArrivalTime: 31 May 2003 20:48:04.0965 (UTC) FILETIME=[EF0C9950:01C327B5] cc: arch@FreeBSD.org Subject: Re: Moving some items out of src/sbin to src/usr.sbin 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: Sat, 31 May 2003 20:48:06 -0000 --FqExhoTtZ2UFWcPs Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat, May 31, 2003 at 12:50:46PM -0700, Terry Lambert wrote: > Gordon Tetlow wrote: > > To cut down on the size of a dynamically-linked root, I'd like to > > repo-copy the following utilities from src/sbin to src/usr.sbin: > >=20 > > mount_portalfs > > mount_nwfs > > mount_smbfs > > natd > > ipnat > >=20 > > Does anyone have any objections? >=20 > All the mount programs should be in the same directory. >=20 > I would actually be tempted to go farther, and to adopt the SVR4 > layout for these types of programs, and the stub programs that > call them, and put them under /libexec; that probably would not > fly to well, even though it would mean you could drop in new > file systems, and the tools would "just know" about them. They already do. mount -t foo will try execing /sbin/mount_foo and then /usr/sbin/mount_foo. You'd know that if you read the source. > If you do go ahead with your plan, make sure to inform the mount > program of the additional directory to look in, and (maybe) add > a "verbose" option, so that it can tell you where it found the > thing that it was exec'ing in order to do the mount, since if > the files are sprinkled all over the directory hierarchy like > pixie-dust, it's going to be difficult to track them down. The directory search is already there. As for adding the debugging, that could be done trivially. -gordon --FqExhoTtZ2UFWcPs Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (FreeBSD) iD8DBQE+2RUERu2t9DV9ZfsRAmWMAJ9dAELF++N+o2tIzyUFyykdGK+kQgCfU61z WKIzbaUzvBuws6TmHzuq5FQ= =uuLv -----END PGP SIGNATURE----- --FqExhoTtZ2UFWcPs--