----- Original Message -----
From: "Brendan Miller" <[EMAIL PROTECTED]>
To: "Ishikawa" <[EMAIL PROTECTED]>
Cc: "Eric Youngdale" <[EMAIL PROTECTED]>; "LINUX SCSI"
<[EMAIL PROTECTED]>
Sent: Friday, January 21, 2000 3:01 AM
Subject: Re: Another multi-lun CD changer (was: ... simultaneous access
problem)


> > If you did it WITHOUT blacklisting and succeed, I need
> > to dig into the scsi code and check if the meaning of the flag
> > is somehow treated in a reverse manner or whatever.
> >
>
> Well, I was looking through scsi.c to see what all those device flags
> mean.  I got to a part where it says:
>
>   /*
>    * If we want to only allow I/O to one of the luns attached to this
device
>    * at a time, then we set this flag.
>    */
>   if (bflags & BLIST_SINGLELUN)
>      SDpnt->single_lun = 1;
>
> Should I interpret this that the SINGLELUN flag means "only talk to one
> LUN at a time"?  Maybe this is part of the problem, since your problems
> begin when doing simultaneous access...

    Yes, BLIST_SINGLELUN is the one you want.  It was designed for this
purpose.

> How do you know if a device can only handle a single lun communication
> at a time?  A lot of the devices "with special flags" have SINGLELUN
> enabled.  How is this determined?  What is the effect on the usability?

    They are all changers :-).

> As for my "5 LUNS" problem, Eric said there already was a MAX5LUN
> employed for some Regal device.  Is this the hack that avoids having
> to specify "max_scsi_luns=5" in the boot prompt?

    Yes.  Look at REGAL again - the flags they use are both SINGLELUN and
5LUNS.  This is exactly the same set of flags that you need to be using.

-Eric



-
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to [EMAIL PROTECTED]

Reply via email to