[OpenIndiana-discuss] sd-config-list= vid/pid string syntax in sd.conf

Andrew Gabriel illumos at cucumber.demon.co.uk
Sun Mar 30 16:55:08 UTC 2014


On 29/03/2014 21:15, Reginald Beardsley wrote:
> The string matching logic in sd_sdconf_id_match() in sd.c is odd and seems to cause a good bit of confusion.  In particular it does not conform to shell wildcard rules which I think is what most people would expect.
>
> Can anyone point to why the current syntax and semantics were chosen?
>
> Does anyone know a reason why it should not conform to shell wildcard rules? The alternative is full regular expressions, but that seems a bit overkill and possibly confusing as well.

Usually done to limit the potential stack usage in the kernel, which is 
a much more limited resource than in user space where RE and shell 
matching are found.

-- 
Andrew




More information about the OpenIndiana-discuss mailing list