Re: [PATCH v4 2/5] target: Split transport_send_check_condition_and_sense()

2015-07-09 Thread Martin K. Petersen
Sagi == Sagi Grimberg sa...@mellanox.com writes: Sagi From: Bart Van Assche bart.vanass...@sandisk.com Move the code Sagi for translating a sense_reason_t code into a SCSI status ASC and Sagi ASCQ codes from transport_send_check_condition_and_sense() into Sagi the new function

[PATCH v4 2/5] target: Split transport_send_check_condition_and_sense()

2015-07-08 Thread Sagi Grimberg
From: Bart Van Assche bart.vanass...@sandisk.com Move the code for translating a sense_reason_t code into a SCSI status ASC and ASCQ codes from transport_send_check_condition_and_sense() into the new function translate_sense_reason(). Convert the switch statement that performs the translation