On 06/27/2013 08:46 AM, Or Gerlitz wrote:
> @@ -501,6 +503,18 @@ iscsi_iser_set_param(struct iscsi_cls_conn *cls_conn,
>                       return -EPROTO;
>               }
>               break;
> +     case ISCSI_PARAM_DISCOVERY_SESS:
> +             sscanf(buf, "%d", &value);
> +             conn = cls_conn->dd_data;
> +             session = conn->session;
> +             if (value) {
> +                     session->discovery_sess = 1;
> +                     iser_err("session is discovery!\n");
> +             } else {
> +                     session->discovery_sess = 0;
> +                     iser_err("session is normal!\n");
> +             }
> +             break;
>       default:

This should go into libiscsi.c iscsi_set_param() since it is the same
for all drivers.

You also need to add ISCSI_PARAM_DISCOVERY_SESS in iser_attr_is_visible
so that the transport class will setup the sysfs file stuff for it.

-- 
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/groups/opt_out.


Reply via email to