Re: [PATCH 1/2] Use sdev_scsi2lun for SCSI parallel drivers

Hannes Reinecke
2014-07-04T14:12:25Z

On 07/04/2014 03:44 PM, Christoph Hellwig wrote:
> On Fri, Jul 04, 2014 at 01:54:34PM +0200, Hannes Reinecke wrote:
>> SCSI-2 defines only up to 256 LUNs with a flat namespace.
>> This patch introduces an accessor 'sdev_scsi2lun' which should be
>> used for these drivers to avoid problems when using 64-bit LUNs
>> internally.
>
> So what would be set in the upper 48 bits for those drivers? We receive
> the LUN over the wire to start with.
>
None. All these devices are physically incapable of receiving or
sending LUNs more that a byte wide.

Cheers,

Hannes
--
Dr. Hannes Reinecke zSeries & Storage
hare@suse.de +49 911 74053 688
SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg
GF: J. Hawn, J. Guild, F. Imendörffer, HRB 16746 (AG Nürnberg)
--
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html