Subject: port-mac68k/7023: typo in MAKEDEV
To: None <gnats-bugs@gnats.netbsd.org>
From: Frederick Bruckman <fb@enteract.com>
List: netbsd-bugs
Date: 02/20/1999 17:07:58
>Number: 7023
>Category: port-mac68k
>Synopsis: MAKEDEV tries to make too many raid* devices, and fails
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: port-mac68k-maintainer (NetBSD/mac68k Portmaster)
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sat Feb 20 15:20:01 1999
>Last-Modified:
>Originator: Frederick Bruckman
>Organization:
>Release: Feb 18, 1998
>Environment:
System: NetBSD corwin.home 1.3I NetBSD 1.3I (CORWIN) #10: Thu Feb 18 15:42:01 CST 1999
fredb@corwin.home:/usr/src/sys/arch/mac68k/compile/CORWIN mac68k
>Description:
There is a typo in MAKEDEV that causes it to try to make too many raid devices,
and then fail.
>How-To-Repeat:
mkdir /nudev
cp /usr/src/etc/etc.mac68k/MAKEDEV /nudev
cp /usr/src/etc/MAKEDEV.local /nudev
cd nudev ; sh ./MAKEDEV all
Executing the above results in a curious error concerning shell arithmetic.
>Fix:
--- /usr/src/etc/etc.mac68k/MAKEDEV.orig Thu Feb 18 06:08:03 1999
+++ /usr/src/etc/etc.mac68k/MAKEDEV Thu Feb 18 15:50:47 1999
@@ -171,7 +171,7 @@
case $i in
ccd*) name=ccd; unit=${i#ccd}; blk=9; chr=20;;
fd*) name=fd; unit=${i#fd}; blk=21; chr=43;;
- raid*) name=raid; unit=${i#vnd}; blk=20; chr=42;;
+ raid*) name=raid; unit=${i#raid}; blk=20; chr=42;;
sd*) name=sd; unit=${i#sd}; blk=4; chr=13;;
vnd*) name=vnd; unit=${i#vnd}; blk=8; chr=19;;
esac
>Audit-Trail:
>Unformatted: