fix error handling for unsupported commands
- Respond with failure for unsupported task management commands - Increase MaxRecvDataSegmentLength to 65536, to match FirstBurstLength Signed-off-by: Utkarsh Mani Tripathi <utkarsh.tripathi@mayadata.io>
This commit is contained in:
@@ -29,7 +29,7 @@ import (
|
||||
)
|
||||
|
||||
func SPCIllegalOp(host int, cmd *api.SCSICommand) api.SAMStat {
|
||||
BuildSenseData(cmd, ILLEGAL_REQUEST, ASC_INVALID_FIELD_IN_CDB)
|
||||
BuildSenseData(cmd, ILLEGAL_REQUEST, ASC_INVALID_OP_CODE)
|
||||
return api.SAMStatCheckCondition
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user