[OpenAFS-devel] OpenAFS and OpenSolaris

Klas Heggemann klas@nada.kth.se
Fri, 12 Jun 2009 08:55:26 +0200


11 jun 2009 kl. 15.49 skrev Dale Ghent:

> On Jun 11, 2009, at 7:20 AM, Klas Heggemann wrote:
>
>> Dale Ghent skrev:
>>>
>>> Try trussing it to see what errno bind() is failing with. That  
>>> error would be a start in figuring out what's wrong.
>>
>> Unfortunatly truss does not show what happens in kernel space, and  
>> this code seems to be
>> in the kernel module. Truss just shows the afs-syscall and the  
>> return.
>>
>> afsd calls rx_InitHost whic calls rxi_getHostUDPPort which I think  
>> calls
>> rxk_NewSocket, if I figured this right. Why this fails I have not  
>> figured out.
>
>
> Ah, right.
>
> dtrace, then. Try the following after the afs module is loaded and  
> when starting afsd. This will show you what's going on inside the  
> module and report the function return values.


Thanks. (One of these days I'm gonna start learning/using dtrace ....).

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.