Re: target: transport_get_lun_for_tmr() failure behavior

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

 



On Tue, 2011-02-15 at 21:02 +0100, Fubo Chen wrote:
> Hi,
> 
> While trying figure out how transport_get_lun_for_tmr() works I
> noticed that flag SCF_SCSI_CDB_EXCEPTION is set if LUN not found but
> that se_cmd->scsi_sense_reason is not set. Is that on purpose ?
> 
> Same remark for transport_new_cmd_failure().
> 

Currently a default TCM_UNSUPPORTED_SCSI_OPCODE for struct
se_cmd->scsi_sense_reason will be set and emulated sense payload built
from within transport_generic_request_failure() for the latter
transport_new_cmd_failure() case for a failed received struct se_cmd
descriptor..

For the transport_get_lun_for_tmr() failure case a failed task
management request will be translated into a fabric specific task
management response following include/target/target_core_tmr.h:enum
tcm_tmrsp_table.

--nab


--
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