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

Christoph Hellwig
2014-08-19T17:56:40Z

On Thu, Aug 07, 2014 at 11:58:37AM -0400, Alan Stern wrote:
> > On Wed, Aug 06, 2014 at 04:02:22PM -0400, Alan Stern wrote:
> > > > I doubt either of them forces users to hack up flags for these cases.
> > >
> > > Why was this change needed in the first place? There's no explanation
> > > in the patch itself.
> >
> > Which chance? The one to not support SG_FLAG_LUN_INHIBIT?
>
> No, the patch that started this Bugzilla entry. Tiziano says it is
> needed in order to send vendor-specific commands that use the LUN bits
> in CDB[1].

Yes, I'd really like to know the exact scenario. What kind of command
is this and who sends it?