On Oct 8, 2012, at 7:47 PM, Eddie Wai <eddie....@broadcom.com> wrote:

> 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
> file.
> 
> Signed-off-by: Eddie Wai <eddie....@broadcom.com>
> ---
> 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;
> 
>       idbm_node_setup_from_conf(rec);
>       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->iface.name, rc);
>       

For qla4xxx/be2iscsi this is not needed, because the kernel is exporting this 
info and the info->face that was getting memcpyd had it.



-- 
You received this message because you are subscribed to the Google Groups 
"open-iscsi" group.
To post to this group, send email to open-iscsi@googlegroups.com.
To unsubscribe from this group, send email to 
open-iscsi+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/open-iscsi?hl=en.

Reply via email to