lkml.org 
[lkml]   [1996]   [Jul]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subjectstrange SCSI/lun configuration

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 !! |
===============================================================================

\
 
 \ /
  Last update: 2005-03-22 13:38    [W:0.019 / U:0.144 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site