[Stgt-devel] [PATCH] Move device type to LUN
James Smart
James.Smart
Mon Jun 11 17:42:44 CEST 2007
Please move to this route.... a special LUN 0 w/ REPORT_LUNS support.
Most SCSI discovery algorithms finally use it, and it solves many
problems. With out it, you re-introducing the old SCSI-2-isms, which
drove things like devinfo(/blacklist) entries, etc. Bad hacks you'd
like to avoid.
I also agree with the desire for multiple lun support. Yes, SCSI has
lots of warts (command queuing sharing a prime one), but multiple luns
makes a lot of sense in a lot of circumstances.
-- james s
Hannes Reinecke wrote:
>> Perhaps it is reasonable to create a special device for these
>> commands. Up in target.c, you could assign cmd->dev to target->dev,
>> where that is the special device, paralleling the way that
>> target->cmd_queue is used. As a side effect, lots of "if (cmd->dev)
>> ... else ILLEGAL_REQUEST" clauses can be removed from device code
>> too.
>>
> Well, I actually thought of creating a proper LUN 0 with type 0xc.
> This would be automagically created whenever a target is created.
> And we could hook some management facilities to that one.
> Maybe even turn it into a proper remote management :-)
>
> But then, for this we definitely need to move the type to the LUN.
>
> Tomo, what are you're thoughts on that one?
>
> Cheers,
>
> Hannes
More information about the stgt
mailing list