[Bug 293076] ctld regression in FreeBSD 15: multiple physical ports per target rejected and ports not enabled automatically

[email protected] Wed, 08 Apr 2026 11:31:07 +0000
Newsgroups gmane.os.freebsd.devel.scsi
Message-ID <[email protected]/bugzilla/>
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D293076

--- Comment #12 from Ken J. Thomson <[email protected]> ---
I tried below approach at ctld.cc, now iscsi didnt mapped to default portal
group.=20

target::verify()
{
        if (t_auth_group =3D=3D nullptr) {
                t_auth_group =3D t_conf->find_auth_group("default");
                assert(t_auth_group !=3D nullptr);
        }
        - if (t_ports.empty()){
        + if (t_ports.empty() && t_pports.empty()) {
                struct portal_group *pg =3D default_portal_group();
                assert(pg !=3D NULL);
                t_conf->add_port(this, pg, nullptr);
        }

--=20
You are receiving this mail because:
You are the assignee for the bug.=