[OpenAFS] afsd: Error -1 in basic initialization
Benjamin P Myers
dative@sukrahelitek.com
Tue, 22 Jul 2003 15:25:22 -0500
On Tuesday 22 July 2003 14:55, Derrick J Brashear wrote:
> > afsd: Forking rxevent daemon.
> > SScall(137, 28, 36)=3D-1 afsd: Error -1 in basic initialization.
>
> ../config/afs_args.h:#define AFSOP_BASIC_INIT 36 /* used to be p=
art
> of START_AFS */
>
> in afs_call.c we see AFSOP_BASIC_INIT can only return 0. however
> AFSOP_BASIC_INIT didn't exist before (1.2.9? recently, in any case)
>
> do you have an old module being loaded somehow? if not, then i guess i
> have to look for how it might be miscompiled.
I'm pretty sure that i have a current module; i can see the AFSOP_BASIC_I=
NIT=20
in afs_call.c and 1.2.9a is the only version i've used on this system. I =
put=20
if(error =3D=3D -1)
{
perror("syscall()");
}
=20
after the syscall() in afsd.c. it seems that every syscall() returns -1. =
I=20
saw some warnings about 'major' and 'minor' being redefined when the modu=
le=20
was built. I commented out the definitions in the offending header file=20
(/usr/src/linux/include/linux/kdev_t.h) so now it looks like this:
/* 2.5.x compatibility */
//#define mk_kdev(a,b) MKDEV(a,b)
//#define major(d) MAJOR(d)
//#define minor(d) MINOR(d)
//#define kdev_same(a,b) ((a) =3D=3D (b))
//#define kdev_none(d) (!(d))
//#define kdev_val(d) ((unsigned int)(d))
//#define val_to_kdev(d) ((kdev_t)(d))
recompiled (no warnings), tried the new module, but had the same problem.=
How=20
else could the module have been miscompiled?
Thanks.
-Ben