From owner-freebsd-hackers Sat Jul 1 17:26:41 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from pike.osd.bsdi.com (pike.osd.bsdi.com [204.216.28.222]) by hub.freebsd.org (Postfix) with ESMTP id C23A137B695; Sat, 1 Jul 2000 17:26:38 -0700 (PDT) (envelope-from jhb@bsdi.com) Received: from foo.osd.bsdi.com (root@foo.osd.bsdi.com [204.216.28.137]) by pike.osd.bsdi.com (8.9.3/8.9.3) with ESMTP id RAA82574; Sat, 1 Jul 2000 17:26:21 -0700 (PDT) (envelope-from jhb@bsdi.com) Received: from bsdi.com (jhb@localhost [127.0.0.1]) by foo.osd.bsdi.com (8.9.3/8.9.3) with ESMTP id RAA95289; Sat, 1 Jul 2000 17:26:07 -0700 (PDT) (envelope-from jhb@bsdi.com) Message-ID: <395E8C1F.675AA7D1@bsdi.com> Date: Sat, 01 Jul 2000 17:26:07 -0700 From: John Baldwin Organization: BSD, Inc. X-Mailer: Mozilla 4.73 [en] (X11; I; FreeBSD 4.0-STABLE i386) X-Accept-Language: en MIME-Version: 1.0 To: phk@FreeBSD.org Cc: hackers@FreeBSD.org Subject: Why do we always create a malloc disk for md? Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG I'm attempting to resolve why sysinstall keeps dying in -current at the moment. It seems that the problem is that md_drvinit() always creates a malloc disk during initialization: static void md_drvinit(void *unused) { ... [ load preloaded disks such as mfsroot.tgz from install floppy ] printf("md%d: Malloc disk\n", mdunits); mdcreate_malloc(); } This results in having two md devices during boot: md0: Preloaded image mumble bytes at 0xmumble md1: Malloc disk This ends up registering md1 with disk_create, and thus md1 is returned as a disk through kern.disks into the list returned by Disk_Names(), and sysinstall blows up when it tries to open it. I think the reason it blows up is because /dev/md1 isn't around, although I think I may be able to fix that by adding 'md' as a disk device in the table in sysinstall/devices.c.\ However, I'm curious if md1 should be created in this case? -- John Baldwin -- http://www.FreeBSD.org/~jhb/ PGP Key: http://www.cslab.vt.edu/~jobaldwi/pgpkey.asc "Power Users Use the Power to Serve!" - http://www.FreeBSD.org/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message