Date: Tue, 12 Sep 2000 10:39:25 -0700 (PDT) From: Don Lewis <Don.Lewis@tsc.tdk.com> To: FreeBSD-gnats-submit@freebsd.org Subject: misc/21239: sysinstall doesn't know that block devices and the worm device are gone Message-ID: <200009121739.e8CHdPn05086@gvpc85.gv.tsc.tdk.com>
next in thread | raw e-mail | index | archive | help
>Number: 21239
>Category: misc
>Synopsis: sysinstall doesn't know that block devices and the worm device are gone
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: freebsd-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Tue Sep 12 17:40:01 PDT 2000
>Closed-Date:
>Last-Modified:
>Originator: Don Lewis
>Release: FreeBSD 4.1-STABLE i386
>Organization:
TDK Semiconductor Corp.
>Environment:
>Description:
sysintall hasn't been updated since block devices were nuked.
It populates its /dev with the old block devices instead of
character devices. It also creates the worm device, which
is also no longer supported.
>How-To-Repeat:
>Fix:
(this patch needs to be double checked)
Index: release/sysinstall/devices.c
===================================================================
RCS file: /home/ncvs/src/release/sysinstall/devices.c,v
retrieving revision 1.117.2.4
diff -u -r1.117.2.4 devices.c
--- release/sysinstall/devices.c 2000/07/20 23:10:19 1.117.2.4
+++ release/sysinstall/devices.c 2000/09/12 17:31:07
@@ -62,32 +62,31 @@
int major, minor, delta, max;
char dev_type;
} device_names[] = {
- { DEVICE_TYPE_CDROM, "cd%dc", "SCSI CDROM drive", 6, 2, 8, 4, 'b' },
- { DEVICE_TYPE_CDROM, "mcd%da", "Mitsumi (old model) CDROM drive", 7, 0, 8, 4, 'b' },
- { DEVICE_TYPE_CDROM, "scd%da", "Sony CDROM drive - CDU31/33A type", 16, 0, 8, 4, 'b' },
+ { DEVICE_TYPE_CDROM, "cd%dc", "SCSI CDROM drive", 15, 2, 8, 4, 'c' },
+ { DEVICE_TYPE_CDROM, "mcd%da", "Mitsumi (old model) CDROM drive", 29, 0, 8, 4, 'c' },
+ { DEVICE_TYPE_CDROM, "scd%da", "Sony CDROM drive - CDU31/33A type", 45, 0, 8, 4, 'c' },
#ifdef notdef
- { DEVICE_TYPE_CDROM, "matcd%da", "Matsushita CDROM ('sound blaster' type)", 17, 0, 8, 4, 'b' },
+ { DEVICE_TYPE_CDROM, "matcd%da", "Matsushita CDROM ('sound blaster' type)", 46, 0, 8, 4, 'c' },
#endif
- { DEVICE_TYPE_CDROM, "acd%dc", "ATAPI/IDE CDROM", 31, 2, 8, 4, 'b' },
+ { DEVICE_TYPE_CDROM, "acd%dc", "ATAPI/IDE CDROM", 117, 2, 8, 4, 'c' },
{ DEVICE_TYPE_TAPE, "rsa%d", "SCSI tape drive", 14, 0, 16, 4, 'c' },
{ DEVICE_TYPE_TAPE, "rwt%d", "Wangtek tape drive", 10, 0, 1, 4, 'c' },
- { DEVICE_TYPE_DISK, "da%d", "SCSI disk device", 4, 65538, 8, 16, 'b' },
+ { DEVICE_TYPE_DISK, "da%d", "SCSI disk device", 13, 65538, 8, 16, 'c' },
{ DEVICE_TYPE_DISK, "rda%d", "SCSI disk device", 13, 65538, 8, 16, 'c' },
- { DEVICE_TYPE_DISK, "ad%d", "ATA/IDE disk device", 30, 65538, 8, 16, 'b' },
+ { DEVICE_TYPE_DISK, "ad%d", "ATA/IDE disk device", 116, 65538, 8, 16, 'c' },
{ DEVICE_TYPE_DISK, "rad%d", "ATA/IDE disk device", 116, 65538, 8, 16, 'c' },
- { DEVICE_TYPE_DISK, "fla%d", "M-Systems DiskOnChip Flash device", 28, 65538, 8, 16, 'b' },
+ { DEVICE_TYPE_DISK, "fla%d", "M-Systems DiskOnChip Flash device", 102, 65538, 8, 16, 'c' },
{ DEVICE_TYPE_DISK, "rfla%d", "M-Systems DiskOnChip Flash devicee", 102, 65538, 8, 16, 'c' },
- { DEVICE_TYPE_DISK, "afd%d", "ATAPI/IDE floppy device", 32, 65538, 8, 4, 'b' },
+ { DEVICE_TYPE_DISK, "afd%d", "ATAPI/IDE floppy device", 118, 65538, 8, 4, 'c' },
{ DEVICE_TYPE_DISK, "rafd%d", "ATAPI/IDE floppy device", 118, 65538, 8, 4, 'c' },
- { DEVICE_TYPE_DISK, "mlxd%d", "Mylex RAID disk", 27, 65538, 8, 4, 'b' },
+ { DEVICE_TYPE_DISK, "mlxd%d", "Mylex RAID disk", 131, 65538, 8, 4, 'c' },
{ DEVICE_TYPE_DISK, "rmlxd%d", "Mylex RAID disk", 131, 65538, 8, 4, 'c' },
- { DEVICE_TYPE_DISK, "amrd%d", "AMI MegaRAID drive", 35, 65538, 8, 4, 'b' },
+ { DEVICE_TYPE_DISK, "amrd%d", "AMI MegaRAID drive", 133, 65538, 8, 4, 'c' },
{ DEVICE_TYPE_DISK, "ramrd%d", "AMI MegaRAID drive", 133, 65538, 8, 4, 'c' },
- { DEVICE_TYPE_DISK, "idad%d", "Compaq RAID array", 29, 65538, 8, 4, 'b' },
+ { DEVICE_TYPE_DISK, "idad%d", "Compaq RAID array", 109, 65538, 8, 4, 'c' },
{ DEVICE_TYPE_DISK, "ridad%d", "Compaq RAID array", 109, 65538, 8, 4, 'c' },
{ DEVICE_TYPE_DISK, "rtwed%d", "3ware ATA RAID array", 147, 65538, 8, 4, 'c' },
- { DEVICE_TYPE_FLOPPY, "fd%d", "floppy drive unit A", 2, 0, 64, 4, 'b' },
- { DEVICE_TYPE_FLOPPY, "worm%d", "SCSI optical disk / CDR", 23, 0, 1, 4, 'b' },
+ { DEVICE_TYPE_FLOPPY, "fd%d", "floppy drive unit A", 9, 0, 64, 4, 'c' },
{ DEVICE_TYPE_NETWORK, "aue", "ADMtek USB ethernet adapter" },
{ DEVICE_TYPE_NETWORK, "cue", "CATC USB ethernet adapter" },
{ DEVICE_TYPE_NETWORK, "fpa", "DEC DEFPA PCI FDDI card" },
>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?200009121739.e8CHdPn05086>
