From owner-freebsd-hackers Tue Jul 2 23:26:28 1996 Return-Path: owner-hackers Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id XAA09104 for hackers-outgoing; Tue, 2 Jul 1996 23:26:28 -0700 (PDT) Received: from phaeton.artisoft.com (phaeton.Artisoft.COM [198.17.250.211]) by freefall.freebsd.org (8.7.5/8.7.3) with SMTP id XAA09099 for ; Tue, 2 Jul 1996 23:26:27 -0700 (PDT) Received: (from terry@localhost) by phaeton.artisoft.com (8.6.11/8.6.9) id XAA09969; Tue, 2 Jul 1996 23:21:10 -0700 From: Terry Lambert Message-Id: <199607030621.XAA09969@phaeton.artisoft.com> Subject: Re: What is the best way to setup a drive To: joelh@gnu.ai.mit.edu Date: Tue, 2 Jul 1996 23:21:09 -0700 (MST) Cc: jmb@freefall.freebsd.org, tom@sdf.com, jgreco@brasil.moneng.mei.com, root@friday.keanesea.com, hackers@FreeBSD.org In-Reply-To: <199607030104.VAA07636@kropotkin.gnu.ai.mit.edu> from "Joel Ray Holveck" at Jul 2, 96 09:04:07 pm X-Mailer: ELM [version 2.4 PL24] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-hackers@FreeBSD.org X-Loop: FreeBSD.org Precedence: bulk > But how would you mount your filesystems at boot time? Long answer: The device probe will call devfs_register_dev() on the device. The devfs_register_dev() will look for physical-to-logical and logical-to-logical device translations... like a DOS partition table or a BSD disklabel. When a translation is found, then devfs_register_dev() will call devfs_claim_logical_dev() on the logical area, calling into the *-to-logical driver. The physical-to-logical and logical-to-logical device drivers will call devfs_register_dev() on each one of the sub devices. When no physical-to-logical or logical-to-logical device drivers claim a given device (ie: it is a terminal device), then the devfs_register_dev() (which has not yet returned) will call devfs_mount_dev(). The devfs_mount_dev() will call each file systems xxx_mount() as if it were mounting a root volume to establish a vnode for the root of the file system. Mounts will be inserted into the fs hierarchy post-facto by mount-point mapping of the vnodes according to the content of the fstab. Short answer: easily Terry Lambert terry@lambert.org --- Any opinions in this posting are my own and not those of my present or previous employers.