[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#224745: hw-detect: Reports errors for sd_mod and sr_mod when support is compiled statically into the kernel



On Sun, Dec 21, 2003 at 11:08:55PM +0100, Karsten Merker wrote:
> Package: hw-detect
> Version: 0.58
> 
> Hw-detect reports an error when it cannot load the modules sd_mod and
> sr_mod. This is also the case when these modules do not exist because
> they are compiled statically into the kernel (like it is the case
> for the default mips and mipsel kernels).
> 
> Hw-detect should check whether SCSI-Disk- and SCSI-CDROM is present
> in the kernel before it tries to load the modules. This can be
> accomplished with the following patch:

[patch snipped]

Unfortunately the patch does not work fully as expected.
It worked on the machines it was tested on originally, but those
had both SCSI disks as well as SCSI CDROMs. It looks as if 
/proc/devices lists the device driver entry only for device
classes of which at least one device is attached.
So if e.g. the SCSI CDROM driver is compiled in but no SCSI
CDROM is attached, sr is not listed in /proc/devices.

Therefore the patch is not really suitable to solve the problem.

Regards,
Karsten
-- 
#include <standard_disclaimer>
Nach Paragraph 28 Abs. 3 Bundesdatenschutzgesetz widerspreche ich der Nutzung
oder Uebermittlung meiner Daten fuer Werbezwecke oder fuer die Markt- oder
Meinungsforschung.



Reply to: