On Tue, May 20, 2014 at 01:03:08PM +0200, Hannes Reinecke wrote: > Sequential scan for more than 256 LUNs is very fragile as > LUNs might not be numbered sequentially after that point. > > SAM revisions later than SCSI-3 impose a structure on > LUNs larger than 256, making LUN numbers between 256 > and 16384 illegal. > SCSI-3, however allows for plain 64-bit numbers with > no internal structure. > > So restrict sequential LUN scan to 256 LUNs and add a > new blacklist flag 'BLIST_SCSI3LUN' to scan up to > max_lun devices. Looks good, Reviewed-by: Christoph Hellwig <hch@xxxxxx> Do you know any common devices reporting SCSI-2? I've only really seen SCSI-2 and never SBC levels in practical use. -- To unsubscribe from this list: send the line "unsubscribe linux-scsi" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html