sowmini.varadhan at sun.com wrote:
> On (03/27/08 19:00), Peter Memishian wrote:
>   
>> Leaving aside SunVTS: couldn't ndd issue an ioctl to determine whether the
>> driver has been converted and then issue the warning as appropriate?
>>     
>
> You can, but what ioctl should it issue? Do we invent a new ioctl or property
> just to probe if the device has MC_SETPROP/MC_GETPROP?
> One possibility is to just link libdladm into ndd and do a get_linkprop
> e.g., see 
>  http://zhadum.east/export/ws/sowmini/brussels/nddcompatchild/webrev
> where I tried playing with this. But this is going to break any script
> that parses the output of ndd (I've fprintf'ed to stderr, but I'm not
> sure that covers every case).
>   

Only do the output to stderr if isatty(3c) is true.  That will avoid 
things that are parsing it.

    -- Garrett
> --Sowmini
>
> _______________________________________________
> brussels-dev mailing list
> brussels-dev at opensolaris.org
> http://mail.opensolaris.org/mailman/listinfo/brussels-dev
>   


Reply via email to