From 1592a5239c1fea6a9fdbd4427fb357ce54ebb49a Mon Sep 17 00:00:00 2001 From: Adheer Chandravanshi Date: Tue, 8 Dec 2015 06:23:33 +0530 Subject: iscsiadm: let ping be tried after iface config is initialized The ping should be tried after the iface config is initialized by iscsiuio Signed-off-by: Adheer Chandravanshi --- usr/iscsiadm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'usr/iscsiadm.c') diff --git a/usr/iscsiadm.c b/usr/iscsiadm.c index 7a01480..c6705bd 100644 --- a/usr/iscsiadm.c +++ b/usr/iscsiadm.c @@ -3199,7 +3199,7 @@ static int exec_ping_op(struct iface_rec *iface, char *ip, int size, int count, } rc = iscsi_set_net_config(t, NULL, iface); - if (rc) + if (rc && (rc != ISCSI_ERR_AGAIN)) goto ping_err; rc = t->template->exec_ping(t, iface, size, &addr, -- cgit v1.2.1