From 4a3dcf0349097c44d252e577872e73f5823a9b49 Mon Sep 17 00:00:00 2001 From: David Disseldorp Date: Tue, 15 Mar 2016 18:48:23 +0100 Subject: [PATCH] iscsi: add response values for Task Mgmt Func These values are defined in rfc3720 10.6. Task Management Function Response -> 10.6.1. Response The response field is a single byte value, and is already used within libiscsi as a command_data parameter for iscsi_task_mgmt_async() callbacks. Signed-off-by: David Disseldorp --- include/iscsi.h | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/include/iscsi.h b/include/iscsi.h index 1bfd147..1169d13 100644 --- a/include/iscsi.h +++ b/include/iscsi.h @@ -595,6 +595,17 @@ enum iscsi_task_mgmt_funcs { ISCSI_TM_TASK_REASSIGN = 0x08 }; +enum iscsi_task_mgmt_response { + ISCSI_TMR_FUNC_COMPLETE = 0x0, + ISCSI_TMR_TASK_DOES_NOT_EXIST = 0x1, + ISCSI_TMR_LUN_DOES_NOT_EXIST = 0x2, + ISCSI_TMR_TASK_STILL_ALLEGIANT = 0x3, + ISCSI_TMR_TASK_ALLEGIANCE_REASS_NOT_SUPPORTED = 0x4, + ISCSI_TMR_TMF_NOT_SUPPORTED = 0x5, + ISCSI_TMR_FUNC_AUTH_FAILED = 0x6, + ISCSI_TMR_FUNC_REJECTED = 0xFF +}; + /* * Asynchronous call for task management *