Tomas Heran wrote:
> Roland Mainz wrote:
> > Roland Mainz wrote:
> >> Tomas Heran wrote:
> >>> Roland Mainz wrote:
> >>>> Do SMF propperties support arrays ? I'm currently looking at CR #6218143
> >>>> ("Xserver doesn't parse SMF server_args correctly") and IMO one of the
> >>>> better solutions would be to have an array of arguments (similar like
> >>>> argv) to handle values with { <space>, <tab>, <newline> } (e.g. the
> >>>> default content of the IFS variable (see sh(1))) correctly...
> >>> yes, arrays of values are supported. Please have a look here (property
> >>> 'domain') for an example xml manifest file:
> >>>
> >>> http://src.opensolaris.org./source/xref/onnv/onnv-gate/usr/src/cmd/cmd-inet/usr.lib/mdnsd/multicast.xml#111
> >>
> >> Thanks! :-)
[snip]
> The only way I found which might help you a little bit is to use
> svccfg(1M) instead of svcprop(1) when listing the properties and their
> values. I.e.:
> 
> $ svccfg -s network/dns/multicast:default listprop | grep nss_mdns_config
> nss_mdns_config                      application
> nss_mdns_config/domain               astring  "local" "b.e.f.ip6.arpa"
> "a.e.f.ip6.arpa" "9.e.f.ip6.arpa" "8.e.f.ip6.arpa" "254.169.in-addr.arpa"
> nss_mdns_config/stability            astring  Unstable
> nss_mdns_config/value_authorization  astring  solaris.smf.value.mdns
> 
> versus
> 
> $ svcprop network/dns/multicast:default | grep nss_mdns_config
> nss_mdns_config/domain astring local b.e.f.ip6.arpa a.e.f.ip6.arpa
> 9.e.f.ip6.arpa 8.e.f.ip6.arpa 254.169.in-addr.arpa
> nss_mdns_config/stability astring Unstable
> nss_mdns_config/value_authorization astring solaris.smf.value.mdns

Thanks! :-)

> Please note the double-quotes in the former output, which might help
> your script determine whether you're looking at a single string value
> (possibly with spaces) or at multiple values.

Well, it doesn't give me a hint whether the value is an array or not..
;-(
... what happens if a value_node contains characters like '"'
(double-quote), '\'' (single-quote), '$' or <newline> etc. ?

Somehow I have the feeling I have to write my own C program just to
access these array values directly... ;-(

----

Bye,
Roland

-- 
  __ .  . __
 (o.\ \/ /.o) roland.mainz at nrubsig.org
  \__\/\/__/  MPEG specialist, C&&JAVA&&Sun&&Unix programmer
  /O /==\ O\  TEL +49 641 7950090
 (;O/ \/ \O;)

Reply via email to