Merge pull request #6 from carmark/logout

add fake logout response
This commit is contained in:
Lei Xue
2016-05-03 21:55:23 +08:00

View File

@@ -119,6 +119,14 @@ func (tgt *ISCSITarget) ProcessCommand(buf []byte) ([]byte, error) {
}),
}
break
case OpLogoutReq:
resp = &ISCSICommand{
OpCode: OpLogoutResp,
StatSN: m.ExpStatSN,
TaskTag: m.TaskTag,
ExpCmdSN: m.CmdSN,
MaxCmdSN: m.CmdSN,
}
case OpSCSICmd:
resp = &ISCSICommand{
OpCode: OpSCSIResp,