From owner-freebsd-hackers Sun Oct 27 14:28:45 1996 Return-Path: owner-hackers Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id OAA20570 for hackers-outgoing; Sun, 27 Oct 1996 14:28:45 -0800 (PST) Received: from critter.tfs.com (disn21.cybercity.dk [194.16.57.21]) by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id OAA20504; Sun, 27 Oct 1996 14:27:43 -0800 (PST) Received: from critter.tfs.com (localhost.tfs.com [127.0.0.1]) by critter.tfs.com (8.7.5/8.7.3) with ESMTP id XAA00168; Sun, 27 Oct 1996 23:17:46 +0100 (MET) To: julian@whistle.com Subject: DEVFS problem Cc: hackers@freebsd.org Reply-to: phk@freebsd.org Date: Sun, 27 Oct 1996 23:17:45 +0100 Message-ID: <166.846454665@critter.tfs.com> From: Poul-Henning Kamp Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk I'm running a diskless machine with DEVFS and DEVFS_ROOT, it has an IDE disk. I mount DEVFS early in /sbin/init: (Warning cut&pasted, \t's are lost) Index: init.c =================================================================== RCS file: /home/ncvs/src/sbin/init/init.c,v retrieving revision 1.11 diff -u -r1.11 init.c --- init.c 1995/11/10 07:06:59 1.11 +++ init.c 1996/10/27 22:08:28 @@ -45,6 +45,7 @@ #endif /* not lint */ #include +#include #include #include @@ -192,6 +193,9 @@ (void)fprintf(stderr, "init: already running\n"); exit (1); } + + /* Try to mount devfs */ + mount(MOUNT_DEVFS, "/dev", MNT_NOEXEC|MNT_RDONLY, 0); /* * Note that this does NOT open a file... The following script hangs if devfs is mounted on /dev, but not if it is mounted on /devfs: : fsck -y /dev/rwd0s*[ae] mount /dev/wd0s4e /mnt cd /usr find X* -print | cpio -dumpV /mnt The machine as such is OK, but cpio is hung: 0 169 1 16 -5 0 212 496 getblk D p0- 0:00.55 cpio -dumpV And gradually other processes take permanent leave in getblk too. There are a couple of other patches needed, but they are not important I think, anyway, I will commit them now, so people can try this out. -- Poul-Henning Kamp | phk@FreeBSD.ORG FreeBSD Core-team. http://www.freebsd.org/~phk | phk@login.dknet.dk Private mailbox. whois: [PHK] | phk@ref.tfs.com TRW Financial Systems, Inc. Future will arrive by its own means, progress not so.