Sowmini.Varadhan at Sun.COM writes:
> On (06/26/07 01:06), Peter Memishian wrote:
> > While I can understand that from an implementation standpoint, from a
> > usability standpoint I don't think a log message goes far enough. The
> > person running the dladm set-linkprop subcommand needs the feedback.
>
> What we could do is to have a distinct error code to
> track this case (EINTR?) that could be caught by dladm to emit
> the information to the user- would that suffice?
I have trouble with that on two fronts:
- We shouldn't use errors to report success. Telling the user that
the operation was successful, but that something else needs to be
done is something that the API itself needs to encompass, rather
than overloading an errno. (Partial success is itself a
troublesome concept.)
- EINTR already has a defined meaning. If this isn't a case where a
potentially long-running operation was stopped and not restartable
due to a UNIX signal, then don't call it EINTR.
--
James Carlson, Solaris Networking <james.d.carlson at sun.com>
Sun Microsystems / 1 Network Drive 71.232W Vox +1 781 442 2084
MS UBUR02-212 / Burlington MA 01803-2757 42.496N Fax +1 781 442 1677