On 07/26/2011 01:38 AM, Hannes Reinecke wrote:
> diff --git a/usr/iscsi_sysfs.c b/usr/iscsi_sysfs.c
> index e82fe80..145816d 100644
> --- a/usr/iscsi_sysfs.c
> +++ b/usr/iscsi_sysfs.c
> @@ -489,7 +489,7 @@ static int iscsi_sysfs_read_iface(struct iface_rec
> *iface, int host_no,
>         if (ret) {
>                 ret = sysfs_get_str(id, ISCSI_HOST_SUBSYS, "initiatorname",
>                                     iface->iname, sizeof(iface->iname));
> -               if (ret)
> +               if (ret) {
>                         /*
>                          * default iname is picked up later from
>                          * initiatorname.iscsi if software/partial-offload.
> @@ -499,6 +499,8 @@ static int iscsi_sysfs_read_iface(struct iface_rec
> *iface, int host_no,
>                          */
>                         log_debug(7, "Could not read initiatorname for "
>                                   "host%d\n", host_no);
> +                       ret = 0;
> +               }
>         }
> 

Added in commit 4cc22470d5a1391108f329842f63ff3c31ccd288. Thanks.

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

Reply via email to