iscsi-target: Add IFC_SENDTARGETS_SINGLE support
authorNicholas Bellinger <nab@linux-iscsi.org>
Thu, 20 Jun 2013 05:45:42 +0000 (22:45 -0700)
committerNicholas Bellinger <nab@linux-iscsi.org>
Thu, 4 Jul 2013 02:43:24 +0000 (19:43 -0700)
commit6665889c843c774cd35309cf995ba0d302fa6dba
treead5aeffb0ab8cbacdcd0dc50ed70fd9cad28d825
parent9864ca9d27f75d2716d09dd02b3d62d241194576
iscsi-target: Add IFC_SENDTARGETS_SINGLE support

This patch changes ISCSI_OP_TEXT handling of SendTargets=[iqn.,eui.]
payloads to return explicit discovery information.

It adds checks to iscsit_process_text_cmd() and adds the special single
$TARGETNAME discovery case in iscsit_build_sendtargets_response() code.

Cc: Or Gerlitz <ogerlitz@mellanox.com>
Cc: Mike Christie <michaelc@cs.wisc.edu>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
drivers/target/iscsi/iscsi_target.c
drivers/target/iscsi/iscsi_target_core.h