Mark A. Carlson wrote:
>
>
> John Forte wrote:
>>    DESCRIPTION
>>       The stmfValidateView() function validates the logical unit
>>       number.  This is done by setting view->luNbrValid to B_TRUE and
>>       setting view->luNbr to the logical unit number. A valid logical
>>       unit number is in the range of 0-16383.
>>
>>       The stmfValidateView() function find the next available
>>       logical unit number.  The is done by setting view->luNbrValid to
>>       B_FALSE. On success, the available logical unit number is 
>> returned in
>>       view->luNbr.
>>   
> Is the next available LUN thus reserved so that a subsequent call 
> would return the next
> one? Or could multiple callers all get the same LUN and try and use it?
At that point in time the logical unit number is available. Until the 
logical number gets used, it would be available. If there are multiple 
callers, yes, they could all get the same number. Any required locking 
is assumed to be handled by the client.

- John

Reply via email to