From owner-freebsd-current Fri Mar 22 09:25:04 1996 Return-Path: owner-current Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id JAA16628 for current-outgoing; Fri, 22 Mar 1996 09:25:04 -0800 (PST) Received: from ref.tfs.com (ref.tfs.com [140.145.254.251]) by freefall.freebsd.org (8.7.3/8.7.3) with ESMTP id JAA16600 for ; Fri, 22 Mar 1996 09:24:59 -0800 (PST) Received: (from julian@localhost) by ref.tfs.com (8.7.3/8.6.9) id MAA19785; Thu, 21 Mar 1996 12:16:32 -0800 (PST) Message-Id: <199603212016.MAA19785@ref.tfs.com> Subject: Re: DEVFS vs "regular /dev" To: davidg@Root.COM Date: Thu, 21 Mar 1996 12:16:31 -0800 (PST) From: "JULIAN Elischer" Cc: phk@critter.tfs.com, terry@lambert.org, scrappy@ki.net, current@freebsd.org In-Reply-To: <199603211313.FAA05246@Root.COM> from "David Greenman" at Mar 21, 96 05:13:54 am X-Mailer: ELM [version 2.4 PL25 ME8b] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-current@freebsd.org X-Loop: FreeBSD.org Precedence: bulk > > > > >> >> > This assumes that the file system abstractions currently in place > >> >> > change as well, since the /dev FS can't be mounted *after* the / FS > >> >> > has been mounted as an inferior FS -- > >> >> why not? > >> >> you don't need a mounted /dev to mount root. > >> >> that's done specially. > >> > > >> >So you don't need a mounted root to have a mounted /dev, of course! > >> > >> That's silly. The root filesystem is mounted long before /dev would be, > > > >Not that long before. /sbin/init will have to mount it to get in touch > >with /dev/console, /dev/null and ... > > No, it will be mounted in the kernel. >From within the kernel's point of view, the devfs is always available I could easily add a function that would 'open' a device by name even if the devfs is not mounted.. e.g. error = deviceopen("console",O_RDONLY,0,&vnpointer); if (error) { printf(" failed to open /dev/console, errno = %d",error); } maybe even a version that given a proc struct, will open it on behalf of that process.. > > -DG > > David Greenman > Core-team/Principal Architect, The FreeBSD Project >