Date: Tue, 26 Oct 2004 17:04:49 -0400 From: John Baldwin <jhb@FreeBSD.org> To: "Poul-Henning Kamp" <phk@phk.freebsd.dk> Cc: Tim Dettloff <dettloff@gmail.com> Subject: Re: Solution? Re: pxe-install on FreeBSD 5.3 Message-ID: <200410261704.49182.jhb@FreeBSD.org> In-Reply-To: <36147.1098393869@critter.freebsd.dk> References: <36147.1098393869@critter.freebsd.dk>
next in thread | previous in thread | raw e-mail | index | archive | help
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 <jhb@FreeBSD.org> <>< http://www.FreeBSD.org/~jhb/ "Power Users Use the Power to Serve!" - http://www.FreeBSD.org/
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200410261704.49182.jhb>