From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Martin K. Petersen" Subject: Re: [Bug 80711] [PATCH]SG_FLAG_LUN_INHIBIT is no longer implemented and there's not way to prevent the kernel from using the 2nd cdb byte for the LUN Date: Thu, 21 Aug 2014 17:43:41 -0400 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from aserp1040.oracle.com ([141.146.126.69]:19644 "EHLO aserp1040.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755313AbaHUVoY (ORCPT ); Thu, 21 Aug 2014 17:44:24 -0400 In-Reply-To: (Alan Stern's message of "Thu, 21 Aug 2014 13:31:34 -0400 (EDT)") Sender: linux-scsi-owner@vger.kernel.org List-Id: linux-scsi@vger.kernel.org To: Alan Stern Cc: Christoph Hellwig , Douglas Gilbert , Tiziano Bacocco , bugzilla-daemon@bugzilla.kernel.org, SCSI development list , USB list >>>>> "Alan" == Alan Stern writes: Alan> Okay, here's a patch that implements the suggestion, except that I Alan> put the flag in the Scsi_Host structure instead of the template. Alan> This was to minimize the impact of the change. Among the various Alan> SCSI-over-USB transports, only the Bulk-Only transport gives the Alan> LUN separately from the CDB. I don't know if there are any Alan> multi-LUN USB devices that don't use the Bulk-Only transport, but Alan> if there are then they won't work if the LUN isn't stored in Alan> CDB[1]. I'm in agreement with this approach. -- Martin K. Petersen Oracle Linux Engineering