Subject: port-sun3/2662: [dM] MAKEDEV can't make some useful sd*
To: None <gnats-bugs@NetBSD.ORG>
From: der Mouse <mouse@Collatz.McRCIM.McGill.EDU>
List: netbsd-bugs
Date: 07/28/1996 20:01:15
>Number: 2662
>Category: port-sun3
>Synopsis: [dM] MAKEDEV can't make some useful sd*
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: gnats-admin (GNATS administrator)
>State: open
>Class: change-request
>Submitter-Id: net
>Arrival-Date: Sun Jul 28 20:20:03 1996
>Last-Modified:
>Originator: der Mouse
>Organization:
Dis-
>Release: -current supped Jul 3 (ie, 1.2 release branch)
>Environment:
Any sun3
>Description:
The MAKEDEV in /usr/src/etc/etc.sun3/MAKEDEV (a) doesn't make
any SCSI disks past sd3 when "MAKEDEV all" is done and (b)
refuses completely and gratuitously to make any SCSI disks past
sd4. The former is quite annoying when creating
disaster-recovery zip disks, since the zip drive is never on
sd0-sd3 with a GENERIC kernel, and the latter is a real pain if
you have two disks above ID 1. Fortunately, both are easy to
fix.
>How-To-Repeat:
"MAKEDEV all" and note the lack of sd4* or higher.
"MAKEDEV sd5" or higher and note the gratuitous and unnecessary
complaint.
>Fix:
Add sd4 to the all) case, and fix the test for sd* to include a
few more numbers. (The line numbers may be off because this is
just extracts from the patch file for this MAKEDEV in my patch
tree.)
--- OLD/etc/etc.sun3/MAKEDEV Thu Jan 1 00:00:00 1970
+++ NEW/etc/etc.sun3/MAKEDEV Thu Jan 1 00:00:00 1970
@@ -82,7 +82,7 @@
case $arg in
all)
- sh MAKEDEV std fd sd0 sd1 sd2 sd3 st0 st1 pty0
+ sh MAKEDEV std fd sd0 sd1 sd2 sd3 sd4 st0 st1 pty0
;;
std)
@@ -158,7 +159,7 @@
ccd*) name=ccd; blk=9; chr=33;;
esac
case $unit in
- 0|1|2|3|4) offset=`expr $unit \* 8`;;
+ 0|1|2|3|4|5|6|7) offset=`expr $unit \* 8`;;
*) echo bad unit for $name in: $arg;;
esac
for part in a.0 b.1 c.2 d.3 e.4 f.5 g.6 h.7
@@ -211,4 +212,3 @@
esac
done
-
der Mouse
mouse@collatz.mcrcim.mcgill.edu
01 EE 31 F6 BB 0C 34 36 00 F3 7C 5A C1 A0 67 1D
>Audit-Trail:
>Unformatted: