Thanks for all the responses. Now, I have written a code, which calls smf_enable_instance to enable filesystem/local service. Immediately after returning from this call, the next instruction, tries to access a file on one of the local filesystems. So, are there chances that, the filesystem/local is not yet completely enabled and because of that, the local filesystem is not yet mounted and hence this instruction might fail!?
-Narendra On 7/26/07, Liane Praza <lianep at eng.sun.com> wrote: > > > [ does scf_enable_instance() take effect immediately? ] > > steve peng writes: > > > > Yes, the prop is updated correctly if the call returns successfully. If > > not then it is a problem and a bug should be > > filed. ;-) > > Steve is correct that the value of the enabled property is immediately > changed. However, often people asking this question are really > wondering whether scf_enable_instance() will return only after the > service is in the ONLINE state. > > No, it doesn't. It sets the property and lets the rest of SMF do its > job to get the service started and keep the service alive. > > Currently, an interface which is synchronous to online/disabled is only > formally available through svcadm [en|dis]able -s. I believe there's an > RFE to make the synchronous semantics through libscf, but don't have the > bugid to hand. It'd make a great OpenSolaris RFE, though. :) > > liane > -- > Liane Praza, Solaris Kernel Development > liane.praza at sun.com - http://blogs.sun.com/lianep > > > -- Warm Regards, Narendra Visit my blogs at: http://ssnarendrakumar.blogspot.com/ ___ ___ __ _ / __/ / __/ / | / / _\ \ _ \ \ / /| |/ / \___/ \___/ /_/ |__/ -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mail.opensolaris.org/pipermail/smf-discuss/attachments/20070726/cc8147ff/attachment.html>