iSCSI writes seem to be working (at least, the ethereal trace shows no

errors; still need to verify data integrity).

SCSI response PDUs are handled: status and sense data (if available) are
returned via the scsi_command structure.

Updated iSCSI session parameter usage.
This commit is contained in:
Michael Brown
2006-05-19 00:20:08 +00:00
parent b531bd2bda
commit a280587cde
3 changed files with 304 additions and 54 deletions

View File

@@ -136,6 +136,10 @@ struct scsi_command {
* Must be zero if @c data_in is NULL
*/
size_t data_in_len;
/** SCSI statua code */
uint8_t status;
/** SCSI sense response code */
uint8_t sense_response;
};
/** A SCSI device */
@@ -154,6 +158,12 @@ struct scsi_device {
* @v scsi SCSI device
* @v command SCSI command
* @ret rc Return status code
*
* Note that a successful return status code indicates only
* that the SCSI command completed. The caller must check the
* status field in the command structure to see if, for
* example, the device returned CHECK CONDITION or some other
* non-success status code.
*/
int ( * command ) ( struct scsi_device *scsi,
struct scsi_command *command );