Explain what's happening when a target is not exporting any iSCSI

targets to the initiator rather than a cryptic message about a portal
group tag not being present.
This commit is contained in:
agc 2007-01-11 19:14:32 +00:00
parent 9f740696e2
commit 977a3071b2
1 changed files with 4 additions and 1 deletions

View File

@ -610,7 +610,10 @@ discovery_phase(int target, strv_t *svp)
if (param_val(sess->params, "TargetAddress")) {
ptr = param_val(sess->params, "TargetAddress");
printf("ptr is ,%s,\n", ptr);
if (*ptr == 0x0) {
iscsi_trace_error(__FILE__, __LINE__, "Target is not allowing access\n");
DP_ERROR;
}
colon_ptr = strchr(ptr, ':');
if ((comma_ptr = strchr(ptr, ',')) == NULL) {
iscsi_trace_error(__FILE__, __LINE__, "portal group tag is missing in \"%s\"\n", param_val(sess->params, "TargetAddress"));