[4420] in linux-scsi channel archive
Minor bugs in SCSI subsystem
daemon@ATHENA.MIT.EDU (Marc SCHAEFER)
Tue Jul 21 08:45:13 1998
Date: Tue, 21 Jul 1998 11:46:26 +0200 (MET DST)
From: Marc SCHAEFER <schaefer@dilog.ch>
To: linux-scsi@vger.rutgers.edu
Whenever someone has some time :)
OS: Linux 2.0.34
NAME
Minor bug 1
PROBLEM-DESCRIPTION
If `sd' is compiled hard in the kernel (no module), and some of
the SCSI cards are compiled as modules, sd will only allocate
NUMBER_OF_SEEN_DISKS_AT_BOOT + 2
The `2' is defined in host.h. This means that even if you have
3 other SCSI cards with disks on them, you will get at most 2
of them available.
PROBLEM-WORKAROUND
Recompile kernel with definition at end of host.h set to a bigger
value. Or use `sd' as a module and insert after all cards have
been insmoded.
PROBLEM-FIX
Maybe, in sd detect, if number of detected is greater than number
of allocated sd entries, allocate or re-allocate+copy N more
entries (so not to waste space, N must be choosen so that
N * sd entries makes a page)
RELATED-PROBLEMS
Similar for sg and st and maybe others.
NAME
Minor bug 2
PROBLEM-DESCRIPTION
If inserting and removing a lot of modules, the number of the
SCSI adapter will be incremented. But also, the ``detected'' disk
name will get strange values such as sd|, sd?, sd#, etc. However,
the name of the disk when doing the sd initialization (partition
table) will still be sda, sdb, etc.
PROBLEM-WORKAROUND
Reboot so that the number of the host adapter starts back at 0
PROBLEM-FIX
In sd_detect(), use the same device name algorithm as in sd
structure initialize.
-
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to majordomo@vger.rutgers.edu