Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 24 Jun 2021 13:37:46 -0400
From:      Ryan Stone <rysto32@gmail.com>
To:        freebsd-scsi@freebsd.org
Subject:   Re: Converting ctl.conf to UCL
Message-ID:  <CAFMmRNy_yXTR9Drd7kuBJnnYcFs1PwhWBSK7tUO-Yz4uxvAhMw@mail.gmail.com>
In-Reply-To: <CAFMmRNwSJKdfUX7_oVNcaYLP9BCNjqJNOQ_TG1zw1sSeJvvXfg@mail.gmail.com>
References:  <CAFMmRNwSJKdfUX7_oVNcaYLP9BCNjqJNOQ_TG1zw1sSeJvvXfg@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
I found the problem.  My configuration falls into this special case
for the target port config:

https://cgit.freebsd.org/src/tree/usr.sbin/ctld/uclparse.c#n841

The early return in that block means that the lun property is never
parsed.  Moving the port property to the end fixes the issue, but this
looks like a bug to me.  I think that a continue is probably more
appropriate here than a return 0.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAFMmRNy_yXTR9Drd7kuBJnnYcFs1PwhWBSK7tUO-Yz4uxvAhMw>