strange SCSI/lun configuration

Daniel Roche (dan@apolline.lectra.fr)
Wed, 3 Jul 1996 15:44:32 GMT


Hello SCSI Linux Guys !.

Yet another scsi problem met on linux2.0.0 :

I have a multilun scsi printer/scanner (CANON CLC10) with strange
lun configuration :

lun 0 : scanner
lun 1 : nothing
lun 2 : nothing
lun 3 : printer
lun 4 : nothing
lun 5 : nothing
lun 6 : nothing
lun 7 : nothing

unfortunately , when linux probe all lun it give up to the first
bad lun , so i can never see my printer.

so i have done a little patch , which is just removing the break
within the lun probe loop. Boot is probably a little longer for
standard device , but it works !.

maybe is it better to do a configuration option for this ??

=======================here is the patch==================
--- scsi.c.orig Fri Jun 7 10:46:54 1996
+++ scsi.c Wed Jul 3 15:29:43 1996
@@ -484,9 +484,8 @@
max_dev_lun = (max_scsi_luns < shpnt->max_lun ?
max_scsi_luns : shpnt->max_lun);
for (lun = 0; lun < max_dev_lun; ++lun) {
- if (!scan_scsis_single (channel, dev, lun, &max_dev_lun,
- &SDpnt, SCpnt, shpnt, scsi_result))
- break; /* break means don't probe further for luns!=0 */
+ scan_scsis_single (channel, dev, lun, &max_dev_lun,
+ &SDpnt, SCpnt, shpnt, scsi_result);
} /* for lun ends */
} /* if this_id != id ends */
} /* for dev ends */
==========================cut here==================

===============================================================================
| _ | dan@lectra.fr |
| __/ _ _ o _ / /_) _ _ / _ | |
| (_/ (_(_ / ) ( (-' / /\ (_) (_ /) (-' | May the source be with |
| | you !! |
===============================================================================