This looks correct to me, Reviewed-by: Christoph Hellwig <hch@xxxxxx> But: this will truncate > 32bit sector numbers. Maybe we need to enable descriptor format sense data for large enough LUs.
That should be easy enough now that the sense data is constructed using scsi helpers. Let me prepare a patch for that. -- 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