LINUS - PLEASE READ

Leonard N. Zubkoff (lnz@dandelion.com)
Sun, 18 Feb 1996 22:18:20 -0800


Date: Sun, 18 Feb 1996 23:11:49 -0700 (MST)
From: James MacKinnon <jmack@phys.ualberta.ca>

Hi Leonard,

Just tested it, and it works ok. single-lun devices get mapped properly
and my multi-lun cdrom is mapped ok too :-)

Great. Linus -- please replace the old change with this one. Thanks.

Leonard

>
> The corrected code adds a test for lun > 0
>
> if (((SCpnt->sense_buffer[2] & 0xf) != NOT_READY) &&
> ((SCpnt->sense_buffer[2] & 0xf) != UNIT_ATTENTION) &&
> ((SCpnt->sense_buffer[2] & 0xf) != ILLEGAL_REQUEST || lun > 0))
> return 1;
>
> The idea is that getting back an ILLEGAL_REQUEST while probing lun 0 really
> means that something is out there (but has a saved error condition that hasn't
> been cleared yet), whereas for lun > 0 it probably means there is not.
>
> Leonard
>