[OpenAFS-devel] pr_Initialize falis when called within a simple application

Jeffrey Hutzelman jhutz@cmu.edu
Thu, 19 Aug 2004 11:35:00 -0400


On Thursday, August 19, 2004 08:37:09 -0400 John Hayes <jhh@envirobat.org> 
wrote:

> open("/home/jhh/.AFSSERVER", O_RDONLY)  = -1 ENOENT (No such file or
> directory)
> open("/.AFSSERVER", O_RDONLY)           = -1 ENOENT (No such file or
> directory)
> afs_syscall(0x14, 0, 0x400c5608, 0xbfffc770, 0) = 0

This pattern is normal; the library looks for ~/.AFSSERVER and /.AFSSERVER 
to see if it should AFS system calls to a translator instead of making them 
locally.  The normal case is for those files not to exist, which causes the 
call to be made locally.

afs_syscall operation 0x14 is AFSCALL_PIOCTL; the next argument is the path 
(which for many operations may legitimately be a null pointer), and the one 
after is the operation code.  0x400c5608 is VIOCGETTOK.

So, this is your code trying to fetch tokens from the cache manager.
And, it appears, it is succeeding.