[OpenAFS-port-freebsd] panic on freebsd-current

Pawel Worach pawel_worach@yahoo.com
Tue, 18 May 2004 19:21:03 -0700 (PDT)


--- Jim Rees <rees@umich.edu> wrote:
> Are you sure your afs client was built against the same source used
> to build the kernel you're running?

Yes, I even had to rebuild the whole thing again because I missed
the debug symbols the first time. I still have the debug kernel
image+libafs.ko and crashdump if there is something else You
wan't me to check. I have a tiny patch applied to make openafs build
on -current, I fail to see how it could cause the panic but I could be
wrong.

Index: src/afs/afs.h
===================================================================
RCS file: /cvs/openafs/src/afs/afs.h,v
retrieving revision 1.47
diff -u -r1.47 afs.h
--- src/afs/afs.h       8 May 2004 04:33:07 -0000       1.47
+++ src/afs/afs.h       19 May 2004 02:12:47 -0000
@@ -633,8 +633,8 @@
        afs_uint32 Date;
        afs_uint32 Owner;
        afs_uint32 Group;
-       ushort Mode;            /* XXXX Should be afs_int32 XXXX */
-       ushort LinkCount;
+       u_short Mode;           /* XXXX Should be afs_int32 XXXX */
+       u_short LinkCount;
        /* vnode type is in v.v_type */
     } m;
     afs_rwlock_t lock;         /* The lock on the vcache contents. */
Index: src/afs/afs_prototypes.h
===================================================================
RCS file: /cvs/openafs/src/afs/afs_prototypes.h,v
retrieving revision 1.48
diff -u -r1.48 afs_prototypes.h
--- src/afs/afs_prototypes.h    4 May 2004 09:36:01 -0000       1.48
+++ src/afs/afs_prototypes.h    19 May 2004 02:12:48 -0000
@@ -685,7 +685,7 @@
 extern struct server *afs_servers[NSERVERS];
 extern int afs_totalServers;
 extern struct server *afs_setTimeHost;
-extern struct server *afs_FindServer(afs_int32 aserver, ushort aport,
+extern struct server *afs_FindServer(afs_int32 aserver, u_short aport,
                                     afsUUID * uuidp, afs_int32
locktype);
 extern struct server *afs_GetServer(afs_uint32 * aserver, afs_int32
nservers,
                                    afs_int32 acell, u_short aport,
Index: src/afs/afs_server.c
===================================================================
RCS file: /cvs/openafs/src/afs/afs_server.c,v
retrieving revision 1.29
diff -u -r1.29 afs_server.c
--- src/afs/afs_server.c        8 May 2004 04:23:56 -0000       1.29
+++ src/afs/afs_server.c        19 May 2004 02:12:49 -0000
@@ -714,7 +714,7 @@
 
 /* find a server structure given the host address */
 struct server *
-afs_FindServer(afs_int32 aserver, ushort aport, afsUUID * uuidp,
+afs_FindServer(afs_int32 aserver, u_short aport, afsUUID * uuidp,
               afs_int32 locktype)
 {
     struct server *ts;





	
		
__________________________________
Do you Yahoo!?
SBC Yahoo! - Internet access at a great low price.
http://promo.yahoo.com/sbc/