diff --git a/iscsi-scst/kernel/iscsi.c b/iscsi-scst/kernel/iscsi.c index d0378bd5c..ab320e784 100644 --- a/iscsi-scst/kernel/iscsi.c +++ b/iscsi-scst/kernel/iscsi.c @@ -1913,7 +1913,7 @@ static void execute_task_management(struct iscsi_cmnd *req) break; case ISCSI_FUNCTION_TASK_REASSIGN: rc = -1; - status = ISCSI_RESPONSE_FUNCTION_UNSUPPORTED; + status = ISCSI_RESPONSE_ALLEGIANCE_REASSIGNMENT_UNSUPPORTED; break; default: PRINT_ERROR("Unknown TM function %d", function); diff --git a/iscsi-scst/kernel/iscsi_hdr.h b/iscsi-scst/kernel/iscsi_hdr.h index d4d33105c..4910cd392 100644 --- a/iscsi-scst/kernel/iscsi_hdr.h +++ b/iscsi-scst/kernel/iscsi_hdr.h @@ -206,7 +206,7 @@ struct iscsi_task_rsp_hdr { #define ISCSI_RESPONSE_UNKNOWN_TASK 1 #define ISCSI_RESPONSE_UNKNOWN_LUN 2 #define ISCSI_RESPONSE_TASK_ALLEGIANT 3 -#define ISCSI_RESPONSE_FAILOVER_UNSUPPORTED 4 +#define ISCSI_RESPONSE_ALLEGIANCE_REASSIGNMENT_UNSUPPORTED 4 #define ISCSI_RESPONSE_FUNCTION_UNSUPPORTED 5 #define ISCSI_RESPONSE_NO_AUTHORIZATION 6 #define ISCSI_RESPONSE_FUNCTION_REJECTED 255