From owner-freebsd-current@FreeBSD.ORG Tue Oct 26 21:15:46 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id DBF4D16A4DE for ; Tue, 26 Oct 2004 21:15:46 +0000 (GMT) Received: from mail2.speakeasy.net (mail2.speakeasy.net [216.254.0.202]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4020B43D2F for ; Tue, 26 Oct 2004 21:15:46 +0000 (GMT) (envelope-from john@baldwin.cx) Received: (qmail 31308 invoked from network); 26 Oct 2004 21:15:44 -0000 Received: from dsl027-160-063.atl1.dsl.speakeasy.net (HELO server.baldwin.cx) ([216.27.160.63]) (envelope-sender ) encrypted SMTP for ; 26 Oct 2004 21:15:43 -0000 Received: from zion.baldwin.cx (zion.baldwin.cx [192.168.0.7]) by server.baldwin.cx (8.12.11/8.12.11) with ESMTP id i9QLFdkC009569; Tue, 26 Oct 2004 17:15:39 -0400 (EDT) (envelope-from john@baldwin.cx) Received: from zion.baldwin.cx (localhost [127.0.0.1]) by zion.baldwin.cx (8.12.10/8.12.10) with ESMTP id i9QLFd8h015296; Tue, 26 Oct 2004 17:15:39 -0400 (EDT) (envelope-from john@zion.baldwin.cx) Received: from localhost (localhost [[UNIX: localhost]]) by zion.baldwin.cx (8.12.10/8.12.10/Submit) id i9QLFdwJ015295; Tue, 26 Oct 2004 17:15:39 -0400 (EDT) (envelope-from john) From: John Baldwin To: "Poul-Henning Kamp" Date: Tue, 26 Oct 2004 17:04:49 -0400 User-Agent: KMail/1.6 References: <36147.1098393869@critter.freebsd.dk> In-Reply-To: <36147.1098393869@critter.freebsd.dk> MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <200410261704.49182.jhb@FreeBSD.org> X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on server.baldwin.cx cc: freebsd-current@FreeBSD.org cc: current@FreeBSD.org cc: Tim Dettloff Subject: Re: Solution? Re: pxe-install on FreeBSD 5.3 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 26 Oct 2004 21:15:47 -0000 On Thursday 21 October 2004 05:24 pm, Poul-Henning Kamp wrote: > In message <200410211505.27635.jhb@FreeBSD.org>, John Baldwin writes: > >> Doesn't the search terminate if [0] is NULL ? > > > >Perhaps there should be a small wrapper function to register a candidate > > root with an associated priority and that wrapper function could then > > manage the rootdevnames[] array and keep them sorted based on the > > priority? > > No, the entire thing should be rototiled. Well, the interface I'm thinking of is something like 'rootdevice_add(const char *name, int priority)' or maybe 'rootdevice_add(dev_t dev, int priority)' (which won't work for NFS, so I guess back to the char * version) and not having the array or linked list or whatever of names visible outside vfs_mount.c (or where the root mount code lives). -- John Baldwin <>< http://www.FreeBSD.org/~jhb/ "Power Users Use the Power to Serve!" - http://www.FreeBSD.org/