From e678ead347906b6d230d7091de9f92e5e17e739d Mon Sep 17 00:00:00 2001 From: Vladislav Bolkhovitin Date: Mon, 28 Jul 2008 11:08:32 +0000 Subject: [PATCH] Fixed minor iSCSI standard violation git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@480 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- iscsi-scst/kernel/iscsi.c | 2 +- iscsi-scst/kernel/iscsi_hdr.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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