Douglas Gilbert wrote:
Jeff, Here is another shot at adding MODE SELECT to libata. I have used sat-r06, sbc-3 and spc-4 as a guide. Compliance on the ATA side has some issues: - no mechanism to issue 2 or more ATA commands when translating a single SCSI command [in the upstream branch, there have been patches ...] - relies on the dev->id array (IDENTIFY DEVICE response) always being up to date. Despite assurances I cannot see how that is the case when multiple hosts (initiators) can access a SATA disk. This patch is broken into two parts and is against libata-dev's upstream branch: 1) strengthen MODE SENSE processing and make default mode pages visible within libata-scsi.c 2) add MODE SELECT SCSI command support.
Thanks for splitting it up. I'm going to mess around with the best way to issue multiple commands, and hold on to your patch #2 until that happens.
Jeff - : 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