Commit 8060b8dd authored by Andy Grover's avatar Andy Grover Committed by Nicholas Bellinger

iscsi-target: Fix typos in enum cmd_flags_table

Everything else starts with ICF so the last two should as well.

Fix places they are used to match.
Signed-off-by: default avatarAndy Grover <agrover@redhat.com>
Signed-off-by: default avatarNicholas Bellinger <nab@linux-iscsi.org>
parent 2b70e5fd
...@@ -2027,10 +2027,10 @@ iscsit_process_text_cmd(struct iscsi_conn *conn, struct iscsi_cmd *cmd, ...@@ -2027,10 +2027,10 @@ iscsit_process_text_cmd(struct iscsi_conn *conn, struct iscsi_cmd *cmd,
goto reject; goto reject;
} }
if (!strncmp("=All", text_ptr, 4)) { if (!strncmp("=All", text_ptr, 4)) {
cmd->cmd_flags |= IFC_SENDTARGETS_ALL; cmd->cmd_flags |= ICF_SENDTARGETS_ALL;
} else if (!strncmp("=iqn.", text_ptr, 5) || } else if (!strncmp("=iqn.", text_ptr, 5) ||
!strncmp("=eui.", text_ptr, 5)) { !strncmp("=eui.", text_ptr, 5)) {
cmd->cmd_flags |= IFC_SENDTARGETS_SINGLE; cmd->cmd_flags |= ICF_SENDTARGETS_SINGLE;
} else { } else {
pr_err("Unable to locate valid SendTargets=%s value\n", text_ptr); pr_err("Unable to locate valid SendTargets=%s value\n", text_ptr);
goto reject; goto reject;
...@@ -3415,10 +3415,10 @@ iscsit_build_sendtargets_response(struct iscsi_cmd *cmd, ...@@ -3415,10 +3415,10 @@ iscsit_build_sendtargets_response(struct iscsi_cmd *cmd,
return -ENOMEM; return -ENOMEM;
} }
/* /*
* Locate pointer to iqn./eui. string for IFC_SENDTARGETS_SINGLE * Locate pointer to iqn./eui. string for ICF_SENDTARGETS_SINGLE
* explicit case.. * explicit case..
*/ */
if (cmd->cmd_flags & IFC_SENDTARGETS_SINGLE) { if (cmd->cmd_flags & ICF_SENDTARGETS_SINGLE) {
text_ptr = strchr(text_in, '='); text_ptr = strchr(text_in, '=');
if (!text_ptr) { if (!text_ptr) {
pr_err("Unable to locate '=' string in text_in:" pr_err("Unable to locate '=' string in text_in:"
...@@ -3434,7 +3434,7 @@ iscsit_build_sendtargets_response(struct iscsi_cmd *cmd, ...@@ -3434,7 +3434,7 @@ iscsit_build_sendtargets_response(struct iscsi_cmd *cmd,
spin_lock(&tiqn_lock); spin_lock(&tiqn_lock);
list_for_each_entry(tiqn, &g_tiqn_list, tiqn_list) { list_for_each_entry(tiqn, &g_tiqn_list, tiqn_list) {
if ((cmd->cmd_flags & IFC_SENDTARGETS_SINGLE) && if ((cmd->cmd_flags & ICF_SENDTARGETS_SINGLE) &&
strcmp(tiqn->tiqn, text_ptr)) { strcmp(tiqn->tiqn, text_ptr)) {
continue; continue;
} }
...@@ -3512,7 +3512,7 @@ iscsit_build_sendtargets_response(struct iscsi_cmd *cmd, ...@@ -3512,7 +3512,7 @@ iscsit_build_sendtargets_response(struct iscsi_cmd *cmd,
if (end_of_buf) if (end_of_buf)
break; break;
if (cmd->cmd_flags & IFC_SENDTARGETS_SINGLE) if (cmd->cmd_flags & ICF_SENDTARGETS_SINGLE)
break; break;
} }
spin_unlock(&tiqn_lock); spin_unlock(&tiqn_lock);
......
...@@ -135,8 +135,8 @@ enum cmd_flags_table { ...@@ -135,8 +135,8 @@ enum cmd_flags_table {
ICF_CONTIG_MEMORY = 0x00000020, ICF_CONTIG_MEMORY = 0x00000020,
ICF_ATTACHED_TO_RQUEUE = 0x00000040, ICF_ATTACHED_TO_RQUEUE = 0x00000040,
ICF_OOO_CMDSN = 0x00000080, ICF_OOO_CMDSN = 0x00000080,
IFC_SENDTARGETS_ALL = 0x00000100, ICF_SENDTARGETS_ALL = 0x00000100,
IFC_SENDTARGETS_SINGLE = 0x00000200, ICF_SENDTARGETS_SINGLE = 0x00000200,
}; };
/* struct iscsi_cmd->i_state */ /* struct iscsi_cmd->i_state */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment