summaryrefslogtreecommitdiffstats
path: root/include/target
diff options
context:
space:
mode:
authortangwenji <tang.wenji@zte.com.cn>2017-08-21 14:55:41 +0200
committerNicholas Bellinger <nab@linux-iscsi.org>2017-11-04 22:45:23 +0100
commit79dd6f2fd170e19f979d31cd1ebc9eea6de1a75f (patch)
treedc3f51977c37b8663b7ac69742940181516bf953 /include/target
parenttarget: fix double unmap data sg in core_scsi3_emulate_pro_register_and_move() (diff)
downloadlinux-79dd6f2fd170e19f979d31cd1ebc9eea6de1a75f.tar.xz
linux-79dd6f2fd170e19f979d31cd1ebc9eea6de1a75f.zip
target: add sense code INSUFFICIENT REGISTRATION RESOURCES
If a PERSISTENT RESERVE OUT command with a REGISTER service action or a REGISTER AND IGNORE EXISTING KEY service action or REGISTER AND MOVE service action is attempted, but there are insufficient device server resources to complete the operation, then the command shall be terminated with CHECK CONDITION status, with the sense key set to ILLEGAL REQUEST,and the additonal sense code set to INSUFFICIENT REGISTRATION RESOURCES. Signed-off-by: tangwenji <tang.wenji@zte.com.cn> Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
Diffstat (limited to 'include/target')
-rw-r--r--include/target/target_core_base.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/target/target_core_base.h b/include/target/target_core_base.h
index 516764febeb7..d3139a95ea77 100644
--- a/include/target/target_core_base.h
+++ b/include/target/target_core_base.h
@@ -181,6 +181,7 @@ enum tcm_sense_reason_table {
TCM_UNSUPPORTED_TARGET_DESC_TYPE_CODE = R(0x1a),
TCM_TOO_MANY_SEGMENT_DESCS = R(0x1b),
TCM_UNSUPPORTED_SEGMENT_DESC_TYPE_CODE = R(0x1c),
+ TCM_INSUFFICIENT_REGISTRATION_RESOURCES = R(0x1d),
#undef R
};