summaryrefslogtreecommitdiffstats
path: root/usr.sbin
diff options
context:
space:
mode:
authorjkh <jkh@FreeBSD.org>1998-06-29 09:28:01 +0000
committerjkh <jkh@FreeBSD.org>1998-06-29 09:28:01 +0000
commit18a2201c574aa719ca9333b0820baf1b8a0fa7c0 (patch)
tree615346d8159f8dac74cd4c8f410c86d926ba3933 /usr.sbin
parent470ab0badcbcb9f035057af22573272a3120173f (diff)
downloadFreeBSD-src-18a2201c574aa719ca9333b0820baf1b8a0fa7c0.zip
FreeBSD-src-18a2201c574aa719ca9333b0820baf1b8a0fa7c0.tar.gz
Crank the max possible disks/slices constants way down.
The probe for this sometimes makes IDE drives chatter their guts out and takes an inordinately long time in such cases..
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/sade/devices.c12
-rw-r--r--usr.sbin/sysinstall/devices.c12
2 files changed, 12 insertions, 12 deletions
diff --git a/usr.sbin/sade/devices.c b/usr.sbin/sade/devices.c
index bf4fe24..d76b897 100644
--- a/usr.sbin/sade/devices.c
+++ b/usr.sbin/sade/devices.c
@@ -4,7 +4,7 @@
* This is probably the last program in the `sysinstall' line - the next
* generation being essentially a complete rewrite.
*
- * $Id: devices.c,v 1.77 1998/05/11 00:47:27 jkh Exp $
+ * $Id: devices.c,v 1.78 1998/05/24 20:01:23 jkh Exp $
*
* Copyright (c) 1995
* Jordan Hubbard. All rights reserved.
@@ -70,10 +70,10 @@ static struct _devname {
{ DEVICE_TYPE_TAPE, "rst%d", "SCSI tape drive", 14, 0, 16, 4, 'c' },
{ DEVICE_TYPE_TAPE, "rft%d", "Floppy tape drive (QIC-02)", 9, 32, 64, 4, 'c' },
{ DEVICE_TYPE_TAPE, "rwt%d", "Wangtek tape drive", 10, 0, 1, 4, 'c' },
- { DEVICE_TYPE_DISK, "sd%d", "SCSI disk device", 4, 65538, 8, 32, 'b' },
- { DEVICE_TYPE_DISK, "rsd%d", "SCSI disk device", 13, 65538, 8, 32, 'c' },
- { DEVICE_TYPE_DISK, "wd%d", "IDE/ESDI/MFM/ST506 disk device", 0, 65538, 8, 32, 'b' },
- { DEVICE_TYPE_DISK, "rwd%d", "IDE/ESDI/MFM/ST506 disk device", 3, 65538, 8, 32, 'c' },
+ { DEVICE_TYPE_DISK, "sd%d", "SCSI disk device", 4, 65538, 8, 16, 'b' },
+ { DEVICE_TYPE_DISK, "rsd%d", "SCSI disk device", 13, 65538, 8, 16, 'c' },
+ { DEVICE_TYPE_DISK, "wd%d", "IDE/ESDI/MFM/ST506 disk device", 0, 65538, 8, 16, 'b' },
+ { DEVICE_TYPE_DISK, "rwd%d", "IDE/ESDI/MFM/ST506 disk device", 3, 65538, 8, 16, 'c' },
{ DEVICE_TYPE_DISK, "od%d", "SCSI optical disk device", 20, 65538, 8, 4, 'b' },
{ DEVICE_TYPE_DISK, "rod%d", "SCSI optical disk device", 70, 65538, 8, 4, 'c' },
{ DEVICE_TYPE_DISK, "wfd%d", "ATAPI FLOPPY (LS-120) device", 1, 65538, 8, 4, 'b' },
@@ -308,7 +308,7 @@ skipif:
close(fd);
/* Make associated slice entries */
- for (s = 1; s < 33; s++) {
+ for (s = 1; s < 8; s++) {
snprintf(unit, sizeof unit, device_names[i].name, j);
snprintf(slice, sizeof slice, "/dev/%ss%d", unit, s);
d = makedev(device_names[i].major, device_names[i].minor +
diff --git a/usr.sbin/sysinstall/devices.c b/usr.sbin/sysinstall/devices.c
index bf4fe24..d76b897 100644
--- a/usr.sbin/sysinstall/devices.c
+++ b/usr.sbin/sysinstall/devices.c
@@ -4,7 +4,7 @@
* This is probably the last program in the `sysinstall' line - the next
* generation being essentially a complete rewrite.
*
- * $Id: devices.c,v 1.77 1998/05/11 00:47:27 jkh Exp $
+ * $Id: devices.c,v 1.78 1998/05/24 20:01:23 jkh Exp $
*
* Copyright (c) 1995
* Jordan Hubbard. All rights reserved.
@@ -70,10 +70,10 @@ static struct _devname {
{ DEVICE_TYPE_TAPE, "rst%d", "SCSI tape drive", 14, 0, 16, 4, 'c' },
{ DEVICE_TYPE_TAPE, "rft%d", "Floppy tape drive (QIC-02)", 9, 32, 64, 4, 'c' },
{ DEVICE_TYPE_TAPE, "rwt%d", "Wangtek tape drive", 10, 0, 1, 4, 'c' },
- { DEVICE_TYPE_DISK, "sd%d", "SCSI disk device", 4, 65538, 8, 32, 'b' },
- { DEVICE_TYPE_DISK, "rsd%d", "SCSI disk device", 13, 65538, 8, 32, 'c' },
- { DEVICE_TYPE_DISK, "wd%d", "IDE/ESDI/MFM/ST506 disk device", 0, 65538, 8, 32, 'b' },
- { DEVICE_TYPE_DISK, "rwd%d", "IDE/ESDI/MFM/ST506 disk device", 3, 65538, 8, 32, 'c' },
+ { DEVICE_TYPE_DISK, "sd%d", "SCSI disk device", 4, 65538, 8, 16, 'b' },
+ { DEVICE_TYPE_DISK, "rsd%d", "SCSI disk device", 13, 65538, 8, 16, 'c' },
+ { DEVICE_TYPE_DISK, "wd%d", "IDE/ESDI/MFM/ST506 disk device", 0, 65538, 8, 16, 'b' },
+ { DEVICE_TYPE_DISK, "rwd%d", "IDE/ESDI/MFM/ST506 disk device", 3, 65538, 8, 16, 'c' },
{ DEVICE_TYPE_DISK, "od%d", "SCSI optical disk device", 20, 65538, 8, 4, 'b' },
{ DEVICE_TYPE_DISK, "rod%d", "SCSI optical disk device", 70, 65538, 8, 4, 'c' },
{ DEVICE_TYPE_DISK, "wfd%d", "ATAPI FLOPPY (LS-120) device", 1, 65538, 8, 4, 'b' },
@@ -308,7 +308,7 @@ skipif:
close(fd);
/* Make associated slice entries */
- for (s = 1; s < 33; s++) {
+ for (s = 1; s < 8; s++) {
snprintf(unit, sizeof unit, device_names[i].name, j);
snprintf(slice, sizeof slice, "/dev/%ss%d", unit, s);
d = makedev(device_names[i].major, device_names[i].minor +
OpenPOWER on IntegriCloud