(BCC'd to openafs-bugs)

On Fri, 12 Jun 2009 08:55:26 +0200
Klas Heggemann <[email protected]> wrote:

> > 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.

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.

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.

-- 
Andrew Deason
[email protected]

Attachment: rxk-opensolaris-sockets.diff
Description: Binary data

Reply via email to