Re: [PATCH] scsi-sg: pass flag to inhibit setting LUN

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Dne 3.1.2014 21:21, Martin K. Petersen napsal(a):
>>>>>> "Jiří" == Jiří Pinkava <j-pi@xxxxxxxxx> writes:
> Jiří> This patch implements support for inhibiting setting LUN number
> Jiří> for SCSI custom command send via /dev/sgX with ioctl(.., SG_IO,
> Jiří> ...) call.
>
> Is it an absolute requirement that this is a per-command option or could
> we have a scsi_device quirk flag so we didn't have to plumb this through
> the entire I/O stack?
>
It should be enough to limit it to open file descriptor or sg subsystem.

This magic is expected to happen every time device is accessed
trough sg subsystem, but not if it is accessed other way
(eg. it is still some kind of common disk).

My understanding is that sg subsystem allows generic access to device,
in extreme case I might want to send command to LUN which is not the
active one.
--
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




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [SCSI Target Devel]     [Linux SCSI Target Infrastructure]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Linux IIO]     [Samba]     [Device Mapper]
  Powered by Linux