From owner-freebsd-bugs Wed Oct 3 7:50: 8 2001 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 062F637B409 for ; Wed, 3 Oct 2001 07:50:01 -0700 (PDT) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.4/8.11.4) id f93Eo1V40190; Wed, 3 Oct 2001 07:50:01 -0700 (PDT) (envelope-from gnats) Received: from mail151.nifty.com (mail151.nifty.com [202.248.37.144]) by hub.freebsd.org (Postfix) with ESMTP id 768DA37B401 for ; Wed, 3 Oct 2001 07:46:12 -0700 (PDT) Received: from chrysanthe.oikumene.gcd.org by mail151.nifty.com (8.11.4+3.4W/3.7W-10/13/99) with SMTP id f93Ek9A28466 for ; Wed, 3 Oct 2001 23:46:09 +0900 Received: (qmail 69193 invoked by uid 1001); 3 Oct 2001 14:46:08 -0000 Message-Id: <20011003144608.69192.qmail@chrysanthe.oikumene.gcd.org> Date: 3 Oct 2001 14:46:08 -0000 From: hiroo@oikumene.gcd.org To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.113 Subject: bin/31009: Installing current snapshot fails at sysintall/install.c:installFilesystems() Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >Number: 31009 >Category: bin >Synopsis: Installing the current snapshot fails when calling MakeDevChunk(). >Confidential: no >Severity: serious >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Wed Oct 03 07:50:00 PDT 2001 >Closed-Date: >Last-Modified: >Originator: Hiroo ONO >Release: FreeBSD-current >Organization: >Environment: System: 5.0-CURRENT-20011002-JPSNAP for i386 (build at current.jp.FreeBSD.org). >Description: Installation of recent current snapshot fails. Editing of disklabel may fail from the same reason. installFilesystems() of usr.bin/sysinstall/install.c rev.1.307 calls MakeDevChunk() of lib/libdisk/create_chunk.c rev.1.61, which then calls the function MakeDev() of the same file. Then, MakeDev() calls mknod(2) which fails when DEVFS is enabled. >How-To-Repeat: Install the snapshot after October 1, 2001 or edit disklabels from the sysinstall. It will stop with the error message like: mknod of /dev/rad0a1b returned failure status! >Fix: (1) Checking DEVFS MIB using sysctl(3) in MakeDev() of the libdisk and skip calling mknod(2) may be the best solution. (2) Or checking if DEVFS is enabled or not (as above) in installFilesystems() of usr.bin/sysinstall can be an alternative. But, it will not avoid similar problems if other programs call MakeDevChunk() or MakeDev(). (3) Disabling DEVFS in the install kernerl may be a quick but bad solution. The bug will stay if one uses sysinstall in a system with DEVFS enabled (e.g. when adding a HDD). >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message