This came up as a scripting issue, iscsiadm currently does not support specifying tcp as a "default" iface when nothing else is available. Behaves exactly as if no -I option was used.
Signed-off-by: Anish Bhatt <[email protected]> --- usr/iscsiadm.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/usr/iscsiadm.c b/usr/iscsiadm.c index 389f4b8..07cf470 100644 --- a/usr/iscsiadm.c +++ b/usr/iscsiadm.c @@ -3351,6 +3351,10 @@ main(int argc, char **argv) ping_interval = atoi(optarg); break; case 'I': + if (!strcmp(optarg, "tcp") || + !strcmp(optarg, "iscsi_tcp")) + break; + iface = iface_alloc(optarg, &rc); if (rc == ISCSI_ERR_INVAL) { printf("Invalid iface name %s. Must be from " -- 2.0.1 -- You received this message because you are subscribed to the Google Groups "open-iscsi" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/open-iscsi. For more options, visit https://groups.google.com/d/optout.
