[stgt] New portal feature breaks systems without IPv6 in kernel

ronnie sahlberg ronniesahlberg at gmail.com
Tue May 10 23:30:28 CEST 2011


My bad.

Ill provide a patch later today.


regards
ronnie sahlberg


On Tue, May 10, 2011 at 10:34 PM, Novgorodov Igor <igor at novg.net> wrote:
> I have a gentoo server working as a target, and latest 1.0.16 / GIT tgtd
> gives me "No available low level driver",
> while 1.0.15 works fine. After some tracing i've found out that by default
> it creates "0::0" ipv6 portal along with
> default 0.0.0.0, and when it fails to bind to v6 socket, it dies.
>
> So, for now i've just removed the v6 wildcard portal, but we should have
> some checks that the current kernel
> actually was built with ipv6 before attempting to try it...
>
>  # diff -c iscsi_tcp.c.orig iscsi_tcp.c
> *** iscsi_tcp.c.orig    Tue May 10 16:21:39 2011
> --- iscsi_tcp.c Tue May 10 16:21:43 2011
> ***************
> *** 306,312 ****
>           for ipv4 and ipv6
>        */
>        if (list_empty(&iscsi_portals_list)) {
> !               iscsi_add_portal("0::0", 0, 1, 0);
>                iscsi_add_portal("0.0.0.0", 0, 1, 0);
>        }
>
> --- 306,312 ----
>           for ipv4 and ipv6
>        */
>        if (list_empty(&iscsi_portals_list)) {
> ! //            iscsi_add_portal("0::0", 0, 1, 0);
>                iscsi_add_portal("0.0.0.0", 0, 1, 0);
>        }
>
> --
> To unsubscribe from this list: send the line "unsubscribe stgt" in
> the body of a message to majordomo at vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
>
--
To unsubscribe from this list: send the line "unsubscribe stgt" in
the body of a message to majordomo at vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html



More information about the stgt mailing list