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