For the syncing of non-boot sessions, the vlan info would have to
be extracted from the iface config file.  This patch adds such
a call to retrieve the additional net params from the iface config

Signed-off-by: Eddie Wai <>
 usr/iscsid.c |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

diff --git a/usr/iscsid.c b/usr/iscsid.c
index 295a29e..15926e7 100644
--- a/usr/iscsid.c
+++ b/usr/iscsid.c
@@ -107,13 +107,18 @@ setup_rec_from_negotiated_values(node_rec_t *rec, struct 
session_info *info)
        struct iscsi_session_operational_config session_conf;
        struct iscsi_conn_operational_config conn_conf;
        struct iscsi_auth_config auth_conf;
+       int rc;
        strlcpy(rec->name, info->targetname, TARGET_NAME_MAXLEN);
        rec->conn[0].port = info->persistent_port;
        strlcpy(rec->conn[0].address, info->persistent_address, NI_MAXHOST);
-       memcpy(&rec->iface, &info->iface, sizeof(struct iface_rec));
        rec->tpgt = info->tpgt;
+       rc = iface_conf_read(&info->iface);
+       if (rc)
+               log_warning("iface %s configuration file not found (%d)",
+                           info->, rc);
        iface_copy(&rec->iface, &info->iface);
        iscsi_sysfs_get_negotiated_session_conf(info->sid, &session_conf);

You received this message because you are subscribed to the Google Groups 
"open-iscsi" group.
To post to this group, send email to
To unsubscribe from this group, send email to
For more options, visit this group at

Reply via email to