Date: 3 Oct 2001 14:46:08 -0000 From: hiroo@oikumene.gcd.org To: FreeBSD-gnats-submit@freebsd.org Subject: bin/31009: Installing current snapshot fails at sysintall/install.c:installFilesystems() Message-ID: <20011003144608.69192.qmail@chrysanthe.oikumene.gcd.org>
next in thread | raw e-mail | index | archive | help
>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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20011003144608.69192.qmail>