* target: transport_get_lun_for_tmr() failure behavior
@ 2011-02-15 20:02 Fubo Chen
2011-02-21 9:53 ` Nicholas A. Bellinger
0 siblings, 1 reply; 2+ messages in thread
From: Fubo Chen @ 2011-02-15 20:02 UTC (permalink / raw)
To: Nicholas A. Bellinger; +Cc: linux-scsi
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().
Fubo.
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: target: transport_get_lun_for_tmr() failure behavior
2011-02-15 20:02 target: transport_get_lun_for_tmr() failure behavior Fubo Chen
@ 2011-02-21 9:53 ` Nicholas A. Bellinger
0 siblings, 0 replies; 2+ messages in thread
From: Nicholas A. Bellinger @ 2011-02-21 9:53 UTC (permalink / raw)
To: Fubo Chen; +Cc: linux-scsi
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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-02-21 10:01 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-02-15 20:02 target: transport_get_lun_for_tmr() failure behavior Fubo Chen
2011-02-21 9:53 ` Nicholas A. Bellinger
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.