[OpenAFS] problem running openafs client on linux-2.4.5

Derek Atkins warlord@MIT.EDU
19 Jun 2001 11:56:41 -0400


Claude Lecommandeur <claude.lecommandeur@epfl.ch> writes:

>   I do get this in /var/log/messages :
> 
> Jun 19 15:45:26 slpc1 kernel: sock_release(rx_socket) FIXME
> Jun 19 15:45:26 slpc1 kernel: AFS: RX failed to initialize.

Ok, this is happening because the kernel is trying to bind to UDP port
7001, and the bind is failing.  I don't know why.  The 'E2BIG' was a
red-herring.  The actual error being returned (-7) is RX_ADDRINUSE,
which is returned from rx_Init() when rxi_GetUDPSocket() fails and
returns NULL.  GetUDPSocket() fails because rkx_NewSocket() fails.
The latter fails in bind().

Could you try applying this patch to rx/LINUX/rx_knet.c to add a
little debugging output to rxk_NewSocket(), recompile, and then let me
know what you get in your kernel logs?  This will at least help me
understand what error message we're getting from the bind() operation.

Thanks,

-derek

--- src/rx/LINUX/rx_knet.c~	Fri Jan 19 17:24:52 2001
+++ src/rx/LINUX/rx_knet.c	Tue Jun 19 11:52:25 2001
@@ -31,8 +31,10 @@
 
     
     code = sock_create(AF_INET, SOCK_DGRAM, IPPROTO_UDP, &sockp);
-    if (code<0)
+    if (code<0) {
+        printk("sock_create failed: %d\n", code);
 	return NULL;
+    }
 
     /* Bind socket */
     myaddr.sin_family = AF_INET;
@@ -42,7 +44,7 @@
 
     if (code<0) {
 #if defined(AFS_LINUX24_ENV)
-	printk("sock_release(rx_socket) FIXME\n");
+	printk("sock_release(rx_socket) FIXME (%d)\n", code);
 #else
 	sock_release(sockp);
 #endif

-- 
       Derek Atkins, SB '93 MIT EE, SM '95 MIT Media Laboratory
       Member, MIT Student Information Processing Board  (SIPB)
       URL: http://web.mit.edu/warlord/    PP-ASEL-IA     N1NWH
       warlord@MIT.EDU                        PGP key available