[OpenAFS-devel] Re: OpenAFS and OpenSolaris

Klas Heggemann klas@csc.kth.se
Thu, 23 Jul 2009 10:12:19 +0200


Sorry, missed this posting, before doing my diffs (and then going on 
vacation ...)
>>
>>
>> > As Jeffry Altman wrote,  its the code in rx/SOLARIS/rx_knet.c that is
>> > interessting.  dtrace show that the solookup routine fails, which is
>> > confirmed if I  add extra printf in the code. Seems like this route
>> > has changed and one need to find out how to adapt the code to these
>> > changes.
>>     
>
> Try this; the attach patch appears to work with 1.4.11rc1, or at least
> it doesn't fail like before, on snv_111b (after I patch 1.4.11rc1 to
> actually build, see 124923). solookup and socreate behave differently
> and appear to have differenet signatures than what the rxk code assumes.
> Specifically, solookup was failing because it returns an error code, not
> a vp, so it returns 0 on success, we interpret it as a NULL and a
> failure, so it fails.
>   
I'll try to look into this patch later.
> The AFS_SUN511_ENV in this is a bit coarse-grained if the old code
> worked with previous releases of OpenSolaris. If someone knew when these
> interfaces changed, that'd be helpful. Or we could have a configure test
> for the new kernel sockets stuff, and try to use those.

Old code worked in build 105. I think OpenSolaris then jumped to 108, at 
least in
the pkg-based distribution.  I guess  the changes in the include files
(e g sys/socketvar.h has some new #defines), that could be used for 
testing/configuring.

I still have build 105 around and running, and that was the last OS 
version the old
code worked ok for me.


Klas